Viam C++ SDK current
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
viam::sdk::impl::Tracer Class Reference

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
 
Traceroperator= (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 Tracerget ()
 Returns the Tracer owned by the current Instance.
 
static void initialize_propagator () noexcept
 Install the W3C Trace Context propagator. Called once during Instance construction.
 

Detailed Description

Holds the SDK-side OpenTelemetry tracer provider. Spans go nowhere until initialize_provider installs an exporter that ships them to the parent.


The documentation for this class was generated from the following file: