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 7ea58a8 commit 625b79dCopy full SHA for 625b79d
docs/core/metrics.md
@@ -360,7 +360,7 @@ You can optionally capture cold start metrics with the `logMetrics` middleware o
360
import { Context } from 'aws-lambda';
361
import middy from '@middy/core';
362
363
- const metrics = new Metrics({namespace:"serverlessAirline", service:"orders"});
+ const metrics = new Metrics({namespace: 'serverlessAirline', service: 'orders' });
364
365
const lambdaHandler = async (event: any, context: Context) => {
366
metrics.addMetric('successfulBooking', MetricUnits.Count, 1);
0 commit comments