Skip to content

Commit 41e5dc9

Browse files
authored
Docs: Update metrics.md in all parts where POWERTOOLS_METRICS_ENABLED is mentioned
1 parent f81f02f commit 41e5dc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/features/metrics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ You can customize how Metrics logs warnings and debug messages to standard outpu
493493

494494
When unit testing your code that uses the Metrics utility, you may want to silence the logs emitted by the utility. To do so, you can set the `POWERTOOLS_DEV` environment variable to `true`. This instructs the utility to not emit any logs to standard output.
495495

496-
If instead you want to spy on the logs emitted by the utility, you must set the `POWERTOOLS_DEV` environment variable to `true` in conjunction with the `POWERTOOLS_METRICS_ENABLED` environment variable also set to `true`.
496+
If instead you want to spy on the logs emitted by the utility, you must set the `POWERTOOLS_DEV` environment variable to `true` in conjunction with the `POWERTOOLS_METRICS_DISABLED` environment variable set to `false`.
497497

498498
When `POWERTOOLS_DEV` is enabled, Metrics uses the global `console` to emit metrics to standard out. This allows you to easily spy on the logs emitted and make assertions on them.
499499

0 commit comments

Comments
 (0)