|
Viam C++ SDK current
|
Holds the SDK-side OpenTelemetry tracer provider. Spans go nowhere until initialize_provider installs an exporter that ships them to the parent.
More...
#include <tracer.hpp>
Public Member Functions | |
| Tracer (const Tracer &)=delete | |
| Tracer & | operator= (const Tracer &)=delete |
| void | initialize_provider (RobotClient *client) noexcept |
Install an exporter sourced from client. The caller must keep client alive until shutdown_provider returns. | |
| void | shutdown_provider () noexcept |
Static Public Member Functions | |
| static Tracer & | get () |
Returns the Tracer owned by the current Instance. | |
| static void | initialize_propagator () noexcept |
Install the W3C Trace Context propagator. Called once during Instance construction. | |
Holds the SDK-side OpenTelemetry tracer provider. Spans go nowhere until initialize_provider installs an exporter that ships them to the parent.