Skip to content

Commit f29fc49

Browse files
committed
chore(metrics): merge conflict
2 parents 419c8d2 + d503075 commit f29fc49

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/core/metrics.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ You can use add default dimensions to your metrics by passing them as parameters
115115

116116
* in the constructor
117117
* in the Middy middleware
118-
* using the setDefaultDimensions` method
118+
* using the `setDefaultDimensions` method
119119
* in the decorator
120120

121121
If you'd like to remove them at some point, you can use `clearDefaultDimensions` method.
@@ -138,7 +138,7 @@ See examples below:
138138
}
139139
```
140140

141-
=== "logMetrics middleware"
141+
=== "Middy middleware"
142142

143143
```typescript hl_lines="5"
144144
import { Metrics, MetricUnits, logMetrics } from '@aws-lambda-powertools/metrics';
@@ -209,7 +209,7 @@ If you do not the middleware or decorator, you have to flush your metrics manual
209209
* Metric units must be [supported by CloudWatch](https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_MetricDatum.html)
210210

211211

212-
#### Using a middleware
212+
#### Using Middy middleware
213213

214214
See below an example of how to automatically flush metrics with the Middy-compatible `logMetrics` middleware.
215215

@@ -257,7 +257,7 @@ See below an example of how to automatically flush metrics with the Middy-compat
257257
}
258258
```
259259

260-
#### Using a class decorator
260+
#### Using the class decorator
261261

262262
!!! info
263263
Decorators can only be attached to a class declaration, method, accessor, property, or parameter. Therefore, if you prefer to write your handler as a standard function rather than a Class method, check the [middleware](#using-a-middleware) or [manual](#manually) method sections instead.
@@ -312,7 +312,7 @@ export class MyFunction {
312312

313313
#### Manually
314314

315-
If you wish to do so, you can manually flush metrics with `purgeStoredMetrics` and clear metrics as follows:
315+
You can manually flush the metrics with `purgeStoredMetrics` as follows:
316316

317317
!!! warning
318318
Metrics, dimensions and namespace validation still applies.

0 commit comments

Comments
 (0)