#include </data/code/userver/otlp/include/userver/otlp/logs/component.hpp>
Component to configure logging via OTLP collector.
Name | Description | Default value |
---|---|---|
endpoint | URI of otel collector (e.g. 127.0.0.1:4317) | - |
max-queue-size | Maximum async queue size | 65535 |
max-batch-delay | Maximum batch delay | 100ms |
service-name | Service name | unknown_service |
attributes | Extra attributes for OTLP, object of key/value strings | - |
Definition at line 36 of file component.hpp.
Public Member Functions | |
LoggerComponent (const components::ComponentConfig &, const components::ComponentContext &) | |
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 = "otlp-logger" |
|
inlinevirtualinherited |
Reimplemented in components::ComponentBase.
Definition at line 49 of file raw_component_base.hpp.
|
inlinevirtualinherited |
Reimplemented in urabbitmq::ConsumerComponentBase, components::ComponentBase, and components::Server.
Definition at line 57 of file raw_component_base.hpp.
|
inlinevirtualinherited |
Reimplemented in urabbitmq::ConsumerComponentBase, components::ComponentBase, components::Server, and server::handlers::Ping.
Definition at line 55 of file raw_component_base.hpp.
|
inlinevirtualinherited |
Reimplemented in components::ComponentBase.
Definition at line 53 of file raw_component_base.hpp.
|
staticconstexpr |
Definition at line 38 of file component.hpp.