This page is not yet available in Spanish. We are working on its translation. If you have any questions or feedback about our current translation project, feel free to reach out to us!
When using OpenTelemetry with Datadog, you might see unclear or lengthy operation names in your traces, and some traces might not appear in your service pages. This happens because of missing mappings between OpenTelemetry SDK information and Datadog operation names, which are span attributes that classify entry points into a service.
Datadog now provides new operation name mappings that improve trace visibility in the service page. This feature requires opt-in configuration now but will become the default in the near future.
Datadog strongly recommends migrating to the new mappings as soon as possible before they become the default.
Remove span_name_as_resource_name and span_name_remappings from your Datadog exporter and connector configurations:
# Remove the highlighted lines if they exist in your configurationexporters:datadog:traces:span_name_as_resource_name:truespan_name_remappings:"old_name1":"new_name"connectors:datadog/connector:traces:span_name_as_resource_name:true
Remove span_name_as_resource_name and span_name_remappings from your Agent configuration:
# Remove the highlighted lines if they exist in your configurationotlp_config:traces:span_name_as_resource_name:truespan_name_remappings:"old_name1":"new_name"
The span_name_as_resource_name configuration you removed pulled the span.name attribute from your OpenTelemetry trace to populate the Datadog operation name. To maintain this functionality, use a transform processor to map span names to the operation.name attribute:
The span_name_remappings configuration you removed allowed automatic mapping between operation names. To maintain this functionality, use a transform processor to set specific operation names:
processors:transform:trace_statements:- context:spanstatements:- set(attributes["operation.name"], "new_name") where name == "old_name"
Replace removed configurations If you previously used span name configurations and need to maintain similar functionality, set the operation.name attribute directly in your application code.