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

Add an option to disable automatic kafka interceptor configuration in spring starter #12833

Merged

Conversation

laurit
Copy link
Contributor

@laurit laurit commented Dec 4, 2024

Resolves #11793
Based on #11793 (comment) by @zeitlinger Add an option to disable automatic configuration of interceptors and exposes SpringKafkaTelemetry as bean so that user could get access to the interceptors and manually add the interceptors. Also try to read the existing interceptors from ConcurrentKafkaListenerContainerFactory and wrap them instead of overwriting. Note that similarly to how we could end up overwriting user configured interceptors the user can also overwrite our interceptors.

@laurit laurit requested a review from a team as a code owner December 4, 2024 13:03
@github-actions github-actions bot added the test native This label can be applied to PRs to trigger them to run native tests label Dec 4, 2024
@trask trask merged commit c2c5d80 into open-telemetry:main Dec 7, 2024
56 checks passed
@micd
Copy link

micd commented Dec 10, 2024

Thanks, appreciate your effort on this
@laurit @zeitlinger @trask

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test native This label can be applied to PRs to trigger them to run native tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ConcurrentKafkaListenerContainerFactoryPostProcessor overriding interceptor
4 participants