Skip to content

[Samplers] How to drop multiple span_kinds #2499

@bwcxyk

Description

@bwcxyk

Component(s)

samplers

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

span_kind: SERVER

tracer_provider:
  sampler:
    parent_based:
      root:
        rule_based_routing:
          fallback_sampler:
            always_on:
          span_kind: SERVER
          rules:
            - action: DROP
              attribute: url.path
              pattern: /health.*
            - action: DROP
              attribute: url.path
              pattern: /actuator.*

I want to drop the redis heartbeat, I don't know if it's supported.

            - action: DROP
              attribute: db.statement
              pattern: ^PING$
            - action: DROP
              attribute: db.statement
              pattern: ^QUIT$

Describe the solution you'd like

I looked at https://github.com/open-telemetry/opentelemetry-java-contrib/tree/main/cel-sampler, is it necessary to add the CEL-Based sampler to the extension?

Describe alternatives you've considered

No response

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

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions