#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 | - |
sinks | List of sinks | - |
sinks.logs | sink for logs (default|otlp|both) | otlp sinks.tracing | sink for tracing (default|otlp|both) | otlp
Possible sink values:
otlp
: OTLP exporterdefault
: default logger from the logging
componentboth
: default logger and OTLP exporter Definition at line 44 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 46 of file component.hpp.