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?
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?