Skip to content

Commit 7781706

Browse files
authored
Rename variables (#7486)
1 parent ce1e26f commit 7781706

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

exporters/otlp/common/src/main/java/io/opentelemetry/exporter/internal/otlp/logs/ResourceLogsMarshaler.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ public static ResourceLogsMarshaler[] create(Collection<LogRecordData> logs) {
4242
int posResource = 0;
4343
for (Map.Entry<Resource, Map<InstrumentationScopeInfo, List<Marshaler>>> entry :
4444
resourceAndScopeMap.entrySet()) {
45-
InstrumentationScopeLogsMarshaler[] instrumentationLibrarySpansMarshalers =
45+
InstrumentationScopeLogsMarshaler[] instrumentationScopeLogsMarshalers =
4646
new InstrumentationScopeLogsMarshaler[entry.getValue().size()];
4747
int posInstrumentation = 0;
4848
for (Map.Entry<InstrumentationScopeInfo, List<Marshaler>> entryIs :
4949
entry.getValue().entrySet()) {
50-
instrumentationLibrarySpansMarshalers[posInstrumentation++] =
50+
instrumentationScopeLogsMarshalers[posInstrumentation++] =
5151
new InstrumentationScopeLogsMarshaler(
5252
InstrumentationScopeMarshaler.create(entryIs.getKey()),
5353
MarshalerUtil.toBytes(entryIs.getKey().getSchemaUrl()),
@@ -57,7 +57,7 @@ public static ResourceLogsMarshaler[] create(Collection<LogRecordData> logs) {
5757
new ResourceLogsMarshaler(
5858
ResourceMarshaler.create(entry.getKey()),
5959
MarshalerUtil.toBytes(entry.getKey().getSchemaUrl()),
60-
instrumentationLibrarySpansMarshalers);
60+
instrumentationScopeLogsMarshalers);
6161
}
6262

6363
return resourceLogsMarshalers;

exporters/otlp/common/src/main/java/io/opentelemetry/exporter/internal/otlp/metrics/ResourceMetricsMarshaler.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ public static ResourceMetricsMarshaler[] create(Collection<MetricData> metricDat
4242
int posResource = 0;
4343
for (Map.Entry<Resource, Map<InstrumentationScopeInfo, List<Marshaler>>> entry :
4444
resourceAndScopeMap.entrySet()) {
45-
InstrumentationScopeMetricsMarshaler[] instrumentationLibrarySpansMarshalers =
45+
InstrumentationScopeMetricsMarshaler[] instrumentationScopeMetricsMarshalers =
4646
new InstrumentationScopeMetricsMarshaler[entry.getValue().size()];
4747
int posInstrumentation = 0;
4848
for (Map.Entry<InstrumentationScopeInfo, List<Marshaler>> entryIs :
4949
entry.getValue().entrySet()) {
50-
instrumentationLibrarySpansMarshalers[posInstrumentation++] =
50+
instrumentationScopeMetricsMarshalers[posInstrumentation++] =
5151
new InstrumentationScopeMetricsMarshaler(
5252
InstrumentationScopeMarshaler.create(entryIs.getKey()),
5353
MarshalerUtil.toBytes(entryIs.getKey().getSchemaUrl()),
@@ -57,7 +57,7 @@ public static ResourceMetricsMarshaler[] create(Collection<MetricData> metricDat
5757
new ResourceMetricsMarshaler(
5858
ResourceMarshaler.create(entry.getKey()),
5959
MarshalerUtil.toBytes(entry.getKey().getSchemaUrl()),
60-
instrumentationLibrarySpansMarshalers);
60+
instrumentationScopeMetricsMarshalers);
6161
}
6262

6363
return resourceMetricsMarshalers;

exporters/otlp/profiles/src/main/java/io/opentelemetry/exporter/otlp/profiles/ResourceProfilesMarshaler.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ static ResourceProfilesMarshaler[] create(Collection<ProfileData> profiles) {
3535
int posResource = 0;
3636
for (Map.Entry<Resource, Map<InstrumentationScopeInfo, List<ProfileMarshaler>>> entry :
3737
resourceAndScopeMap.entrySet()) {
38-
InstrumentationScopeProfilesMarshaler[] instrumentationLibrarySpansMarshalers =
38+
InstrumentationScopeProfilesMarshaler[] instrumentationScopeProfilesMarshalers =
3939
new InstrumentationScopeProfilesMarshaler[entry.getValue().size()];
4040
int posInstrumentation = 0;
4141

4242
for (Map.Entry<InstrumentationScopeInfo, List<ProfileMarshaler>> entryIs :
4343
entry.getValue().entrySet()) {
44-
instrumentationLibrarySpansMarshalers[posInstrumentation++] =
44+
instrumentationScopeProfilesMarshalers[posInstrumentation++] =
4545
new InstrumentationScopeProfilesMarshaler(
4646
InstrumentationScopeMarshaler.create(entryIs.getKey()),
4747
MarshalerUtil.toBytes(entryIs.getKey().getSchemaUrl()),
@@ -52,7 +52,7 @@ static ResourceProfilesMarshaler[] create(Collection<ProfileData> profiles) {
5252
new ResourceProfilesMarshaler(
5353
ResourceMarshaler.create(entry.getKey()),
5454
MarshalerUtil.toBytes(entry.getKey().getSchemaUrl()),
55-
instrumentationLibrarySpansMarshalers);
55+
instrumentationScopeProfilesMarshalers);
5656
}
5757

5858
return resourceProfilesMarshalers;

0 commit comments

Comments
 (0)