Skip to content
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 there a reason for support for multiple exporters removed? #2484

Closed
onespacer opened this issue Mar 3, 2021 · 6 comments
Closed

is there a reason for support for multiple exporters removed? #2484

onespacer opened this issue Mar 3, 2021 · 6 comments

Comments

@onespacer
Copy link

^^ as title says. How do I configure multiple exporters jar?

@trask
Copy link
Member

trask commented Mar 3, 2021

hi @onespacer! can you describe your use case, and whether using the otel collector is an option for you?

@onespacer
Copy link
Author

onespacer commented Mar 3, 2021

@trask I want to export traces to couple of customized backends ex. kafka and splunk. I have created custom exporter jars for those. Couldn't see an option to export them together.

@trask
Copy link
Member

trask commented Mar 4, 2021

makes sense, stay tuned for #2442 (or if you want to go exploring undocumented stuff, check out the current otel.initializer.jar)

@onespacer
Copy link
Author

@trask how do I still enable multiple exporters using otel.initializer.jar? I thought "otel.initializer.jar" allows me to create multiple custom exporters, however, only one exporter is active at any given time?

@trask
Copy link
Member

trask commented Mar 10, 2021

hey @onespacer, otel.initializer.jar allows you to add stuff into the agent class loader, so you can add your own SdkTracerProviderConfigurer, and (as many) span processors to the SdkTracerProviderBuilder

@trask
Copy link
Member

trask commented Aug 25, 2021

this is possible now using the new extension mechanism, please see https://github.com/open-telemetry/opentelemetry-java-instrumentation/tree/main/examples/extension, and let us know if you run into any issues

@trask trask closed this as completed Aug 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants