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

[SpringBoot Starter] Ability to exclude specific KafkaListener from traces #12470

Open
yddimitrov opened this issue Oct 18, 2024 · 0 comments
Open
Labels
enhancement New feature or request needs triage New issue that requires triage

Comments

@yddimitrov
Copy link

Is your feature request related to a problem? Please describe.

In our applications we have some Kafka Listeners that run on Application start and bootstrap caches by reading topics from the beginning.
This causes enormous spike in unnecessary traces during application boot. The Listeners are stopped after initial bootstrap so they do not provide any meaning after the boot is completed anyway.

Describe the solution you'd like

We want to have the ability to exclude specific Kafka Listeners or specific classes by Spring Configuration and/or a specific annotation.

Proposed solutions:

  • Ideally we want to have the ability to exclude classes and/or methods from producing traces.
    E.g.: otel.exclude-classes="my.package.MyClass,my.package2.*"
    E.g 2: otel.instrumentation.kafka.exclude-classes="my.package.MyClass,my.package2.*"

  • Have the ability to annotate methods and/or classes that should be ignored by OTEL exporters
    E.g: @WithoutSpan or @IgnoreSpan

Or any alternative that does not include JavaAgent and is compatible with the SpringBoot Starter for OTEL.

Describe alternatives you've considered

We considered migrating over to JavaAgent but that is not an ideal solution ATM.

Additional context

No response

@yddimitrov yddimitrov added enhancement New feature or request needs triage New issue that requires triage labels Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs triage New issue that requires triage
Projects
None yet
Development

No branches or pull requests

1 participant