Skip to content

Add option to add instrumentation scope name as a dimension #23662

Closed
@erri120

Description

@erri120

Component(s)

connector/spanmetrics

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

In my current project, I need the instrumentation scope name as a dimension in the exported span metrics.

Describe the solution you'd like

Ideally, a new option instrumentation_scope that allows you to configure which part of the scope should be included as a dimension:

spanmetrics:
  instrumentation_scope:
    name: true
    version: false

Additionally, dimensions should also look at the instrumentation scope attributes.

Describe alternatives you've considered

Alternative, I'd have to add the name of the instrumentation scope to the span's attributes before it's send to the collector and then use the dimensions option. This isn't ideal, since every span would now have an additional tag.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    connector/spanmetricsenhancementNew feature or requestnever staleIssues marked with this label will be never staled and automatically removed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions