Skip to content

Commit d0d0c29

Browse files
docs: update docs/core/metrics.md
Co-authored-by: Sara Gerion <[email protected]>
1 parent f07c545 commit d0d0c29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: docs/core/metrics.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ You can manually flush the metrics with `publishStoredMetrics` as follows:
301301

302302
export const handler = async (_event: any, _context: any) => {
303303
metrics.addMetric('successfulBooking', MetricUnits.Count, 10);
304-
metrics.purgeStoredMetrics();
304+
metrics.publishStoredMetrics();
305305
};
306306
```
307307

0 commit comments

Comments
 (0)