diff --git a/Sources/Exporters/OpenTelemetryProtocolHttp/logs/OtlpHttpLogExporter.swift b/Sources/Exporters/OpenTelemetryProtocolHttp/logs/OtlpHttpLogExporter.swift index 0aa67509..df7c7457 100644 --- a/Sources/Exporters/OpenTelemetryProtocolHttp/logs/OtlpHttpLogExporter.swift +++ b/Sources/Exporters/OpenTelemetryProtocolHttp/logs/OtlpHttpLogExporter.swift @@ -50,9 +50,9 @@ public class OtlpHttpLogExporter: OtlpHttpExporterBase, LogRecordExporter { ) { self.init(endpoint: endpoint, config: config, useSession: useSession, envVarHeaders: envVarHeaders) exporterMetrics = ExporterMetrics( - type: "otlp", + type: "log", meterProvider: meterProvider, - exporterName: "log", + exporterName: "otlp", transportName: config.exportAsJson ? ExporterMetrics.TransporterType.httpJson : ExporterMetrics.TransporterType.grpc diff --git a/Sources/Exporters/OpenTelemetryProtocolHttp/metric/OltpHTTPMetricExporter.swift b/Sources/Exporters/OpenTelemetryProtocolHttp/metric/OltpHTTPMetricExporter.swift index f15d8704..9f60bebb 100644 --- a/Sources/Exporters/OpenTelemetryProtocolHttp/metric/OltpHTTPMetricExporter.swift +++ b/Sources/Exporters/OpenTelemetryProtocolHttp/metric/OltpHTTPMetricExporter.swift @@ -52,9 +52,9 @@ public class OtlpHttpMetricExporter: OtlpHttpExporterBase, MetricExporter { ) { self.init(endpoint: endpoint, config: config, useSession: useSession, envVarHeaders: envVarHeaders) exporterMetrics = ExporterMetrics( - type: "otlp", + type: "metric", meterProvider: meterProvider, - exporterName: "metric", + exporterName: "otlp", transportName: config.exportAsJson ? ExporterMetrics.TransporterType.httpJson : ExporterMetrics.TransporterType.grpc diff --git a/Sources/Exporters/OpenTelemetryProtocolHttp/metric/StableOtlpHTTPMetricExporter.swift b/Sources/Exporters/OpenTelemetryProtocolHttp/metric/StableOtlpHTTPMetricExporter.swift index cd0ad0c4..28cab544 100644 --- a/Sources/Exporters/OpenTelemetryProtocolHttp/metric/StableOtlpHTTPMetricExporter.swift +++ b/Sources/Exporters/OpenTelemetryProtocolHttp/metric/StableOtlpHTTPMetricExporter.swift @@ -59,9 +59,9 @@ public class StableOtlpHTTPMetricExporter: StableOtlpHTTPExporterBase, StableMet envVarHeaders: envVarHeaders ) self.exporterMetrics = ExporterMetrics( - type: "otlp", + type: "metric", meterProvider: meterProvider, - exporterName: "metric", + exporterName: "otlp", transportName: config.exportAsJson ? ExporterMetrics.TransporterType.httpJson : ExporterMetrics.TransporterType.grpc diff --git a/Sources/Exporters/OpenTelemetryProtocolHttp/trace/OtlpHttpTraceExporter.swift b/Sources/Exporters/OpenTelemetryProtocolHttp/trace/OtlpHttpTraceExporter.swift index dce85937..2d3663f5 100644 --- a/Sources/Exporters/OpenTelemetryProtocolHttp/trace/OtlpHttpTraceExporter.swift +++ b/Sources/Exporters/OpenTelemetryProtocolHttp/trace/OtlpHttpTraceExporter.swift @@ -52,9 +52,9 @@ public class OtlpHttpTraceExporter: OtlpHttpExporterBase, SpanExporter { ) { self.init(endpoint: endpoint, config: config, useSession: useSession, envVarHeaders: envVarHeaders) exporterMetrics = ExporterMetrics( - type: "otlp", + type: "span", meterProvider: meterProvider, - exporterName: "span", + exporterName: "otlp", transportName: config.exportAsJson ? ExporterMetrics.TransporterType.httpJson : ExporterMetrics.TransporterType.grpc