Skip to content

Commit

Permalink
Update tracer provider typing. (#1314)
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonWeber authored Apr 23, 2024
1 parent 8e0c7fb commit 6a5c02f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export async function shutdownAzureMonitor() {
export async function flushAzureMonitor() {
try {
await (metrics.getMeterProvider() as MeterProvider).forceFlush();
await (trace.getTracerProvider() as BasicTracerProvider).forceFlush();
await (((trace.getTracerProvider() as ProxyTracerProvider).getDelegate()) as BasicTracerProvider).forceFlush();
await (logs.getLoggerProvider() as LoggerProvider).forceFlush();
} catch (err) {
diag.error("Failed to flush telemetry", err);
Expand Down

0 comments on commit 6a5c02f

Please sign in to comment.