-
Notifications
You must be signed in to change notification settings - Fork 895
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
Is LogEmitter.flush necessary? #2342
Comments
Yes, this can access the global log emitter provider and directly call on provider |
@srikanthccv will you be able to take this issue and submit a PR to fix this in the spec? |
Sure, please assign to me. |
Fixes #2342 ## Changes This change proposes to remove the `flush` on Emitter for the consistency. There is no `flush` on Tracer/Meter specification. Language sdk implementations may choose the idiomatic way to provide the appender/handler ability to call flush on the `LogEmitterProvider` (ex: setter in [java](https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/instrumentation/log4j/log4j-appender-2.16/library/src/main/java/io/opentelemetry/instrumentation/log4j/appender/v2_16/OpenTelemetryAppender.java#L86-L95), `init` arg in py, or possibly a global accessor for provider etc...)
Fixes open-telemetry#2342 ## Changes This change proposes to remove the `flush` on Emitter for the consistency. There is no `flush` on Tracer/Meter specification. Language sdk implementations may choose the idiomatic way to provide the appender/handler ability to call flush on the `LogEmitterProvider` (ex: setter in [java](https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/instrumentation/log4j/log4j-appender-2.16/library/src/main/java/io/opentelemetry/instrumentation/log4j/appender/v2_16/OpenTelemetryAppender.java#L86-L95), `init` arg in py, or possibly a global accessor for provider etc...)
Is LogEmitter.flash necessary or it is sufficient to have LogEmitterProvide.ForceFlush?
See also discussion in Python prototype which currently calls LogEmitter.flash.
Is LogEmitterProvider.ForceFlush accessible at the call sites that currently call LogEmitter.flash? If yes then we can delete LogEmitter.flash.
The text was updated successfully, but these errors were encountered: