Skip to content
Open
Show file tree
Hide file tree
Changes from all 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 @@ -121,7 +121,6 @@ public ExecutionInterceptor newExecutionInterceptor() {
dynamoDbInstrumenter,
bedrockRuntimeInstrumenter,
eventLogger,
captureExperimentalSpanAttributes,
messagingPropagator,
useXrayPropagator,
recordIndividualHttpError,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ public final class TracingExecutionInterceptor implements ExecutionInterceptor {
private final Instrumenter<ExecutionAttributes, Response> dynamoDbInstrumenter;
private final Instrumenter<ExecutionAttributes, Response> bedrockRuntimeInstrumenter;
private final Logger eventLogger;
private final boolean captureExperimentalSpanAttributes;

static final AttributeKey<String> HTTP_ERROR_MSG =
AttributeKey.stringKey("aws.http.error_message");
Expand Down Expand Up @@ -117,7 +116,6 @@ public TracingExecutionInterceptor(
Instrumenter<ExecutionAttributes, Response> dynamoDbInstrumenter,
Instrumenter<ExecutionAttributes, Response> bedrockRuntimeInstrumenter,
Logger eventLogger,
boolean captureExperimentalSpanAttributes,
TextMapPropagator messagingPropagator,
boolean useXrayPropagator,
boolean recordIndividualHttpError,
Expand All @@ -129,7 +127,6 @@ public TracingExecutionInterceptor(
this.dynamoDbInstrumenter = dynamoDbInstrumenter;
this.bedrockRuntimeInstrumenter = bedrockRuntimeInstrumenter;
this.eventLogger = eventLogger;
this.captureExperimentalSpanAttributes = captureExperimentalSpanAttributes;
this.messagingPropagator = messagingPropagator;
this.useXrayPropagator = useXrayPropagator;
this.recordIndividualHttpError = recordIndividualHttpError;
Expand Down Expand Up @@ -401,11 +398,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