Skip to content

Commit b9d07d9

Browse files
author
alrex
authored
updating docs now that metadata has been renamed (open-telemetry#1324)
1 parent 28f35b8 commit b9d07d9

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

docs/getting_started/otlpcollector_example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
# optional
2828
# endpoint:="myCollectorURL:55678",
2929
# credentials=ChannelCredentials(credentials),
30-
# metadata=(("metadata", "metadata")),
30+
# headers=(("metadata", "metadata")),
3131
)
3232
tracer_provider = TracerProvider()
3333
trace.set_tracer_provider(tracer_provider)
@@ -38,7 +38,7 @@
3838
# optional
3939
# endpoint:="myCollectorURL:55678",
4040
# credentials=ChannelCredentials(credentials),
41-
# metadata=(("metadata", "metadata")),
41+
# headers=(("metadata", "metadata")),
4242
)
4343

4444
# Meter is responsible for creating and recording metrics

exporter/opentelemetry-exporter-otlp/src/opentelemetry/exporter/otlp/exporter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ class OTLPExporterMixin(
141141
endpoint: OpenTelemetry Collector receiver endpoint
142142
insecure: Connection type
143143
credentials: ChannelCredentials object for server authentication
144-
metadata: Metadata to send when exporting
144+
headers: Headers to send when exporting
145145
compression: Compression algorithm to be used in channel
146146
timeout: Backend request timeout in seconds
147147
"""

exporter/opentelemetry-exporter-otlp/src/opentelemetry/exporter/otlp/metrics_exporter/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ class OTLPMetricsExporter(
121121
endpoint: OpenTelemetry Collector receiver endpoint
122122
insecure: Connection type
123123
credentials: Credentials object for server authentication
124-
metadata: Metadata to send when exporting
124+
headers: Headers to send when exporting
125125
timeout: Backend request timeout in seconds
126126
"""
127127

exporter/opentelemetry-exporter-otlp/src/opentelemetry/exporter/otlp/trace_exporter/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class OTLPSpanExporter(
5858
endpoint: OpenTelemetry Collector receiver endpoint
5959
insecure: Connection type
6060
credentials: Credentials object for server authentication
61-
metadata: Metadata to send when exporting
61+
headers: Headers to send when exporting
6262
timeout: Backend request timeout in seconds
6363
"""
6464

0 commit comments

Comments
 (0)