-
Notifications
You must be signed in to change notification settings - Fork 634
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Superfluous service name in console log output #3546
Comments
I'm not convinced this reproduces in a guaranteed way. Running an adapted version of the logging example script:
Importing this at the shell runs pretty much everything because it's top-level and, omitting the output from the console trace exporter, you get:
I suspected what you're seeing might have related to the logging integration but setting |
@tigrannajaryan @lzchen Since this is related to opentelemetry-instrumentation-logging is it still a blocker for the review? Is there something we can do? Maybe put those under _RESERVED_ATTRS? |
Was indeed able to replicate this with opentelemetry-instrumentation-logging. Since the instrumentation supplements the log records and it is experimental, I do not believe this should block the logging sdk rc.
What we can do in regards to this feature is to improve the README of the logging instrumentation to outline what fields the instrumentation enriches the log records with. I will be closing the issue in favor of a doc change issue. |
Describe your environment
Mac OS X
Python 3.9.6
Steps to reproduce
Run Getting Started, metrics example.
What is the expected behavior?
Service name present once in the log records.
What is the actual behavior?
Service name is present in two different places in the log records, once as a subkey of the "attributes", once as a subkey of "resource".
I think it is sufficient to have the service name in the "resource" field.
Additional context
Part of review open-telemetry/community#1751
The text was updated successfully, but these errors were encountered: