Rename variables (#7486)

This commit is contained in:
Lauri Tulmin 2025-07-15 20:37:27 +03:00 committed by GitHub
parent ce1e26f579
commit 7781706de2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 9 additions and 9 deletions

View File

@ -42,12 +42,12 @@ public final class ResourceLogsMarshaler extends MarshalerWithSize {
int posResource = 0;
for (Map.Entry<Resource, Map<InstrumentationScopeInfo, List<Marshaler>>> entry :
resourceAndScopeMap.entrySet()) {
InstrumentationScopeLogsMarshaler[] instrumentationLibrarySpansMarshalers =
InstrumentationScopeLogsMarshaler[] instrumentationScopeLogsMarshalers =
new InstrumentationScopeLogsMarshaler[entry.getValue().size()];
int posInstrumentation = 0;
for (Map.Entry<InstrumentationScopeInfo, List<Marshaler>> 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;

View File

@ -42,12 +42,12 @@ public final class ResourceMetricsMarshaler extends MarshalerWithSize {
int posResource = 0;
for (Map.Entry<Resource, Map<InstrumentationScopeInfo, List<Marshaler>>> entry :
resourceAndScopeMap.entrySet()) {
InstrumentationScopeMetricsMarshaler[] instrumentationLibrarySpansMarshalers =
InstrumentationScopeMetricsMarshaler[] instrumentationScopeMetricsMarshalers =
new InstrumentationScopeMetricsMarshaler[entry.getValue().size()];
int posInstrumentation = 0;
for (Map.Entry<InstrumentationScopeInfo, List<Marshaler>> 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;

View File

@ -35,13 +35,13 @@ final class ResourceProfilesMarshaler extends MarshalerWithSize {
int posResource = 0;
for (Map.Entry<Resource, Map<InstrumentationScopeInfo, List<ProfileMarshaler>>> entry :
resourceAndScopeMap.entrySet()) {
InstrumentationScopeProfilesMarshaler[] instrumentationLibrarySpansMarshalers =
InstrumentationScopeProfilesMarshaler[] instrumentationScopeProfilesMarshalers =
new InstrumentationScopeProfilesMarshaler[entry.getValue().size()];
int posInstrumentation = 0;
for (Map.Entry<InstrumentationScopeInfo, List<ProfileMarshaler>> 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;