Skip to content

Prevent kafka client-id from being emitted #6781

@naumaan123

Description

@naumaan123

I have a spring boot app auto configured with opentelemetry, and am using kafka to send some messages. I am attempting to prevent some attributes/metrics from being emitted such as client-id and kafka.producer.io_ratio. Here is a sample of a properties file

otel.experimental.resource.disabled-keys=client-id,kafka.producer.io_ratio

I am not getting the expected results. I may have a fundamental misunderstanding of this prop as it seems to work for some other attributes, can someone point out what im doing wrong? I also tried creating a view-config.yml file and had the below

- selector:
       instrument_name: kafka.producer.io_ratio
     views:
       aggregation: drop

but this seemed to disable all sorts of tracing and the entire kafka metrics.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions