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 3a9cd0d commit 7ea58a8Copy full SHA for 7ea58a8
docs/core/metrics.md
@@ -219,7 +219,7 @@ See below an example of how to automatically flush metrics with the Middy-compat
219
import { Context } from 'aws-lambda';
220
import middy from '@middy/core';
221
222
- const metrics = new Metrics({namespace:"exampleApplication", service:"exampleService"});
+ const metrics = new Metrics({ namespace: 'exampleApplication' , service: 'exampleService' });
223
224
const lambdaHandler = async (event: any, context: Context) => {
225
metrics.addMetric('bookingConfirmation', MetricUnits.Count, 1);
0 commit comments