-
Notifications
You must be signed in to change notification settings - Fork 857
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
support otel.instrumentation.kafka.experimental-span-attributes in spring starter #11263
support otel.instrumentation.kafka.experimental-span-attributes in spring starter #11263
Conversation
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.
@zeitlinger Would it be possible to add an automatic test? Perhaps in another PR?
yes, I can add it in #11262 |
79575ac
to
c8b34e1
Compare
c8b34e1
to
4185f83
Compare
…compatible with all spring versions, honors properties customizers, and easier to find usages
4185f83
to
8271414
Compare
it's now tested here: https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/11263/files#diff-23bb7021e8d17c3bda9c13eb1c42019ba2a666e22da6a8d6da97ce4717612546R101 |
...va/io/opentelemetry/instrumentation/spring/autoconfigure/OpenTelemetryAutoConfiguration.java
Show resolved
Hide resolved
...va/io/opentelemetry/instrumentation/spring/autoconfigure/OpenTelemetryAutoConfiguration.java
Outdated
Show resolved
Hide resolved
...utoconfigure/instrumentation/kafka/ConcurrentKafkaListenerContainerFactoryPostProcessor.java
Show resolved
Hide resolved
...va/io/opentelemetry/instrumentation/spring/autoconfigure/OpenTelemetryAutoConfiguration.java
Show resolved
Hide resolved
* Expose the {@link ConfigProperties} bean for use in other auto-configurations. | ||
* | ||
* <p>Why not use spring boot properties directly? <br> | ||
* 1. issues with older spring boot versions <br> |
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.
wouldn't these issues affect our (broader) usage of spring boot properties to configure the SDK?
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.
merging to unblock #11350, but i'd be in favor of removing this bullet (or explaining it better), since as written I think it creates more questions than it answers
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.
it's this style that silently returns false in boot 2
@Value("${otel.instrumentation.common.db-statement-sanitizer.enabled:true}")
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.
wouldn't these issues affect our (broader) usage of spring boot properties to configure the SDK?
no
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.
i'd be in favor of removing this bullet (or explaining it better), since as written I think it creates more questions than it answers
* 1. issues with older spring boot versions <br> |
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.
(i'll send PR)
Depends #11262