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
|**Logging level**| Sets how verbose Logger should be (INFO, by default). Supported values are: `DEBUG`, `INFO`, `WARN`, `ERROR`|`LOG_LEVEL`|`logLevel`|
58
-
|**Service name**| Sets the name of service of which the Lambda function is part of, that will be present across all log statements |`POWERTOOLS_SERVICE_NAME`|`serviceName`|
59
-
60
-
For a **complete list** of supported environment variables, refer to [this section](./../index.md#environment-variables).
|**Service name**| Sets the name of service of which the Lambda function is part of, that will be present across all log statements |`POWERTOOLS_SERVICE_NAME`|`serviceName`|
58
+
|**Logging level**| Sets how verbose Logger should be (INFO, by default). Supported values are: `DEBUG`, `INFO`, `WARN`, `ERROR`|`LOG_LEVEL`|`logLevel`|
59
+
|**Log incoming event**| Whether to log or not the incoming event when using the decorator or middleware. Supported values are: `true`, or `false`, disabled by default |`POWERTOOLS_LOGGER_LOG_EVENT`|`logEvent`|
60
+
|**Debug log sampling**| Probability that a Lambda invocation will print all the log items regardless of the log level setting. Supported values range from `0.0` to `1`|`POWERTOOLS_LOGGER_SAMPLE_RATE`|`sampleRateValue`|
61
61
62
62
#### Example using AWS Serverless Application Model (SAM)
**Tracing enabled**| Enables or disables tracing. By default tracing is enabled when running in AWS Lambda. | `POWERTOOLS_TRACE_ENABLED` | `enabled`
56
-
**Service name**| Sets an annotation with the **name of the service** across all traces e.g. `serverlessAirline`| `POWERTOOLS_SERVICE_NAME`| `serviceName`
57
-
**Capture HTTPs Requests** | Defines whether HTTPs requests will be traced or not, enabled by default when tracing is also enabled. | `POWERTOOLS_TRACER_CAPTURE_HTTPS_REQUESTS` | `captureHTTPsRequests`
58
-
59
-
For a **complete list**of supported environment variables, refer to [this section](./../index.md#environment-variables).
|**Service name**| Sets an annotation with the **name of the service** across all traces e.g. `serverlessAirline`|`POWERTOOLS_SERVICE_NAME`|`serviceName`|
56
+
|**Tracing enabled**| Enables or disables tracing. By default tracing is enabled when running in AWS Lambda |`POWERTOOLS_TRACE_ENABLED`|`enabled`|
57
+
|**Capture HTTPs Requests**| Defines whether HTTPs requests will be traced or not, enabled by default when tracing is also enabled|`POWERTOOLS_TRACER_CAPTURE_HTTPS_REQUESTS`|`captureHTTPsRequests`|
58
+
|**Capture Response**| Defines whether functions responses are serialized as metadata, enabled by default when tracing is also enabled |`POWERTOOLS_TRACER_CAPTURE_RESPONSE`|`captureResult`|
59
+
|**Capture Errors**| Defines whether functions errors are serialized as metadata, enabled by default when tracing is also enabled |`POWERTOOLS_TRACER_CAPTURE_ERROR`| N/A |
60
60
61
61
!!! note
62
62
Before your use this utility, your AWS Lambda function must have [Active Tracing enabled](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html) as well as [have permissions](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html#services-xray-permissions) to send traces to AWS X-Ray
@@ -476,13 +476,13 @@ Alternatively, use the `captureResponse: false` option in both `tracer.captureLa
0 commit comments