-
Notifications
You must be signed in to change notification settings - Fork 881
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
add support for missing list properties in spring starter #12434
Conversation
@jeanbisutti please take a look |
...lemetry/instrumentation/spring/autoconfigure/internal/properties/SpringConfigProperties.java
Outdated
Show resolved
Hide resolved
...lemetry/instrumentation/spring/autoconfigure/internal/properties/SpringConfigProperties.java
Outdated
Show resolved
Hide resolved
...lemetry/instrumentation/spring/autoconfigure/internal/properties/SpringConfigProperties.java
Outdated
Show resolved
Hide resolved
...telemetry/instrumentation/spring/autoconfigure/internal/properties/SpringOtelProperties.java
Outdated
Show resolved
Hide resolved
...o/opentelemetry/instrumentation/spring/autoconfigure/OpenTelemetryAutoConfigurationTest.java
Outdated
Show resolved
Hide resolved
...lemetry/instrumentation/spring/autoconfigure/internal/properties/SpringConfigProperties.java
Outdated
Show resolved
Hide resolved
...lemetry/instrumentation/spring/autoconfigure/internal/properties/SpringConfigProperties.java
Outdated
Show resolved
Hide resolved
...lemetry/instrumentation/spring/autoconfigure/internal/properties/SpringConfigProperties.java
Outdated
Show resolved
Hide resolved
Does this PR mean that the list properties were not properly managed by the OTel starter?
Line 113 in 8a10097
What are the limitations of the current implementation? |
not all relevant list properties were included - and all list properties have to be supported specifically due to how spring treats lists |
This one seems to be new:
Could you please elaborate this and the new properties in the PR description? It would help to review the PR and the users understand what is new. |
...telemetry/instrumentation/spring/autoconfigure/internal/properties/OtelSpringProperties.java
Show resolved
Hide resolved
...o/opentelemetry/instrumentation/spring/autoconfigure/OpenTelemetryAutoConfigurationTest.java
Outdated
Show resolved
Hide resolved
done |
3952fcf
to
4f40c0e
Compare
...telemetry/instrumentation/spring/autoconfigure/internal/properties/OtelSpringProperties.java
Show resolved
Hide resolved
...lemetry/instrumentation/spring/autoconfigure/internal/properties/SpringConfigProperties.java
Outdated
Show resolved
Hide resolved
...lemetry/instrumentation/spring/autoconfigure/internal/properties/SpringConfigProperties.java
Show resolved
Hide resolved
...lemetry/instrumentation/spring/autoconfigure/internal/properties/SpringConfigProperties.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks @zeitlinger!
Spring needs special handling of lists and maps
@ConfigurationProperties
object@ConfigurationProperties
- you can simply get them from the environmentSo what was actually missing: