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) {