Skip to content

[Metrics-generator: span-metrics] Enable option to apply regex/wildcard on span attribute key #3302

@kaynat12

Description

@kaynat12

I recently started to work on open telemetry, I have multiple attributes where key is prefixed with a string, for example, fruit_apple=3, fruit_orange=5, fruit_mango=10, etc,

Need a feature in span-metrics to apply wildcard on attribute key as below or suggest any workaround.

metricsGenerator:
span_metrics:
# -- Additional dimensions to add to the metrics along with the default dimensions.
# -- Dimensions are searched for in the resource and span attributes and are added to the metrics if present.
dimensions:
- fruit_.*

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions