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_TRACER_CAPTURE_RESPONSE**| Captures Lambda or method return as metadata. |[Tracing](./core/tracer){target="_blank"}|`true`|
711
-
|**POWERTOOLS_TRACER_CAPTURE_ERROR**| Captures Lambda or method exception as metadata. |[Tracing](./core/tracer){target="_blank"}|`true`|
712
-
|**POWERTOOLS_TRACE_MIDDLEWARES**| Creates sub-segment for each custom middleware |[Middleware factory](./utilities/middleware_factory){target="_blank"}|`false`|
|**POWERTOOLS_LOG_DEDUPLICATION_DISABLED**| Disables log deduplication filter protection to use Pytest Live Log feature |[Logging](./core/logger){target="_blank"}|`false`|
716
-
|**POWERTOOLS_PARAMETERS_MAX_AGE**| Adjust how long values are kept in cache (in seconds) |[Parameters](./utilities/parameters/#adjusting-cache-ttl){target="_blank"}|`5`|
717
-
|**POWERTOOLS_PARAMETERS_SSM_DECRYPT**| Sets whether to decrypt or not values retrieved from AWS SSM Parameters Store |[Parameters](./utilities/parameters/#ssmprovider){target="_blank"}|`false`|
708
+
|**POWERTOOLS_METRICS_NAMESPACE**| Sets namespace used for metrics |[Metrics](./core/metrics.md){target="_blank"} |`None`|
|**POWERTOOLS_TRACER_CAPTURE_RESPONSE**| Captures Lambda or method return as metadata. |[Tracing](./core/tracer.md){target="_blank"} |`true`|
711
+
|**POWERTOOLS_TRACER_CAPTURE_ERROR**| Captures Lambda or method exception as metadata. |[Tracing](./core/tracer.md){target="_blank"} |`true`|
712
+
|**POWERTOOLS_TRACE_MIDDLEWARES**| Creates sub-segment for each custom middleware |[Middleware factory](./utilities/middleware_factory.md){target="_blank"} |`false`|
|**POWERTOOLS_LOG_DEDUPLICATION_DISABLED**| Disables log deduplication filter protection to use Pytest Live Log feature |[Logging](./core/logger.md){target="_blank"} |`false`|
716
+
|**POWERTOOLS_PARAMETERS_MAX_AGE**| Adjust how long values are kept in cache (in seconds) |[Parameters](./utilities/parameters.md#adjusting-cache-ttl){target="_blank"} |`5`|
717
+
|**POWERTOOLS_PARAMETERS_SSM_DECRYPT**| Sets whether to decrypt or not values retrieved from AWS SSM Parameters Store |[Parameters](./utilities/parameters.md#ssmprovider){target="_blank"} |`false`|
718
718
|**POWERTOOLS_DEV**| Increases verbosity across utilities | Multiple; see [POWERTOOLS_DEV effect below](#optimizing-for-non-production-environments)|`false`|
Copy file name to clipboardExpand all lines: docs/tutorial/index.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -226,7 +226,7 @@ For this to work, we could create a new Lambda function to handle incoming reque
226
226
We could group similar routes and intents, separate read and write operations resulting in fewer functions. It doesn't address the boilerplate routing code, but maybe it will be easier to add additional URLs.
227
227
228
228
???+ info "Info: You might be already asking yourself about mono vs micro-functions"
229
-
If you want a more detailed explanation of these two approaches, head over to the [trade-offs on each approach](../core/event_handler/api_gateway/#considerations){target="_blank"} later.
229
+
If you want a more detailed explanation of these two approaches, head over to the [trade-offs on each approach](../core/event_handler/api_gateway.md#considerations){target="_blank"} later.
230
230
231
231
A first attempt at the routing logic might look similar to the following code snippet.
232
232
@@ -773,7 +773,7 @@ Another subtle difference is that you can now run your Lambda functions and unit
773
773
Powertools for AWS Lambda (Python) optimizes for Lambda compute environment. As such, we add these and other common approaches to accelerate your development, so you don't worry about implementing every cross-cutting concern.
774
774
775
775
???+ tip
776
-
You can [opt-out some of these behaviours](../core/tracer/#advanced){target="_blank"} like disabling response capturing, explicitly patching only X modules, etc.
776
+
You can [opt-out some of these behaviours](../core/tracer.md#advanced){target="_blank"} like disabling response capturing, explicitly patching only X modules, etc.
777
777
778
778
Repeat the process of building, deploying, and invoking your application via the API endpoint. Within the [AWS X-Ray Console](https://console.aws.amazon.com/xray/home#/traces/){target="_blank"}, you should see a similar view:
Copy file name to clipboardExpand all lines: docs/utilities/idempotency.md
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -496,14 +496,14 @@ When using DynamoDB as a persistence layer, you can alter the attribute names by
496
496
497
497
Idempotent decorator can be further configured with **`IdempotencyConfig`** as seen in the previous example. These are the available options for further configuration
|**event_key_jmespath**|`""`| JMESPath expression to extract the idempotency key from the event record using [built-in functions](/utilities/jmespath_functions){target="_blank"}|
502
-
|**payload_validation_jmespath**|`""`| JMESPath expression to validate whether certain parameters have changed in the event while the event payload |
503
-
|**raise_on_no_idempotency_key**|`False`| Raise exception if no idempotency key was found in the request |
504
-
|**expires_after_seconds**| 3600 | The number of seconds to wait before a record is expired |
505
-
|**use_local_cache**|`False`| Whether to locally cache idempotency results |
506
-
|**local_cache_max_items**| 256 | Max number of items to store in local cache |
|**event_key_jmespath**|`""`| JMESPath expression to extract the idempotency key from the event record using [built-in functions](./jmespath_functions.md#built-in-jmespath-functions){target="_blank"} |
502
+
|**payload_validation_jmespath**|`""`| JMESPath expression to validate whether certain parameters have changed in the event while the event payload |
503
+
|**raise_on_no_idempotency_key**|`False`| Raise exception if no idempotency key was found in the request |
504
+
|**expires_after_seconds**| 3600 | The number of seconds to wait before a record is expired |
505
+
|**use_local_cache**|`False`| Whether to locally cache idempotency results |
506
+
|**local_cache_max_items**| 256 | Max number of items to store in local cache |
507
507
|**hash_function**|`md5`| Function to use for calculating hashes, as provided by [hashlib](https://docs.python.org/3/library/hashlib.html){target="_blank" rel="nofollow"} in the standard library. |
508
508
509
509
### Handling concurrent executions with the same payload
Copy file name to clipboardExpand all lines: docs/utilities/middleware_factory.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -92,7 +92,7 @@ If you are making use of [Tracer](../core/tracer.md){target="_blank"}, you can t
92
92
This makes use of an existing Tracer instance that you may have initialized anywhere in your code.
93
93
94
94
???+ warning
95
-
You must [enable Active Tracing](../core/tracer/#permissions){target="_blank"} in your Lambda function when using this feature, otherwise Lambda cannot send traces to XRay.
95
+
You must [enable Active Tracing](../core/tracer.md#permissions){target="_blank"} in your Lambda function when using this feature, otherwise Lambda cannot send traces to XRay.
0 commit comments