Skip to content

Commit b8990e6

Browse files
committed
Try to speed up the log delay schedule
1 parent f827579 commit b8990e6

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

tracer/test/Datadog.Trace.ClrProfiler.IntegrationTests/OpenTelemetrySdkTests.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -609,8 +609,9 @@ public async Task SubmitsOtlpLogs(string packageVersion, string datadogLogsEnabl
609609
SetEnvironmentVariable("DD_LOGS_OTEL_ENABLED", datadogLogsEnabled);
610610
SetEnvironmentVariable("OTEL_LOGS_EXPORTER_ENABLED", otelLogsEnabled);
611611
SetEnvironmentVariable("OTEL_EXPORTER_OTLP_PROTOCOL", protocol);
612-
// 2s allows a periodic export to warm the gRPC connection before the OTel SDK's hardcoded 5s shutdown timeout in LoggerProviderSdk.Dispose()
613-
SetEnvironmentVariable("OTEL_BLRP_SCHEDULE_DELAY", "2000");
612+
// Short delay gives the OTel SDK multiple periodic exports before LoggerProviderSdk.Dispose() hits its 5s shutdown timeout.
613+
// This is especially important for gRPC, where the first export warms the HTTP/2 connection.
614+
SetEnvironmentVariable("OTEL_BLRP_SCHEDULE_DELAY", "500");
614615
SetEnvironmentVariable("DD_LOGS_DIRECT_SUBMISSION_MINIMUM_LEVEL", "Verbose");
615616

616617
if (useAgentHostBackup)

0 commit comments

Comments
 (0)