userver: components::Tracer Class Reference
Loading...
Searching...
No Matches
components::Tracer Class Referencefinal

#include <userver/tracing/component.hpp>

Detailed Description

Component that initializes the request tracing facilities.

Finds the components::Logging component and requests an optional "opentracing" logger to use for Opentracing.

The component must be configured in service config.

Static options:

Name Description Default value
service-name name of the service to write in traces ''
tracer type of the tracer to trace, currently supported only 'native' 'native'

Static configuration example:

# yaml
tracer:
service-name: config-service
tracer: native

Definition at line 35 of file component.hpp.

+ Inheritance diagram for components::Tracer:
+ Collaboration diagram for components::Tracer:

Public Member Functions

 Tracer (const ComponentConfig &config, const ComponentContext &context)
 

Static Public Member Functions

static yaml_config::Schema GetStaticConfigSchema ()
 

Static Public Attributes

static constexpr std::string_view kName = "tracer"
 The default name of components::Tracer.
 

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