- 필수 기능
- 시작하기
- Glossary
- 표준 속성
- Guides
- Agent
- 통합
- 개방형텔레메트리
- 개발자
- Administrator's Guide
- API
- Datadog Mobile App
- CoScreen
- Cloudcraft
- 앱 내
- 서비스 관리
- 인프라스트럭처
- 애플리케이션 성능
- APM
- Continuous Profiler
- 스팬 시각화
- 데이터 스트림 모니터링
- 데이터 작업 모니터링
- 디지털 경험
- 소프트웨어 제공
- 보안
- AI Observability
- 로그 관리
- 관리
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.
Before migrating, remove any existing span name configuration:
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 configuration
exporters:
datadog:
traces:
span_name_as_resource_name: true
span_name_remappings:
"old_name1": "new_name"
connectors:
datadog/connector:
traces:
span_name_as_resource_name: true
span_name_as_resource_name
and span_name_remappings
from your Agent configuration:# Remove the highlighted lines if they exist in your configuration
otlp_config:
traces:
span_name_as_resource_name: true
span_name_remappings:
"old_name1": "new_name"
DD_OTLP_CONFIG_TRACES_SPAN_NAME_AS_RESOURCE_NAME
DD_OTLP_CONFIG_TRACES_SPAN_NAME_REMAPPINGS
Launch the OpenTelemetry Collector with the feature gate:
otelcol --config=config.yaml --feature-gates=datadog.EnableOperationAndResourceNameV2
If you previously used span name configurations, replace them with processor configurations:
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:
processors:
transform:
trace_statements:
- context: span
statements:
- set(attributes["operation.name"], name)
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: span
statements:
- set(attributes["operation.name"], "new_name") where name == "old_name"
Enable the feature using one of these methods:
Add the feature flag to your Agent configuration:
apm_config:
features: ["enable_operation_and_resource_name_logic_v2"]
Set the environment variable:
export DD_APM_FEATURES="enable_operation_and_resource_name_logic_v2"
operation.name
attribute directly in your application code.추가 유용한 문서, 링크 및 기사: