Skip to content

Commit 625b79d

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

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
@@ -360,7 +360,7 @@ You can optionally capture cold start metrics with the `logMetrics` middleware o
360360
import { Context } from 'aws-lambda';
361361
import middy from '@middy/core';
362362

363-
const metrics = new Metrics({namespace:"serverlessAirline", service:"orders"});
363+
const metrics = new Metrics({namespace: 'serverlessAirline', service: 'orders' });
364364

365365
const lambdaHandler = async (event: any, context: Context) => {
366366
metrics.addMetric('successfulBooking', MetricUnits.Count, 1);

0 commit comments

Comments
 (0)