Skip to content

Commit 2378cb2

Browse files
committed
more doc updates
1 parent 55ee400 commit 2378cb2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/core/metrics.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -411,11 +411,11 @@ This has the advantage of keeping cold start metric separate from your applicati
411411

412412
When emitting cold start metrics, the `function_name` dimension defaults to `context.functionName`. If you want to change the value you can set the `functionName` parameter in the metrics constructor, define the environment variable `POWERTOOLS_METRICS_FUNCTION_NAME`, or pass a value to `captureColdStartMetric`.
413413

414-
The priority of the `function_name` is defined as:
414+
The priority of the `function_name` dimension value is defined as:
415415

416416
1. `functionName` constructor option
417417
2. `POWERTOOLS_METRICS_FUNCTION_NAME` environment variable
418-
3. `context.functionName` if using logMetrics decorator or Middy middleware OR override function name in `captureColdStartMetric` call
418+
3. The value passed in the `captureColdStartMetric` call, or `context.functionName` if using logMetrics decorator or Middy middleware
419419

420420
=== "constructor"
421421

0 commit comments

Comments
 (0)