diff --git a/exporters/otlp/common/src/main/java/io/opentelemetry/exporter/internal/otlp/logs/ResourceLogsMarshaler.java b/exporters/otlp/common/src/main/java/io/opentelemetry/exporter/internal/otlp/logs/ResourceLogsMarshaler.java index bdc033f221..c71840ef8a 100644 --- a/exporters/otlp/common/src/main/java/io/opentelemetry/exporter/internal/otlp/logs/ResourceLogsMarshaler.java +++ b/exporters/otlp/common/src/main/java/io/opentelemetry/exporter/internal/otlp/logs/ResourceLogsMarshaler.java @@ -42,12 +42,12 @@ public final class ResourceLogsMarshaler extends MarshalerWithSize { int posResource = 0; for (Map.Entry>> entry : resourceAndScopeMap.entrySet()) { - InstrumentationScopeLogsMarshaler[] instrumentationLibrarySpansMarshalers = + InstrumentationScopeLogsMarshaler[] instrumentationScopeLogsMarshalers = new InstrumentationScopeLogsMarshaler[entry.getValue().size()]; int posInstrumentation = 0; for (Map.Entry> entryIs : entry.getValue().entrySet()) { - instrumentationLibrarySpansMarshalers[posInstrumentation++] = + instrumentationScopeLogsMarshalers[posInstrumentation++] = new InstrumentationScopeLogsMarshaler( InstrumentationScopeMarshaler.create(entryIs.getKey()), MarshalerUtil.toBytes(entryIs.getKey().getSchemaUrl()), @@ -57,7 +57,7 @@ public final class ResourceLogsMarshaler extends MarshalerWithSize { new ResourceLogsMarshaler( ResourceMarshaler.create(entry.getKey()), MarshalerUtil.toBytes(entry.getKey().getSchemaUrl()), - instrumentationLibrarySpansMarshalers); + instrumentationScopeLogsMarshalers); } return resourceLogsMarshalers; diff --git a/exporters/otlp/common/src/main/java/io/opentelemetry/exporter/internal/otlp/metrics/ResourceMetricsMarshaler.java b/exporters/otlp/common/src/main/java/io/opentelemetry/exporter/internal/otlp/metrics/ResourceMetricsMarshaler.java index 24db5957b9..9632c63ac0 100644 --- a/exporters/otlp/common/src/main/java/io/opentelemetry/exporter/internal/otlp/metrics/ResourceMetricsMarshaler.java +++ b/exporters/otlp/common/src/main/java/io/opentelemetry/exporter/internal/otlp/metrics/ResourceMetricsMarshaler.java @@ -42,12 +42,12 @@ public final class ResourceMetricsMarshaler extends MarshalerWithSize { int posResource = 0; for (Map.Entry>> entry : resourceAndScopeMap.entrySet()) { - InstrumentationScopeMetricsMarshaler[] instrumentationLibrarySpansMarshalers = + InstrumentationScopeMetricsMarshaler[] instrumentationScopeMetricsMarshalers = new InstrumentationScopeMetricsMarshaler[entry.getValue().size()]; int posInstrumentation = 0; for (Map.Entry> entryIs : entry.getValue().entrySet()) { - instrumentationLibrarySpansMarshalers[posInstrumentation++] = + instrumentationScopeMetricsMarshalers[posInstrumentation++] = new InstrumentationScopeMetricsMarshaler( InstrumentationScopeMarshaler.create(entryIs.getKey()), MarshalerUtil.toBytes(entryIs.getKey().getSchemaUrl()), @@ -57,7 +57,7 @@ public final class ResourceMetricsMarshaler extends MarshalerWithSize { new ResourceMetricsMarshaler( ResourceMarshaler.create(entry.getKey()), MarshalerUtil.toBytes(entry.getKey().getSchemaUrl()), - instrumentationLibrarySpansMarshalers); + instrumentationScopeMetricsMarshalers); } return resourceMetricsMarshalers; diff --git a/exporters/otlp/profiles/src/main/java/io/opentelemetry/exporter/otlp/profiles/ResourceProfilesMarshaler.java b/exporters/otlp/profiles/src/main/java/io/opentelemetry/exporter/otlp/profiles/ResourceProfilesMarshaler.java index 442604cead..b063f6c92a 100644 --- a/exporters/otlp/profiles/src/main/java/io/opentelemetry/exporter/otlp/profiles/ResourceProfilesMarshaler.java +++ b/exporters/otlp/profiles/src/main/java/io/opentelemetry/exporter/otlp/profiles/ResourceProfilesMarshaler.java @@ -35,13 +35,13 @@ final class ResourceProfilesMarshaler extends MarshalerWithSize { int posResource = 0; for (Map.Entry>> entry : resourceAndScopeMap.entrySet()) { - InstrumentationScopeProfilesMarshaler[] instrumentationLibrarySpansMarshalers = + InstrumentationScopeProfilesMarshaler[] instrumentationScopeProfilesMarshalers = new InstrumentationScopeProfilesMarshaler[entry.getValue().size()]; int posInstrumentation = 0; for (Map.Entry> entryIs : entry.getValue().entrySet()) { - instrumentationLibrarySpansMarshalers[posInstrumentation++] = + instrumentationScopeProfilesMarshalers[posInstrumentation++] = new InstrumentationScopeProfilesMarshaler( InstrumentationScopeMarshaler.create(entryIs.getKey()), MarshalerUtil.toBytes(entryIs.getKey().getSchemaUrl()), @@ -52,7 +52,7 @@ final class ResourceProfilesMarshaler extends MarshalerWithSize { new ResourceProfilesMarshaler( ResourceMarshaler.create(entry.getKey()), MarshalerUtil.toBytes(entry.getKey().getSchemaUrl()), - instrumentationLibrarySpansMarshalers); + instrumentationScopeProfilesMarshalers); } return resourceProfilesMarshalers;