-
Notifications
You must be signed in to change notification settings - Fork 645
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
Logs: LogRecord not documented, usage attempt fails with an exception #3552
Comments
@lzchen if I remember correctly, right now we also support passing the resource object through LogRecord as well |
Could you be more specific about what you are referring to? |
@lzchen Yes. I was referring to the SDK, forgot to complete the sentence. |
Given that |
Describe your environment
Mac OS X
Python 3.9.6
Steps to reproduce
Try to use LogRecord described here: https://opentelemetry-python.readthedocs.io/en/latest/api/_logs.html#opentelemetry._logs.LogRecord
The docs don't say how to construct the LogRecord. I tried this:
What is the expected behavior?
An empty log record outputed.
What is the actual behavior?
I can't see a way to supply the 'resource', the LogRecord() constructor does not accept one. Besides, I should not need to, it should use the one given to
LoggerProvider
.Additional context
Part of review open-telemetry/community#1751
The text was updated successfully, but these errors were encountered: