[logs] Rename LogRecordProcessor.emit to on_emit
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.
- [x] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [x] This change requires a documentation update
Does This PR Require a Contrib Repo Change?
- [ ] Yes. - Link to PR:
- [ ] No.
Thanks for another one @hectorhdzg ! I think the API should also be updated.
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.
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.
I believe this is correct.