Skip to content

Commit be043a3

Browse files
committed
Empty
1 parent 24e9b30 commit be043a3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import static io.opentelemetry.instrumentation.awssdk.v2_2.internal.TracingExecutionInterceptor.SDK_REQUEST_ATTRIBUTE;
99

1010
import io.opentelemetry.instrumentation.api.incubator.semconv.genai.GenAiAttributesGetter;
11+
import java.util.Collections;
1112
import java.util.List;
1213
import javax.annotation.Nullable;
1314
import software.amazon.awssdk.core.interceptor.ExecutionAttributes;
@@ -120,7 +121,7 @@ public List<String> getResponseFinishReasons(
120121
ExecutionAttributes executionAttributes, Response response) {
121122
List<String> stopReasons = BedrockRuntimeAccess.getStopReasons(response);
122123
if (stopReasons == null) {
123-
return null;
124+
return Collections.emptyList();
124125
}
125126
return stopReasons;
126127
}

0 commit comments

Comments
 (0)