Skip to content

Commit 9de118e

Browse files
committed
Update HTTP exporters
1 parent 9e80c6a commit 9de118e

File tree

3 files changed

+6
-6
lines changed
  • exporter/opentelemetry-exporter-otlp-proto-http/src/opentelemetry/exporter/otlp/proto/http

3 files changed

+6
-6
lines changed

exporter/opentelemetry-exporter-otlp-proto-http/src/opentelemetry/exporter/otlp/proto/http/_log_exporter/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ def __init__(
153153
self._shutdown = False
154154

155155
self._metrics = ExporterMetrics(
156-
OtelComponentTypeValues.OTLP_HTTP_LOG_EXPORTER.value,
157-
"log",
156+
OtelComponentTypeValues.OTLP_HTTP_LOG_EXPORTER,
157+
"logs",
158158
urlparse(self._endpoint),
159159
meter_provider,
160160
)

exporter/opentelemetry-exporter-otlp-proto-http/src/opentelemetry/exporter/otlp/proto/http/metric_exporter/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,8 @@ def __init__(
196196
self._shutdown = False
197197

198198
self._metrics = ExporterMetrics(
199-
OtelComponentTypeValues.OTLP_HTTP_METRIC_EXPORTER.value,
200-
"metric_data_point",
199+
OtelComponentTypeValues.OTLP_HTTP_METRIC_EXPORTER,
200+
"metrics",
201201
urlparse(self._endpoint),
202202
meter_provider,
203203
)

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ def __init__(
148148
self._shutdown = False
149149

150150
self._metrics = ExporterMetrics(
151-
OtelComponentTypeValues.OTLP_HTTP_SPAN_EXPORTER.value,
152-
"span",
151+
OtelComponentTypeValues.OTLP_HTTP_SPAN_EXPORTER,
152+
"traces",
153153
urlparse(self._endpoint),
154154
meter_provider,
155155
)

0 commit comments

Comments
 (0)