Rename variables (#7486)
This commit is contained in:
parent
ce1e26f579
commit
7781706de2
|
@ -42,12 +42,12 @@ public final class ResourceLogsMarshaler extends MarshalerWithSize {
|
||||||
int posResource = 0;
|
int posResource = 0;
|
||||||
for (Map.Entry<Resource, Map<InstrumentationScopeInfo, List<Marshaler>>> entry :
|
for (Map.Entry<Resource, Map<InstrumentationScopeInfo, List<Marshaler>>> entry :
|
||||||
resourceAndScopeMap.entrySet()) {
|
resourceAndScopeMap.entrySet()) {
|
||||||
InstrumentationScopeLogsMarshaler[] instrumentationLibrarySpansMarshalers =
|
InstrumentationScopeLogsMarshaler[] instrumentationScopeLogsMarshalers =
|
||||||
new InstrumentationScopeLogsMarshaler[entry.getValue().size()];
|
new InstrumentationScopeLogsMarshaler[entry.getValue().size()];
|
||||||
int posInstrumentation = 0;
|
int posInstrumentation = 0;
|
||||||
for (Map.Entry<InstrumentationScopeInfo, List<Marshaler>> entryIs :
|
for (Map.Entry<InstrumentationScopeInfo, List<Marshaler>> entryIs :
|
||||||
entry.getValue().entrySet()) {
|
entry.getValue().entrySet()) {
|
||||||
instrumentationLibrarySpansMarshalers[posInstrumentation++] =
|
instrumentationScopeLogsMarshalers[posInstrumentation++] =
|
||||||
new InstrumentationScopeLogsMarshaler(
|
new InstrumentationScopeLogsMarshaler(
|
||||||
InstrumentationScopeMarshaler.create(entryIs.getKey()),
|
InstrumentationScopeMarshaler.create(entryIs.getKey()),
|
||||||
MarshalerUtil.toBytes(entryIs.getKey().getSchemaUrl()),
|
MarshalerUtil.toBytes(entryIs.getKey().getSchemaUrl()),
|
||||||
|
@ -57,7 +57,7 @@ public final class ResourceLogsMarshaler extends MarshalerWithSize {
|
||||||
new ResourceLogsMarshaler(
|
new ResourceLogsMarshaler(
|
||||||
ResourceMarshaler.create(entry.getKey()),
|
ResourceMarshaler.create(entry.getKey()),
|
||||||
MarshalerUtil.toBytes(entry.getKey().getSchemaUrl()),
|
MarshalerUtil.toBytes(entry.getKey().getSchemaUrl()),
|
||||||
instrumentationLibrarySpansMarshalers);
|
instrumentationScopeLogsMarshalers);
|
||||||
}
|
}
|
||||||
|
|
||||||
return resourceLogsMarshalers;
|
return resourceLogsMarshalers;
|
||||||
|
|
|
@ -42,12 +42,12 @@ public final class ResourceMetricsMarshaler extends MarshalerWithSize {
|
||||||
int posResource = 0;
|
int posResource = 0;
|
||||||
for (Map.Entry<Resource, Map<InstrumentationScopeInfo, List<Marshaler>>> entry :
|
for (Map.Entry<Resource, Map<InstrumentationScopeInfo, List<Marshaler>>> entry :
|
||||||
resourceAndScopeMap.entrySet()) {
|
resourceAndScopeMap.entrySet()) {
|
||||||
InstrumentationScopeMetricsMarshaler[] instrumentationLibrarySpansMarshalers =
|
InstrumentationScopeMetricsMarshaler[] instrumentationScopeMetricsMarshalers =
|
||||||
new InstrumentationScopeMetricsMarshaler[entry.getValue().size()];
|
new InstrumentationScopeMetricsMarshaler[entry.getValue().size()];
|
||||||
int posInstrumentation = 0;
|
int posInstrumentation = 0;
|
||||||
for (Map.Entry<InstrumentationScopeInfo, List<Marshaler>> entryIs :
|
for (Map.Entry<InstrumentationScopeInfo, List<Marshaler>> entryIs :
|
||||||
entry.getValue().entrySet()) {
|
entry.getValue().entrySet()) {
|
||||||
instrumentationLibrarySpansMarshalers[posInstrumentation++] =
|
instrumentationScopeMetricsMarshalers[posInstrumentation++] =
|
||||||
new InstrumentationScopeMetricsMarshaler(
|
new InstrumentationScopeMetricsMarshaler(
|
||||||
InstrumentationScopeMarshaler.create(entryIs.getKey()),
|
InstrumentationScopeMarshaler.create(entryIs.getKey()),
|
||||||
MarshalerUtil.toBytes(entryIs.getKey().getSchemaUrl()),
|
MarshalerUtil.toBytes(entryIs.getKey().getSchemaUrl()),
|
||||||
|
@ -57,7 +57,7 @@ public final class ResourceMetricsMarshaler extends MarshalerWithSize {
|
||||||
new ResourceMetricsMarshaler(
|
new ResourceMetricsMarshaler(
|
||||||
ResourceMarshaler.create(entry.getKey()),
|
ResourceMarshaler.create(entry.getKey()),
|
||||||
MarshalerUtil.toBytes(entry.getKey().getSchemaUrl()),
|
MarshalerUtil.toBytes(entry.getKey().getSchemaUrl()),
|
||||||
instrumentationLibrarySpansMarshalers);
|
instrumentationScopeMetricsMarshalers);
|
||||||
}
|
}
|
||||||
|
|
||||||
return resourceMetricsMarshalers;
|
return resourceMetricsMarshalers;
|
||||||
|
|
|
@ -35,13 +35,13 @@ final class ResourceProfilesMarshaler extends MarshalerWithSize {
|
||||||
int posResource = 0;
|
int posResource = 0;
|
||||||
for (Map.Entry<Resource, Map<InstrumentationScopeInfo, List<ProfileMarshaler>>> entry :
|
for (Map.Entry<Resource, Map<InstrumentationScopeInfo, List<ProfileMarshaler>>> entry :
|
||||||
resourceAndScopeMap.entrySet()) {
|
resourceAndScopeMap.entrySet()) {
|
||||||
InstrumentationScopeProfilesMarshaler[] instrumentationLibrarySpansMarshalers =
|
InstrumentationScopeProfilesMarshaler[] instrumentationScopeProfilesMarshalers =
|
||||||
new InstrumentationScopeProfilesMarshaler[entry.getValue().size()];
|
new InstrumentationScopeProfilesMarshaler[entry.getValue().size()];
|
||||||
int posInstrumentation = 0;
|
int posInstrumentation = 0;
|
||||||
|
|
||||||
for (Map.Entry<InstrumentationScopeInfo, List<ProfileMarshaler>> entryIs :
|
for (Map.Entry<InstrumentationScopeInfo, List<ProfileMarshaler>> entryIs :
|
||||||
entry.getValue().entrySet()) {
|
entry.getValue().entrySet()) {
|
||||||
instrumentationLibrarySpansMarshalers[posInstrumentation++] =
|
instrumentationScopeProfilesMarshalers[posInstrumentation++] =
|
||||||
new InstrumentationScopeProfilesMarshaler(
|
new InstrumentationScopeProfilesMarshaler(
|
||||||
InstrumentationScopeMarshaler.create(entryIs.getKey()),
|
InstrumentationScopeMarshaler.create(entryIs.getKey()),
|
||||||
MarshalerUtil.toBytes(entryIs.getKey().getSchemaUrl()),
|
MarshalerUtil.toBytes(entryIs.getKey().getSchemaUrl()),
|
||||||
|
@ -52,7 +52,7 @@ final class ResourceProfilesMarshaler extends MarshalerWithSize {
|
||||||
new ResourceProfilesMarshaler(
|
new ResourceProfilesMarshaler(
|
||||||
ResourceMarshaler.create(entry.getKey()),
|
ResourceMarshaler.create(entry.getKey()),
|
||||||
MarshalerUtil.toBytes(entry.getKey().getSchemaUrl()),
|
MarshalerUtil.toBytes(entry.getKey().getSchemaUrl()),
|
||||||
instrumentationLibrarySpansMarshalers);
|
instrumentationScopeProfilesMarshalers);
|
||||||
}
|
}
|
||||||
|
|
||||||
return resourceProfilesMarshalers;
|
return resourceProfilesMarshalers;
|
||||||
|
|
Loading…
Reference in New Issue