We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5365237 commit 75ae1c8Copy full SHA for 75ae1c8
src/index.ts
@@ -445,10 +445,10 @@ export async function emitTelemetryOnErrorOutsideHandler(
445
}
446
447
const config = getConfig();
448
- const metricsListener = new MetricsListener(new KMSService(), config);
449
- await metricsListener.onStartInvocation(undefined);
450
if (config.enhancedMetrics) {
+ const metricsListener = new MetricsListener(new KMSService(), config);
+ await metricsListener.onStartInvocation(undefined);
451
incrementErrorsMetric(metricsListener);
452
+ await metricsListener.onCompleteInvocation();
453
- await metricsListener.onCompleteInvocation();
454
0 commit comments