Skip to content

Commit

Permalink
fix(tracer-action): do not force flush (#1077)
Browse files Browse the repository at this point in the history
  • Loading branch information
sduranc authored Oct 31, 2024
1 parent b7be38f commit 007b689
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions actions/send-ci-cd-trace/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 007b689

Please sign in to comment.