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 {
39
39
40
40
@ Override
41
41
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
+ }
45
47
}
46
48
}
47
49
Original file line number Diff line number Diff line change 21
21
<parent >
22
22
<groupId >software.amazon.awssdk</groupId >
23
23
<artifactId >aws-sdk-java-pom</artifactId >
24
- <version >2.33.9 -SNAPSHOT</version >
24
+ <version >2.33.10 -SNAPSHOT</version >
25
25
</parent >
26
26
<artifactId >utils-lite</artifactId >
27
27
<name >AWS Java SDK :: Utils Lite</name >
You can’t perform that action at this time.
0 commit comments