Skip to content

Commit 0414305

Browse files
committed
Add javadoc clarification
1 parent ac0d3a9 commit 0414305

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

core/aws-core/src/main/java/software/amazon/awssdk/awscore/interceptor/TraceIdExecutionInterceptor.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ public void onExecutionFailure(Context.FailedExecution context, ExecutionAttribu
6969
saveTraceId(executionAttributes);
7070
}
7171

72+
/**
73+
* Stores the trace ID in thread-local storage to ensure trace propagation across
74+
* thread boundaries during retries, or future chaining.
75+
*/
7276
private static void saveTraceId(ExecutionAttributes executionAttributes) {
7377
String traceId = executionAttributes.getAttribute(TRACE_ID);
7478
if (traceId != null) {

0 commit comments

Comments
 (0)