Skip to content
Open
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ public final class TracingExecutionInterceptor implements ExecutionInterceptor {
private final Instrumenter<ExecutionAttributes, Response> dynamoDbInstrumenter;
private final Instrumenter<ExecutionAttributes, Response> bedrockRuntimeInstrumenter;
private final Logger eventLogger;
// Kept for future use, when we want to differentiate between spec'd and experimental attributes
@SuppressWarnings("UnusedVariable")
private final boolean captureExperimentalSpanAttributes;

static final AttributeKey<String> HTTP_ERROR_MSG =
Expand Down Expand Up @@ -401,11 +403,9 @@ private void onSdkResponse(
BedrockRuntimeAccess.recordResponseEvents(
otelContext, eventLogger, executionAttributes, response, genAiCaptureMessageContent);
}
if (captureExperimentalSpanAttributes) {
AwsSdkRequest sdkRequest = executionAttributes.getAttribute(AWS_SDK_REQUEST_ATTRIBUTE);
if (sdkRequest != null) {
fieldMapper.mapToAttributes(response, sdkRequest, span);
}
AwsSdkRequest sdkRequest = executionAttributes.getAttribute(AWS_SDK_REQUEST_ATTRIBUTE);
if (sdkRequest != null) {
fieldMapper.mapToAttributes(response, sdkRequest, span);
}
}

Expand Down
Loading