You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If one wants to opt-out of letting tracing-subscriber init. a global logger one has to disable the feature flag tracing-log.
There are setups when an app wants to decide by config whether a global logger should be set by tracing-subscriber. This can currently not be done because the setting must be configured on compile time.
Example scenarios that all should be configurable on runtime:
Custom logger + Tracing as OTLP Exporter
Tracing as logger AND OTLP exporter
To support both cases tracing-log must be set which then throws an error for the first scenario.
The text was updated successfully, but these errors were encountered:
lcmgh
changed the title
tracing-subscriber: programmatically opt out of initialize a log compatibility layer.`
tracing-subscriber: programmatically opt out of setting a global logger even when tracing-log is enabled
Sep 6, 2024
If one wants to opt-out of letting
tracing-subscriber
init. a global logger one has to disable the feature flagtracing-log
.There are setups when an app wants to decide by config whether a global logger should be set by
tracing-subscriber
. This can currently not be done because the setting must be configured on compile time.Example scenarios that all should be configurable on runtime:
To support both cases
tracing-log
must be set which then throws an error for the first scenario.The text was updated successfully, but these errors were encountered: