userver: tracing::Tracer Class Reference
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts

Detailed Description

Definition at line 20 of file tracer.hpp.

+ Inheritance diagram for tracing::Tracer:
+ Collaboration 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 43 of file tracer.hpp.

Member Function Documentation

◆ GetOptionalLogger()

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

Definition at line 40 of file tracer.hpp.


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