Skip to content

Elide attributes from properties that have also been reported as tag?Β #70

@frigus02

Description

@frigus02

Currently opentelemetry-application-insights reports all attributes (span and resource attributes) as properties. This means that attributes that are mapped to tags are reported twice, e.g.:

Advantages:

  • Some tags have stricter length limitations. The property could report the full value while the tag would have a shorter one.
  • Some tags are made up of multiple attributes, e.g. server.address + server.port form the Dependency Target. The properties still report the individual values.

Disadvantages:

  • Sending data twice causes more network traffic and storage. Is the amount of data relevant or small enough that it doesn't matter?

Looks like the JS exporter elides some attributes: https://github.com/Azure/azure-sdk-for-js/blob/c66cad23c4b803719db65cb48a453b0adc13307b/sdk/monitor/monitor-opentelemetry-exporter/src/utils/spanUtils.ts#L108-L143

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions