Skip to content

Commit

Permalink
fix(traces-action): shutdown only once (#1076)
Browse files Browse the repository at this point in the history
  • Loading branch information
sduranc authored Oct 31, 2024
1 parent a0fa85c commit 128904b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions actions/send-ci-cd-trace/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,7 @@ async function run() {
if (provider && 'forceFlush' in provider) {
await provider.forceFlush;
}
// Shutdown the Azure Monitor exporter
await shutdownAzureMonitor();

console.log("Trace data sent to Azure Monitor successfully.");
} catch (error) {
if (error instanceof Error) {
Expand Down

0 comments on commit 128904b

Please sign in to comment.