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
Copy file name to clipboardExpand all lines: docs/core/logging.md
+99
Original file line number
Diff line number
Diff line change
@@ -123,6 +123,105 @@ to customise what is logged.
123
123
}
124
124
```
125
125
126
+
## Setting a Correlation ID
127
+
128
+
You can set a Correlation ID using `correlationIdPath` attribute by passing a [JSON Pointer expression](https://datatracker.ietf.org/doc/html/draft-ietf-appsawg-json-pointer-03){target="_blank"}.
129
+
130
+
=== "App.java"
131
+
132
+
```java hl_lines="8"
133
+
/**
134
+
* Handler for requests to Lambda function.
135
+
*/
136
+
public class App implements RequestHandler<APIGatewayProxyRequestEvent, APIGatewayProxyResponseEvent> {
Copy file name to clipboardExpand all lines: powertools-logging/src/main/java/software/amazon/lambda/powertools/logging/internal/LambdaLoggingAspect.java
0 commit comments