#include <userver/tracing/component.hpp>
Component that initializes the request tracing facilities.
Finds the components::Logging component.
The component must be configured in service config.
| 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' |
Definition at line 34 of file component.hpp.
Inheritance diagram for components::Tracer:Public Member Functions | |
| Tracer (const ComponentConfig &config, const ComponentContext &context) | |
| virtual ComponentHealth | GetComponentHealth () const |
| virtual void | OnLoadingCancelled () |
| virtual void | OnAllComponentsLoaded () |
| virtual void | OnAllComponentsAreStopping () |
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. | |
|
inlinevirtualinherited |
Reimplemented in components::ComponentBase, and server::handlers::Restart.
Definition at line 49 of file raw_component_base.hpp.
|
inlinevirtualinherited |
Reimplemented in components::ComponentBase, components::Server, and urabbitmq::ConsumerComponentBase.
Definition at line 55 of file raw_component_base.hpp.
|
inlinevirtualinherited |
Reimplemented in components::ComponentBase, components::Server, server::handlers::Ping, and urabbitmq::ConsumerComponentBase.
Definition at line 53 of file raw_component_base.hpp.
|
inlinevirtualinherited |
Reimplemented in components::ComponentBase.
Definition at line 51 of file raw_component_base.hpp.