File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
core/aws-core/src/main/java/software/amazon/awssdk/awscore/interceptor Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -39,9 +39,11 @@ public class TraceIdExecutionInterceptor implements ExecutionInterceptor {
3939
4040 @ Override
4141 public void beforeExecution (Context .BeforeExecution context , ExecutionAttributes executionAttributes ) {
42- String traceId = SdkInternalThreadLocal .get (CONCURRENT_TRACE_ID_KEY );
43- if (traceId != null && lambdaFunctionNameEnvironmentVariable ().isPresent ()) {
44- executionAttributes .putAttribute (TRACE_ID , traceId );
42+ if (lambdaFunctionNameEnvironmentVariable ().isPresent ()) {
43+ String traceId = SdkInternalThreadLocal .get (CONCURRENT_TRACE_ID_KEY );
44+ if (traceId != null ) {
45+ executionAttributes .putAttribute (TRACE_ID , traceId );
46+ }
4547 }
4648 }
4749
Original file line number Diff line number Diff line change 2121 <parent >
2222 <groupId >software.amazon.awssdk</groupId >
2323 <artifactId >aws-sdk-java-pom</artifactId >
24- <version >2.33.9 -SNAPSHOT</version >
24+ <version >2.33.10 -SNAPSHOT</version >
2525 </parent >
2626 <artifactId >utils-lite</artifactId >
2727 <name >AWS Java SDK :: Utils Lite</name >
You can’t perform that action at this time.
0 commit comments