Skip to content
Prev Previous commit
Next Next commit
address comments
  • Loading branch information
Vishwesh Bankwar committed Oct 12, 2023
commit b35f720ae4389baf94de0ce1e6a3cd6483f5c2b5
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ internal OtlpCollector.ExportLogsServiceRequest BuildExportRequest(
OtlpResource.Resource processResource,
in Batch<LogRecord> logRecordBatch)
{
// https://github.com/open-telemetry/opentelemetry-dotnet/issues/4943
// TODO: https://github.com/open-telemetry/opentelemetry-dotnet/issues/4943
Dictionary<string, OtlpLogs.ScopeLogs> logsByCategory = new Dictionary<string, OtlpLogs.ScopeLogs>();

var request = new OtlpCollector.ExportLogsServiceRequest();
Expand All @@ -55,8 +55,6 @@ internal OtlpCollector.ExportLogsServiceRequest BuildExportRequest(
};
request.ResourceLogs.Add(resourceLogs);

logsByCategory.Clear();

foreach (var logRecord in logRecordBatch)
{
var otlpLogRecord = this.ToOtlpLog(logRecord);
Expand Down