Skip to content

Commit

Permalink
force flush otel (#1875)
Browse files Browse the repository at this point in the history
  • Loading branch information
rogeralsing committed Dec 3, 2022
1 parent 5f550b0 commit c778e68
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/Proto.Cluster.Tests/ClusterFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ public async Task DisposeAsync()
{
await WaitForMembersToShutdown();
}
_tracerProvider?.ForceFlush(1000);
}
else
{
Expand Down Expand Up @@ -205,7 +206,7 @@ private static void InitOpenTelemetryTracing()
var services = new ServiceCollection();
services.AddLogging(l =>
{
l.SetMinimumLevel(LogLevel.Warning);
l.SetMinimumLevel(LogLevel.Debug);
l.AddOpenTelemetry(
options =>
{
Expand All @@ -214,7 +215,7 @@ private static void InitOpenTelemetryTracing()
.AddOtlpExporter(o =>
{
o.Endpoint = endpoint;
o.ExportProcessorType = ExportProcessorType.Simple;
o.ExportProcessorType = ExportProcessorType.Batch;
});
});
});
Expand All @@ -234,7 +235,7 @@ private static void InitOpenTelemetryTracing()
.AddOtlpExporter(options =>
{
options.Endpoint = endpoint;
options.ExportProcessorType = ExportProcessorType.Simple;
options.ExportProcessorType = ExportProcessorType.Batch;
})
.Build();
}
Expand Down

0 comments on commit c778e68

Please sign in to comment.