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
At the same time, logging bridges don't have these scope names, leaving the user in charge of setting the package for LoggerProvider.Logger(...). Why is there no ScopeName defined for logging bridges? Is it expected that callers hardcode and pass repo module names when setting up logging bridges?
Proposed Solution
Add const ScopeName = "..." for every logging bridge package - otelslog, etc.
Alternatives
Hint on the expected value for LoggerProvider.Logger(...) when using log bridges in examples and/or documentation.
Problem Statement
Most of the integrations in contrib automatically provide some
ScopeName
when working with top-level telemetry providers.Example search for
ScopeName
const yields lots of examples - https://github.com/search?q=repo%3Aopen-telemetry%2Fopentelemetry-go-contrib%20ScopeName&type=codeAt the same time, logging bridges don't have these scope names, leaving the user in charge of setting the package for
LoggerProvider.Logger(...)
. Why is there noScopeName
defined for logging bridges? Is it expected that callers hardcode and pass repo module names when setting up logging bridges?Proposed Solution
Add
const ScopeName = "..."
for every logging bridge package -otelslog
, etc.Alternatives
Hint on the expected value for
LoggerProvider.Logger(...)
when using log bridges in examples and/or documentation.Prior Art
Example search for
ScopeName
const yields lots of examples - https://github.com/search?q=repo%3Aopen-telemetry%2Fopentelemetry-go-contrib%20ScopeName&type=codeIt's not rare to see
TracerProvider.Tracer(ScopeName)
orMeterProvider.Meter(ScopeName)
calls in contrib.Additional Context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: