-
Notifications
You must be signed in to change notification settings - Fork 871
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
Re-use entire SDK auto-config in spring starter #10409
Comments
Do you have other examples in addittion to the sampler?
Could you please elaborate? The user could define his own |
|
Please see Use case 1 (but we can also discuss in a meeting 😄 ) |
#10292 is re-using the OTLP exporter logic from SDK auto-config.
There are still parts of the SDK auto-config that are not re-used currently, such as sampler
Technically, we could call the auto-config as a black box - and it would respect the spring properties.
What are the problems with this approach?
@Bean
s are collected - we should probably load both to meet the expectations of Spring users and library authors alike.Use Case 1: User supplies tracer provider
As a spring boot user, I want to provide my own instance of
SdkTracerProvider
(but let the framework configure the rest).I'll configure the
SdkTracerProvider
programatically, usingSdkTracerProvider.builder()...
.Right now, this use case is supported with
@ConditionalOnMissingBean
, which instructs spring to prefer a user supplied object if available:full code
The above code copies this part of the SDK auto-config code - just to add this annotation.
What can we do?
We can make the SpiHelper flexible enough that it allows
The text was updated successfully, but these errors were encountered: