Skip to content

Commit 988a757

Browse files
committed
.net format
1 parent 6149cb1 commit 988a757

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/OpenTelemetry.Exporter.Geneva/Internal/MsgPack/MsgPackLogExporter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public MsgPackLogExporter(GenevaExporterOptions options, Func<Resource> resource
142142
var buffer = new byte[BUFFER_SIZE];
143143
var cursor = MessagePackSerializer.Serialize(buffer, 0, new Dictionary<string, object> { { "TimeFormat", "DateTime" } });
144144
this.bufferEpilogue = new byte[cursor - 0];
145-
System.Buffer.BlockCopy(buffer, 0, this.bufferEpilogue, 0, cursor - 0);
145+
Buffer.BlockCopy(buffer, 0, this.bufferEpilogue, 0, cursor - 0);
146146
}
147147

148148
internal bool IsUsingUnixDomainSocket => this.dataTransport is UnixDomainSocketDataTransport;
@@ -558,7 +558,7 @@ internal ArraySegment<byte> SerializeLogRecord(LogRecord logRecord)
558558
}
559559

560560
MessagePackSerializer.WriteUInt16(buffer, idxMapSizePatch, cntFields);
561-
System.Buffer.BlockCopy(this.bufferEpilogue, 0, buffer, cursor, this.bufferEpilogue.Length);
561+
Buffer.BlockCopy(this.bufferEpilogue, 0, buffer, cursor, this.bufferEpilogue.Length);
562562
cursor += this.bufferEpilogue.Length;
563563
return new(buffer, 0, cursor);
564564
}

test/OpenTelemetry.Exporter.Geneva.Tests/GenevaLogExporterTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,7 @@ public void PassThruTableMappingsWhenTheRuleIsEnabled()
351351
userInitializedCategoryToTableNameMappings.TryGetValue(mapping.Key, out var expectedTableNme);
352352
Assert.Equal(expectedTableNme, actualTableName);
353353
}
354+
354355
logRecordList.Clear();
355356
exportedData.Clear();
356357
}

0 commit comments

Comments
 (0)