Skip to content

Commit

Permalink
fixed type and exporter name (open-telemetry#648)
Browse files Browse the repository at this point in the history
  • Loading branch information
mamunto authored Dec 2, 2024
1 parent f2315d8 commit a0261fa
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a0261fa

Please sign in to comment.