Skip to content

Commit 8757fdc

Browse files
committed
v3: [prod] force flush timeout should be 1s
1 parent 2404e88 commit 8757fdc

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/serious-hats-rest.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"trigger.dev": patch
3+
---
4+
5+
v3: [prod] force flush timeout should be 1s

packages/cli-v3/src/workers/prod/worker-setup.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export const tracingSDK = new TracingSDK({
1616
url: process.env.OTEL_EXPORTER_OTLP_ENDPOINT ?? "http://0.0.0.0:4318",
1717
instrumentations: setupImportedConfig?.instrumentations ?? [],
1818
diagLogLevel: (process.env.OTEL_LOG_LEVEL as TracingDiagnosticLogLevel) ?? "none",
19+
forceFlushTimeoutMillis: 1_000,
1920
});
2021

2122
export const otelTracer: Tracer = tracingSDK.getTracer("trigger-prod-worker", packageJson.version);

0 commit comments

Comments
 (0)