- Notifications
You must be signed in to change notification settings - Fork776
[logs] Rename LogRecordProcessor.emit to on_emit#4648
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
tammy-baylis-swi commentedJun 20, 2025
Thanks for another one@hectorhdzg ! I think theAPI should also be updated. |
hectorhdzg commentedJun 20, 2025
Thanks for reviewing@tammy-baylis-swi, I looked into the API as well, Logger "emit" is actually the expected method name, on_emit is only applicable to LogRecordProcessors, I could be missing something though. |
lzchen commentedJun 25, 2025
I believe this is correct. |
07700dd intoopen-telemetry:mainUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Description
Rename LogRecordProcessor.emit to on_emit to align with specification
https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/logs/sdk.md#onemit
Fixes#4312
Type of change
Please delete options that are not relevant.
Does This PR Require a Contrib Repo Change?