Skip to content

Commit 41525db

Browse files
Copilottrask
andcommitted
Fix unused variable warning with @SuppressWarnings annotation
The captureExperimentalSpanAttributes field is kept for future use when we want to differentiate between spec'd and experimental attributes, but is currently unused after removing the conditional check for response attribute extraction. Co-authored-by: trask <[email protected]>
1 parent 908f4ab commit 41525db

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

instrumentation/aws-sdk/aws-sdk-2.2/library/src/main/java/io/opentelemetry/instrumentation/awssdk/v2_2/internal/TracingExecutionInterceptor.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ public final class TracingExecutionInterceptor implements ExecutionInterceptor {
7979
private final Instrumenter<ExecutionAttributes, Response> dynamoDbInstrumenter;
8080
private final Instrumenter<ExecutionAttributes, Response> bedrockRuntimeInstrumenter;
8181
private final Logger eventLogger;
82+
// Kept for future use, when we want to differentiate between spec'd and experimental attributes
83+
@SuppressWarnings("UnusedVariable")
8284
private final boolean captureExperimentalSpanAttributes;
8385

8486
static final AttributeKey<String> HTTP_ERROR_MSG =

0 commit comments

Comments
 (0)