@@ -46,7 +46,7 @@ If you are using [OpenTelemetry automatic instrumentation][3], set the following
46
46
``` shell
47
47
export OTEL_EXPORTER_OTLP_TRACES_PROTOCOL=" http/protobuf"
48
48
export OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=" {{< region-param key=" otlp_trace_endpoint" >}}"
49
- export OTEL_EXPORTER_OTLP_TRACES_HEADERS=" dd-protocol=otlp,dd- api-key=${DD_API_KEY} ,dd-otlp-source=${YOUR_SITE} "
49
+ export OTEL_EXPORTER_OTLP_TRACES_HEADERS=" dd-api-key=${DD_API_KEY} ,dd-otlp-source=${YOUR_SITE} "
50
50
```
51
51
52
52
<div class =" alert alert-info " >The value for <code >dd-otlp-source</code > should be provided to you by Datadog after being allowlisted for the intake endpoint. This is a specific identifier assigned to your organization.</div >
@@ -68,7 +68,6 @@ const { OTLPTraceExporter } = require('@opentelemetry/exporter-trace-otlp-proto'
68
68
const exporter = new OTLPTraceExporter ({
69
69
url: ' ${YOUR_ENDPOINT}' , // Replace this with the correct endpoint
70
70
headers: {
71
- ' dd-protocol' : ' otlp' ,
72
71
' dd-api-key' : process .env .DD_API_KEY ,
73
72
' dd-otel-span-mapping' : ' {span_name_as_resource_name: true}' ,
74
73
' dd-otlp-source' : ' ${YOUR_SITE}' , // Replace with the specific value provided by Datadog for your organization
@@ -88,7 +87,6 @@ import io.opentelemetry.exporter.otlp.http.trace.OtlpHttpSpanExporter;
88
87
89
88
OtlpHttpSpanExporter exporter = OtlpHttpSpanExporter . builder()
90
89
.setEndpoint(" ${YOUR_ENDPOINT}" ) // Replace this with the correct endpoint
91
- .addHeader(" dd-protocol" , " otlp" )
92
90
.addHeader(" dd-api-key" , System . getenv(" DD_API_KEY" ))
93
91
.addHeader(" dd-otel-span-mapping" , " {span_name_as_resource_name: true}" )
94
92
.addHeader(" dd-otlp-source" , " ${YOUR_SITE}" ) // Replace with the specific value provided by Datadog for your organization
@@ -108,13 +106,12 @@ import "go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp"
108
106
traceExporter , err := otlptracehttp.New (
109
107
ctx,
110
108
otlptracehttp.WithEndpoint (" ${YOUR_ENDPOINT}" ), // Replace this with the correct endpoint
111
- otlptracehttp.WithURLPath (" /api/v0.2 /traces" ),
109
+ otlptracehttp.WithURLPath (" /v1 /traces" ),
112
110
otlptracehttp.WithHeaders (
113
111
map [string ]string {
114
- " dd-protocol" : " otlp" ,
115
112
" dd-api-key" : os.Getenv (" DD_API_KEY" ),
116
113
" dd-otel-span-mapping" : " {span_name_as_resource_name: true}" ,
117
- " dd-otlp-source" : " ${YOUR_SITE}" , // Replace with the specific value provided by Datadog for your organization
114
+ " dd-otlp-source" : " ${YOUR_SITE}" , // Replace with the specific value provided by Datadog for your organization
118
115
}),
119
116
)
120
117
```
@@ -132,7 +129,6 @@ from opentelemetry.exporter.otlp.proto.http.trace_exporter import OTLPSpanExport
132
129
exporter = OTLPSpanExporter(
133
130
endpoint = " ${YOUR_ENDPOINT} " , # Replace this with the correct endpoint
134
131
headers = {
135
- " dd-protocol" : " otlp" ,
136
132
" dd-api-key" : os.environ.get(" DD_API_KEY" ),
137
133
" dd-otel-span-mapping" : " {span_name_as_resource_name: true} " ,
138
134
" dd-otlp-source" : " ${YOUR_SITE} " # Replace with the specific value provided by Datadog for your organization
@@ -179,7 +175,6 @@ exporters:
179
175
otlphttp :
180
176
traces_endpoint : {{< region-param key="otlp_trace_endpoint" >}}
181
177
headers :
182
- dd-protocol : " otlp"
183
178
dd-api-key : ${env:DD_API_KEY}
184
179
dd-otel-span-mapping : " {span_name_as_resource_name: false}"
185
180
dd-otlp-source : " ${YOUR_SITE}" , # Replace with the specific value provided by Datadog for your organization
0 commit comments