Skip to content

Commit 482b6d8

Browse files
committed
docs: updated all references to publishStoredMetrics
1 parent d0d0c29 commit 482b6d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: docs/core/metrics.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ You can create metrics using the `addMetric` method, and you can create dimensio
107107

108108
export const handler = async (_event: any, _context: any) => {
109109
metrics.addMetric('successfulBooking', MetricUnits.Count, 1);
110-
metrics.purgeStoredMetrics();
110+
metrics.publishStoredMetrics();
111111
}
112112
```
113113

@@ -121,7 +121,7 @@ You can create metrics using the `addMetric` method, and you can create dimensio
121121
export const handler = async (_event: any, _context: any) => {
122122
metrics.addDimension('environment', 'prod');
123123
metrics.addMetric('successfulBooking', MetricUnits.Count, 1);
124-
metrics.purgeStoredMetrics();
124+
metrics.publishStoredMetrics();
125125
}
126126
```
127127

0 commit comments

Comments
 (0)