frigus02 / opentelemetry-application-insights

OpenTelemetry exporter for Azure Application Insights
MIT License
22 stars 12 forks source link

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

Open frigus02 opened 2 months ago

frigus02 commented 2 months ago

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:

Disadvantages:

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