Couchbase C++ SDK 1.0.2 (rev. 51f4775)
Loading...
Searching...
No Matches
otel_request_tracer Class Reference

#include <couchbase/tracing/otel_tracer.hxx>

Inheritance diagram for otel_request_tracer:
Inheritance graph

Public Member Functions

 otel_request_tracer (nostd::shared_ptr< opentelemetry::trace::Tracer > tracer)
 
auto start_span (std::string name, std::shared_ptr< couchbase::tracing::request_span > parent={}) -> std::shared_ptr< couchbase::tracing::request_span > override
 
auto wrap_span (nostd::shared_ptr< opentelemetry::trace::Span > span) -> std::shared_ptr< couchbase::tracing::otel_request_span >
 
- Public Member Functions inherited from request_tracer
 request_tracer ()=default
 
 request_tracer (const request_tracer &other)=default
 
 request_tracer (request_tracer &&other)=default
 
auto operator= (const request_tracer &other) -> request_tracer &=default
 
auto operator= (request_tracer &&other) -> request_tracer &=default
 
virtual ~request_tracer ()=default
 
virtual void start ()
 SDK invokes this method when cluster is ready to trace.
 
virtual void stop ()
 SDK invokes this method when cluster is closed.
 
virtual auto start_span (std::string name, std::shared_ptr< request_span > parent={}) -> std::shared_ptr< request_span >=0
 

Constructor & Destructor Documentation

◆ otel_request_tracer()

otel_request_tracer ( nostd::shared_ptr< opentelemetry::trace::Tracer > tracer)
inline

Member Function Documentation

◆ start_span()

auto start_span ( std::string name,
std::shared_ptr< couchbase::tracing::request_span > parent = {} ) -> std::shared_ptr<couchbase::tracing::request_span>
inlineoverride

◆ wrap_span()

auto wrap_span ( nostd::shared_ptr< opentelemetry::trace::Span > span) -> std::shared_ptr<couchbase::tracing::otel_request_span>
inline

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