- 필수 기능
- 시작하기
- Glossary
- 표준 속성
- Guides
- Agent
- 통합
- 개방형텔레메트리
- 개발자
- Administrator's Guide
- API
- Datadog Mobile App
- CoScreen
- Cloudcraft
- 앱 내
- 서비스 관리
- 인프라스트럭처
- 애플리케이션 성능
- APM
- Continuous Profiler
- 스팬 시각화
- 데이터 스트림 모니터링
- 데이터 작업 모니터링
- 디지털 경험
- 소프트웨어 제공
- 보안
- AI Observability
- 로그 관리
- 관리
Datadog SDKs implement the OpenTelemetry Tracing APIs, allowing you to use OpenTelemetry environment variables to configure Datadog tracing for your applications. Replace the OpenTelemetry SDK with the Datadog SDK in your application to receive traces and additional Datadog telemetry with minimal changes to your existing configuration. This page describes the OpenTelemetry SDK options Datadog supports.
Datadog SDKs support the following general OpenTelemetry SDK options. For more information, see the related OpenTelemetry documentation.
OTEL_SERVICE_NAME
DD_SERVICE
service.name
is also provided in OTEL_RESOURCE_ATTRIBUTES
, then OTEL_SERVICE_NAME
takes precedenceOTEL_LOG_LEVEL
DD_LOG_LEVEL
DD_TRACE_DEBUG=true
DD_TRACE_LOG_LEVEL
OTEL_LOG_LEVEL
& DD_TRACE_DEBUG
are supported:info
|false
debug
|true
OTEL_PROPAGATORS
DD_TRACE_PROPAGATION_STYLE
tracecontext
, b3
, b3multi
, none
, datadog
. xray
is also supported for the Java SDKPropagator
only onceOTEL_TRACES_SAMPLER & OTEL_TRACES_SAMPLER_ARG
DD_TRACE_SAMPLE_RATE
OTEL_TRACES_SAMPLER
: Sampler to be used for traces & OTEL_TRACES_SAMPLER_ARG
: String value to be used as the sampler argumentOTEL_TRACES_SAMPLER
is set. Each Sampler type defines its own expected input, if any. Invalid or unrecognized input MUST be logged and MUST be otherwise ignored. In such cases, the implementation MUST behave as if OTEL_TRACES_SAMPLER_ARG
is not setOTEL_TRACES_SAMPLER
& DD_TRACE_SAMPLE_RATE
:parentbased_always_on
|1.0
parentbased_always_off
|0.0
parentbased_traceidratio
|${OTEL_TRACES_SAMPLER_ARG}
always_on
|1.0
always_off
|0.0
traceidratio
|${OTEL_TRACES_SAMPLER_ARG}
OTEL_TRACES_EXPORTER
DD_TRACE_ENABLED=false
none
is acceptedOTEL_METRICS_EXPORTER
DD_RUNTIME_METRICS_ENABLED=false
none
is acceptedOTEL_RESOURCE_ATTRIBUTES
DD_TAGS
deployment.environment
and deployment.environment.name
map to the DD_ENV
environment variableservice.name
maps to the DD_SERVICE
environment variableservice.version
maps to the DD_VERSION
environment variableOTEL_SDK_DISABLED
!DD_TRACE_OTEL_ENABLED
OTEL_SDK_DISABLED
& DD_TRACE_OTEL_ENABLED
:true
|false
false
|true
Datadog SDKs support the following Java-specific OpenTelemetry configuration options. For more information, see the OpenTelemetry documentation on Java agent configuration.
OTEL_INSTRUMENTATION_COMMON_DEFAULT_ENABLED
!DD_INTEGRATIONS_ENABLED
false
to disable all instrumentation in the agentOTEL_INSTRUMENTATION_COMMON_DEFAULT_ENABLED
& DD_INTEGRATIONS_ENABLED
:true
|false
false
|true
OTEL_INSTRUMENTATION_[NAME]_ENABLED
OTEL_JAVAAGENT_CONFIGURATION_FILE
DD_TRACE_CONFIG
OTEL_INSTRUMENTATION_HTTP_CLIENT_CAPTURE_REQUEST_HEADERS
DD_TRACE_REQUEST_HEADER_TAGS
http.request.header.<header-name>
rather than the Datadog convention of http.request.headers.<header-name>
OTEL_INSTRUMENTATION_HTTP_CLIENT_CAPTURE_RESPONSE_HEADERS
DD_TRACE_RESPONSE_HEADER_TAGS
http.response.header.<header-name>
rather than the Datadog convention of http.response.headers.<header-name>
OTEL_INSTRUMENTATION_HTTP_SERVER_CAPTURE_REQUEST_HEADERS
DD_TRACE_REQUEST_HEADER_TAGS
http.request.header.<header-name>
rather than the Datadog convention of http.request.headers.<header-name>
OTEL_INSTRUMENTATION_HTTP_SERVER_CAPTURE_RESPONSE_HEADERS
DD_TRACE_RESPONSE_HEADER_TAGS
http.response.header.<header-name>
rather than the Datadog convention of http.response.headers.<header-name>
OTEL_JAVAAGENT_EXTENSIONS
DD_TRACE_EXTENSIONS_PATH
추가 유용한 문서, 링크 및 기사: