diff --git a/docs/core/tracing.md b/docs/core/tracing.md index 17e81b867..f0c752fba 100644 --- a/docs/core/tracing.md +++ b/docs/core/tracing.md @@ -376,8 +376,24 @@ under a subsegment, or you are doing multithreaded programming. Refer examples b ## Instrumenting SDK clients and HTTP calls -User should make sure to instrument the SDK clients explicitly based on the function dependency. Refer details on -[how to instrument SDK client with Xray](https://docs.aws.amazon.com/xray/latest/devguide/xray-sdk-java-awssdkclients.html) and [outgoing http calls](https://docs.aws.amazon.com/xray/latest/devguide/xray-sdk-java-httpclients.html). +Powertools for Lambda (Java) cannot intercept SDK clients instantiation to add X-Ray instrumentation. You should make sure to instrument the SDK clients explicitly. Refer details on +[how to instrument SDK client with Xray](https://docs.aws.amazon.com/xray/latest/devguide/xray-sdk-java.html#xray-sdk-java-awssdkclients) +and [outgoing http calls](https://docs.aws.amazon.com/xray/latest/devguide/xray-sdk-java.html#xray-sdk-java-httpclients). For example: + +=== "LambdaHandler.java" + + ```java hl_lines="1 2 7" + import com.amazonaws.xray.AWSXRay; + import com.amazonaws.xray.handlers.TracingHandler; + + public class LambdaHandler { + private AmazonDynamoDB client = AmazonDynamoDBClientBuilder.standard() + .withRegion(Regions.fromName(System.getenv("AWS_REGION"))) + .withRequestHandlers(new TracingHandler(AWSXRay.getGlobalRecorder())) + .build(); + // ... + } + ``` ## Testing your code diff --git a/examples/powertools-examples-batch/pom.xml b/examples/powertools-examples-batch/pom.xml index d3539d919..fc343da4e 100644 --- a/examples/powertools-examples-batch/pom.xml +++ b/examples/powertools-examples-batch/pom.xml @@ -14,7 +14,7 @@ 2.20.0 1.8 1.8 - 2.21.1 + 2.25.26 diff --git a/examples/powertools-examples-cloudformation/pom.xml b/examples/powertools-examples-cloudformation/pom.xml index 5e3403f4e..4b0631098 100644 --- a/examples/powertools-examples-cloudformation/pom.xml +++ b/examples/powertools-examples-cloudformation/pom.xml @@ -15,7 +15,7 @@ 1.8 1.2.3 3.11.4 - 2.25.6 + 2.26.21 diff --git a/examples/powertools-examples-sqs/pom.xml b/examples/powertools-examples-sqs/pom.xml index 01bbfd8d2..14fdbcff8 100644 --- a/examples/powertools-examples-sqs/pom.xml +++ b/examples/powertools-examples-sqs/pom.xml @@ -27,7 +27,7 @@ software.amazon.awssdk url-connection-client - 2.25.6 + 2.26.21 com.amazonaws @@ -52,7 +52,7 @@ com.fasterxml.jackson.datatype jackson-datatype-joda - 2.15.2 + 2.17.0 diff --git a/mkdocs.yml b/mkdocs.yml index a271c1260..5def70b0b 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -5,6 +5,7 @@ site_url: https://docs.powertools.aws.dev/lambda-java/ nav: - Homepage: index.md - Changelog: changelog.md + - Workshop 🆕: https://s12d.com/powertools-for-aws-lambda-workshop" target="_blank - FAQs: FAQs.md - Core utilities: - core/logging.md diff --git a/pom.xml b/pom.xml index e3f5dad3b..e64f7a615 100644 --- a/pom.xml +++ b/pom.xml @@ -74,10 +74,10 @@ 1.8 1.8 2.22.1 - 2.15.3 - 2.25.6 - 2.15.1 - 2.1.3 + 2.17.2 + 2.26.21 + 2.15.3 + 2.2.0 UTF-8 1.2.3 3.11.4 @@ -89,8 +89,8 @@ 0.8.11 1.6.13 3.6.0 - 3.3.0 - 3.1.0 + 3.3.1 + 3.2.1 5.10.0 1.0.6 0.6.0 @@ -260,7 +260,7 @@ org.apache.commons commons-lang3 - 3.13.0 + 3.14.0 test @@ -272,7 +272,7 @@ org.assertj assertj-core - 3.24.2 + 3.26.0 test @@ -499,7 +499,7 @@ com.github.spotbugs spotbugs-maven-plugin - 4.7.3.6 + 4.8.5.0 test @@ -606,7 +606,7 @@ org.apache.maven.plugins maven-checkstyle-plugin - 3.3.0 + 3.4.0 checkstyle.xml UTF-8 diff --git a/powertools-e2e-tests/pom.xml b/powertools-e2e-tests/pom.xml index 450d1f5c1..5c8db8d80 100644 --- a/powertools-e2e-tests/pom.xml +++ b/powertools-e2e-tests/pom.xml @@ -103,7 +103,7 @@ commons-io commons-io - 2.15.1 + 2.16.1 @@ -209,7 +209,7 @@ org.apache.maven.plugins maven-failsafe-plugin - 3.1.2 + 3.3.0 diff --git a/powertools-idempotency/pom.xml b/powertools-idempotency/pom.xml index 94aceebfc..e30b53756 100644 --- a/powertools-idempotency/pom.xml +++ b/powertools-idempotency/pom.xml @@ -174,7 +174,7 @@ org.apache.maven.plugins maven-jar-plugin - 3.3.0 + 3.4.1