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
There's a discrepancy in the way processors are registered between tracing and logging.
When adding a processor for logging, it requires an instance. Whereas for tracing, registering a type is enough as the actual instance is supplied by the dependency container.
Is your feature request related to a problem?
Our telemetry processor rely on dependency injection to inject certain dependency. When registering OpenTelemetry it's not possible to resolve this dependency and pass it to the options.
Describe the solution you'd like:
Aligning the API for adding processor between logging and tracing.
We added LoggerProviderBuilder in 1.9.0 which gives logging the same parity w.r.t. dependency injection as metrics & tracing. This can now be achieved using WithLogging style or via ConfigureOpenTelemetryLoggerProvider.
Feature Request
There's a discrepancy in the way processors are registered between tracing and logging.
When adding a processor for logging, it requires an instance. Whereas for tracing, registering a type is enough as the actual instance is supplied by the dependency container.
Is your feature request related to a problem?
Our telemetry processor rely on dependency injection to inject certain dependency. When registering OpenTelemetry it's not possible to resolve this dependency and pass it to the options.
Describe the solution you'd like:
Aligning the API for adding processor between logging and tracing.
Describe alternatives you've considered.
N/A
There are no alternatives
Additional Context
N/A
The text was updated successfully, but these errors were encountered: