Skip to content

Commit 7ea58a8

Browse files
saragerionflochaz
andauthored
Update docs/core/metrics.md
Co-authored-by: Florian Chazal <florianchazal@gmail.com>
1 parent 3a9cd0d commit 7ea58a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/core/metrics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ See below an example of how to automatically flush metrics with the Middy-compat
219219
import { Context } from 'aws-lambda';
220220
import middy from '@middy/core';
221221

222-
const metrics = new Metrics({namespace:"exampleApplication", service:"exampleService"});
222+
const metrics = new Metrics({ namespace: 'exampleApplication' , service: 'exampleService' });
223223

224224
const lambdaHandler = async (event: any, context: Context) => {
225225
metrics.addMetric('bookingConfirmation', MetricUnits.Count, 1);

0 commit comments

Comments
 (0)