Skip to content

[Quarkus/Opentelemetry] Cant drop Kafka Traces #14920

@AchimGrolimund

Description

@AchimGrolimund

Describe the bug

I have a Quarkus application that processes thousands of Kafka events per second. However, I don't want to have a trace/span for every Kafka event.

https://quarkus.io/guides/opentelemetry

how can i disable the creation of traces for Kafka?

i got 4 different ENVS

            - name: OTEL_INSTRUMENTATION_KAFKA_ENABLED
              value: 'false'
            - name: OTEL_INSTRUMENT_MESSAGING
              value: 'false'
            - name: QUARKUS_OTEL_INSTRUMENT_MESSAGING
              value: 'false'
            - name: QUARKUS_OTEL_INSTRUMENTATION_KAFKA_ENABLED
              value: 'false'

The documentation is very unclear, especially when you have part of an agent and part of a library, and then there's the Quarkus library.

Best Achim

Steps to reproduce

Create a Quarkus app that processes/produces many Kafka events and implement the OpenTelemetry library.

Expected behavior

Possibility to prevent instrumentation using ENV for all Kafka events

Actual behavior

Chewing traces per second only for Kafka events

Javaagent or library instrumentation version

quarkus-opentelemetry

Environment

<quarkus.platform.version>3.20.2.redhat-00002</quarkus.platform.version>

Additional context

No response

Tip

React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds author feedbackWaiting for additional feedback from the authorneeds triageNew issue that requires triagestale

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions