From 007b68900b130dd171f7f91e14cf39df71d0f480 Mon Sep 17 00:00:00 2001 From: Sebastian Duran Date: Thu, 31 Oct 2024 15:46:36 +0100 Subject: [PATCH] fix(tracer-action): do not force flush (#1077) --- actions/send-ci-cd-trace/src/index.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/actions/send-ci-cd-trace/src/index.ts b/actions/send-ci-cd-trace/src/index.ts index 27220c69..42572702 100644 --- a/actions/send-ci-cd-trace/src/index.ts +++ b/actions/send-ci-cd-trace/src/index.ts @@ -198,11 +198,6 @@ async function run() { // End the workflow span workflowSpan.end(workflowEndTime); console.log("Trace ID:", workflowSpan.spanContext().traceId); - // Force flush before shutdown - const provider = trace.getTracerProvider() - if (provider && 'forceFlush' in provider) { - await provider.forceFlush; - } console.log("Trace data sent to Azure Monitor successfully."); } catch (error) {