You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
We're looking to use the Events API but currently have to build an EventLogger manually. It's error-prone getting the manual set-up to use all the auto-configuration that we're used to the java agent doing for us. For example, our attempt is:
Any guesses if packaging our manual set-up in an agent extension would work as a temporary solution? Or would the call GlobalEventLoggerProvider.set happen using a different class loader than what's available to the application?
The text was updated successfully, but these errors were encountered:
I also stumbled across this issue. In fact, the SDK shipped with the agent does configure the GlobalEventLoggerProvider.
This means if you for example write an agent extension or custom instrumentation, it will be able to access the GlobalEventLoggerProvider.
What however is not yet implemented is to support the GlobalEventLoggerProvider via the opentelemetry-api-instrumentation: That instrumentation is responsible for redirecting opentelemtry-API classes shipped with the instrumented application to the opentelemetry-SDK contained in the agent.
This redirection is not yet implemented there for the GlobalEventLoggerProvider.
Is your feature request related to a problem? Please describe.
We're looking to use the Events API but currently have to build an
EventLogger
manually. It's error-prone getting the manual set-up to use all the auto-configuration that we're used to the java agent doing for us. For example, our attempt is:Describe the solution you'd like
Have the javaagent auto-configure the
EventLoggerProvider
and expose it for applications.@jack-berg had a suggestion for how to do this: https://cloud-native.slack.com/archives/C014L2KCTE3/p1718657558881159?thread_ts=1718293157.542669&cid=C014L2KCTE3
Describe alternatives you've considered
Additional context
Any guesses if packaging our manual set-up in an agent extension would work as a temporary solution? Or would the call
GlobalEventLoggerProvider.set
happen using a different class loader than what's available to the application?The text was updated successfully, but these errors were encountered: