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
|**POWERTOOLS_SERVICE_NAME**| Set service name used for tracing namespace, metrics dimension and structured logging | All |`service_undefined`|
16
+
|**POWERTOOLS_METRICS_NAMESPACE**| Set namespace used for metrics |[Metrics](features/metrics.md)|`default_namespace`|
17
17
|**POWERTOOLS_METRICS_FUNCTION_NAME**| Function name used as dimension for the `ColdStart` metric |[Metrics](features/metrics.md)|[See docs](features/metrics.md#setting-function-name)|
18
-
|**POWERTOOLS_METRICS_DISABLED**| Explicitly disables emitting metrics to stdout |[Metrics](features/metrics.md)|`false`|
|**POWERTOOLS_DEV**| Pretty-print logs, disable metrics flushing, and disable traces - use for dev only | See section below |`false`|
26
-
|**POWERTOOLS_LOG_LEVEL**| Sets how verbose Logger should be, from the most verbose to the least verbose (no logs) |[Logger](features/logger.md)|`INFO`|
27
-
|**POWERTOOLS_PARAMETERS_MAX_AGE**| Adjust how long values are kept in cache (in seconds) |[Parameters](features/parameters.md)|`5`|
28
-
|**POWERTOOLS_PARAMETERS_SSM_DECRYPT**| Set whether to decrypt or not values retrieved from AWS Systems Manager Parameters Store |[Parameters](features/parameters.md)|`false`|
29
-
|**POWERTOOLS_IDEMPOTENCY_DISABLED**| Disable the Idempotency logic without changing your code, useful for testing |[Idempotency](features/idempotency.md)|`false`|
18
+
|**POWERTOOLS_METRICS_DISABLED**| Explicitly disables emitting metrics to stdout |[Metrics](features/metrics.md)|`false`|
|**POWERTOOLS_DEV**| Pretty-print logs, disable metrics flushing, and disable traces - use for dev only | See section below |`false`|
26
+
|**POWERTOOLS_LOG_LEVEL**| Sets how verbose Logger should be, from the most verbose to the least verbose (no logs) |[Logger](features/logger.md)|`INFO`|
27
+
|**POWERTOOLS_PARAMETERS_MAX_AGE**| Adjust how long values are kept in cache (in seconds) |[Parameters](features/parameters.md)|`5`|
28
+
|**POWERTOOLS_PARAMETERS_SSM_DECRYPT**| Set whether to decrypt or not values retrieved from AWS Systems Manager Parameters Store |[Parameters](features/parameters.md)|`false`|
29
+
|**POWERTOOLS_IDEMPOTENCY_DISABLED**| Disable the Idempotency logic without changing your code, useful for testing |[Idempotency](features/idempotency.md)|`false`|
30
30
31
31
Each Utility page provides information on example values and allowed values.
Copy file name to clipboardExpand all lines: docs/features/idempotency.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -639,17 +639,17 @@ When using Cache as a persistence layer, you can alter the attribute names by pa
639
639
640
640
Idempotent decorator can be further configured with **`IdempotencyConfig`** as seen in the previous examples. These are the available options for further configuration
|**eventKeyJmespath**|`''`| JMESPath expression to extract the idempotency key from the event record using [built-in functions](./jmespath.md#built-in-jmespath-functions){target="_blank"} |
645
-
|**payloadValidationJmespath**|`''`| JMESPath expression to validate that the specified fields haven't changed across requests for the same idempotency key _e.g., payload tampering._|
646
-
|**jmesPathOptions**|`undefined`| Custom JMESPath functions to use when parsing the JMESPath expressions. See [Custom JMESPath Functions](idempotency.md#custom-jmespath-functions)|
647
-
|**throwOnNoIdempotencyKey**|`false`| Throw an error if no idempotency key was found in the request |
648
-
|**expiresAfterSeconds**| 3600 | The number of seconds to wait before a record is expired, allowing a new transaction with the same idempotency key |
649
-
|**useLocalCache**|`false`| Whether to cache idempotency results in-memory to save on persistence storage latency and costs |
650
-
|**localCacheMaxItems**| 256 | Max number of items to store in local cache |
651
-
|**hashFunction**|`md5`| Function to use for calculating hashes, as provided by the [crypto](https://nodejs.org/api/crypto.html#cryptocreatehashalgorithm-options){target="_blank"} module in the standard library. |
652
-
|**responseHook**|`undefined`| Function to use for processing the stored Idempotent response. This function hook is called when an existing idempotent response is found. See [Manipulating The Idempotent Response](idempotency.md#manipulating-the-idempotent-response)|
|**eventKeyJmespath**|`''`| JMESPath expression to extract the idempotency key from the event record using [built-in functions](./jmespath.md#built-in-jmespath-functions){target="_blank"} |
645
+
|**payloadValidationJmespath**|`''`| JMESPath expression to validate that the specified fields haven't changed across requests for the same idempotency key _e.g., payload tampering._|
646
+
|**jmesPathOptions**|`undefined`| Custom JMESPath functions to use when parsing the JMESPath expressions. See [Custom JMESPath Functions](idempotency.md#custom-jmespath-functions)|
647
+
|**throwOnNoIdempotencyKey**|`false`| Throw an error if no idempotency key was found in the request |
648
+
|**expiresAfterSeconds**| 3600 | The number of seconds to wait before a record is expired, allowing a new transaction with the same idempotency key |
649
+
|**useLocalCache**|`false`| Whether to cache idempotency results in-memory to save on persistence storage latency and costs |
650
+
|**localCacheMaxItems**| 256 | Max number of items to store in local cache |
651
+
|**hashFunction**|`md5`| Function to use for calculating hashes, as provided by the [crypto](https://nodejs.org/api/crypto.html#cryptocreatehashalgorithm-options){target="_blank"} module in the standard library. |
652
+
|**responseHook**|`undefined`| Function to use for processing the stored Idempotent response. This function hook is called when an existing idempotent response is found. See [Manipulating The Idempotent Response](idempotency.md#manipulating-the-idempotent-response)|
653
653
654
654
### Handling concurrent executions with the same payload
|**Service**| Optionally, sets **service** metric dimension across all metrics |`POWERTOOLS_SERVICE_NAME`|`service_undefined`| Any string |`serverlessAirline`|`serviceName`|
72
-
|**Metric namespace**| Logical container where all metrics will be placed |`POWERTOOLS_METRICS_NAMESPACE`|`default_namespace`| Any string |`serverlessAirline`|`default_namespace`|
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
-
|**Disabled**| Whether to disable the log of metrics to standard output or not |`POWERTOOLS_METRICS_DISABLED`|`false`| Boolean |`true`||
|**Service**| Optionally, sets **service** metric dimension across all metrics |`POWERTOOLS_SERVICE_NAME`|`service_undefined`| Any string |`serverlessAirline`|`serviceName`|
72
+
|**Metric namespace**| Logical container where all metrics will be placed |`POWERTOOLS_METRICS_NAMESPACE`|`default_namespace`| Any string |`serverlessAirline`|`default_namespace`|
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
+
|**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