You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Docs: metrics.md file wrongly mentioned variable name to disable log
Docs mentions POWERTOOLS_METRICS_ENABLED however the library does not uses this environment variable to control metrics logs. Instead it uses POWERTOOLS_METRICS_DISABLED
Copy file name to clipboardExpand all lines: docs/features/metrics.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -71,7 +71,7 @@ These settings will be used across all metrics emitted:
71
71
|**Service**| Optionally, sets **service** metric dimension across all metrics |`POWERTOOLS_SERVICE_NAME`|`service_undefined`| Any string |`serverlessAirline`|`serviceName`|
72
72
|**Metric namespace**| Logical container where all metrics will be placed |`POWERTOOLS_METRICS_NAMESPACE`|`default_namespace`| Any string |`serverlessAirline`|`default_namespace`|
73
73
|**Function Name**| Function name used as dimension for the `ColdStart` metric |`POWERTOOLS_METRICS_FUNCTION_NAME`|[See docs](#capturing-a-cold-start-invocation-as-metric)| Any string |`my-function-name`|`functionName`|
74
-
|**Enabled**| Whether to emit metrics to standard output or not |`POWERTOOLS_METRICS_ENABLED`|`true`| Boolean |`false`||
74
+
|**Disabled**| Whether to disable the log of metrics to standard output or not |`POWERTOOLS_METRICS_DISABLED`|`false`| Boolean |`true`||
75
75
76
76
!!! tip
77
77
Use your application name or main service as the metric namespace to easily group all metrics
0 commit comments