Monolog integration adds "channel" attribute to every log record #1049
Labels
question
Further information is requested
signal:logging
Related to logging signal
tc-review
technical committee review feedback
I am evaluating the monolog integration. I used the following code:
Every log record created has an attribute
channel
that is set equal to Monolog's channel. I wonder if this is a desirable approach.Should we instead set the Scope name to Monolog's channel instead of adding it to every attribute? The definition of Monolog's channel is the following:
I think this nicely fits our definition of Scope:
We currently set Scope's name to "monolog". I think this is a useful information, but perhaps instead of recording as the Scope name we can record it as a Scope attribute (attribute name TBD, need to create an issue in semconv repo).
Alternatively, if we think Scope's name should really be tied to the instrumentation name then I think we should at the very least use the fully qualified "opentelemetry-logger-monolog". In that case we should record the channel name as an attribute, but we need a proper semantic convention (file an issue in semconv repo to decide on the name), I don't think using just
channel
as the attribute name works (attribute naming rules require attributes to be in namespaces).@open-telemetry/specs-logs-approvers what do you think? Should log integrations set integration's name as the Scope name (e.g. "monolog" in this case) or should they use the corresponding equivalent concept from the integrated library as the Scope name (the monolog's Channel concept in this case matches our Scope Name concept).
The text was updated successfully, but these errors were encountered: