Skip to content

RSDK-13854: OpenTelemetry support#626

Open
lia-viam wants to merge 32 commits into
viamrobotics:mainfrom
lia-viam:opentel-prototype
Open

RSDK-13854: OpenTelemetry support#626
lia-viam wants to merge 32 commits into
viamrobotics:mainfrom
lia-viam:opentel-prototype

Conversation

@lia-viam
Copy link
Copy Markdown
Member

Basic support for OpenTelemetry in viam-cpp-sdk. This hooks opentel into client/server API boundaries, so that, eg, a Sensor.GetReadings request will generate a span in RDK with a subspan showing how much time was spent just in viam-cpp-sdk.

The architecture is similar to the log backend and logging through RobotClient: there is an impl class that lives in the Instance, some setup logic on startup, and a RobotClient method which sends RPCs to RDK.

Config options should be documented in the build code, but basically this is off by default and effectively a conan exclusive, because system package managers have spotty support for opentel. Note that in addition to the compile-time build switch, there is also a runtime env var check

@lia-viam lia-viam requested review from acmorrow, jmatth and stuqdog May 11, 2026 14:43
@lia-viam lia-viam requested a review from a team as a code owner May 11, 2026 14:43
@lia-viam lia-viam requested review from allisonschiang and removed request for a team and allisonschiang May 11, 2026 14:43
lia-viam and others added 9 commits May 12, 2026 13:02
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant