Open tinyjacky opened 2 months ago
Pinging code owners:
connector/datadog: @mx-psi @dineshg13 @ankitpatel96
See Adding Labels via Comments if you do not have permissions to add labels yourself.
@tinyjacky if you can remove service.name
from span attributes and only leave the one in resource attributes, that should solve the issue.
According to OTel spec https://opentelemetry.io/docs/specs/semconv/resource/#service service.name
is a resource attribute rather than span attribute. Datadog semantic mapping doc suggests the same: https://docs.datadoghq.com/getting_started/tagging/unified_service_tagging/?tab=kubernetes#opentelemetry
When using OpenTelemetry, map the following resource attributes to their corresponding Datadog conventions
We plan to eventually remove the mappings that do not conform to OTel specs following some deprecation period, such as getting resource attributes from span attributes. /cc @IbraheemA @dineshg13
Component(s)
connector/datadog
What happened?
Description
With
connect.datadogconnector.NativeIngest
enabled, during APM stats metric aggregation, only the resource attributeservice.name
would be used for service name, while the span attributeservice.name
attribute would be ignored.This is believed to be a bug because, in Datadog backend, the
service
value in the span is still using span attributeservice.name
, while theservice
value in APM metrics uses the resource attributeservice.name
.For these kind of spans, the APM metrics related UX would be broken because of the inconsistencies.
Steps to Reproduce
Send a span with attribute
service.name
valuesname
and resource attributeservice.name
valuername
For example,Expected Result
APM metrics with attr
service:sname
.Actual Result
APM metrics with attr
service:rname
.Collector version
v0.110.0
Environment information
Environment
OS: macOS Sonoma 14.6.1, arm64
OpenTelemetry Collector configuration
Log output
No response
Additional context
No response