userver: tracing::Tracer Class Reference
Loading...
Searching...
No Matches
tracing::Tracer Class Referenceabstract

Detailed Description

Definition at line 19 of file tracer.hpp.

+ Inheritance diagram for tracing::Tracer:

Public Member Functions

const std::string & GetServiceName () const
 
Span CreateSpanWithoutParent (std::string name)
 
Span CreateSpan (std::string name, const Span &parent, ReferenceType reference_type)
 
virtual void LogSpanContextTo (const Span::Impl &span, logging::impl::TagWriter writer) const =0
 
logging::LoggerPtr GetOptionalLogger () const
 

Static Public Member Functions

static void SetNoLogSpans (NoLogSpans &&spans)
 
static bool IsNoLogSpan (const std::string &name)
 
static void SetTracer (TracerPtr tracer)
 
static TracerPtr GetTracer ()
 

Protected Member Functions

 Tracer (std::string_view service_name, logging::LoggerPtr optional_logger)
 

Constructor & Destructor Documentation

◆ Tracer()

tracing::Tracer::Tracer ( std::string_view service_name,
logging::LoggerPtr optional_logger )
inlineexplicitprotected

Definition at line 40 of file tracer.hpp.

Member Function Documentation

◆ GetOptionalLogger()

logging::LoggerPtr tracing::Tracer::GetOptionalLogger ( ) const
inline

Definition at line 37 of file tracer.hpp.


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