Skip to content

Commit c3342bd

Browse files
committed
test(instrumentation-aws-sdk): update client in bedrock-runtime tests to use NodeHttpHandler instead of the new default NodeHttp2Handler
1 parent 64d358e commit c3342bd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

plugins/node/opentelemetry-instrumentation-aws-sdk/test/bedrock-runtime.test.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ import {
4343
import { AwsCredentialIdentity } from '@aws-sdk/types';
4444
import * as path from 'path';
4545
import { Definition, back as nockBack } from 'nock';
46+
import { NodeHttpHandler } from '@smithy/node-http-handler';
4647

4748
import { ReadableSpan } from '@opentelemetry/sdk-trace-base';
4849
import {
@@ -88,7 +89,11 @@ describe('Bedrock', () => {
8889
};
8990
}
9091

91-
const client = new BedrockRuntimeClient({ region, credentials });
92+
const client = new BedrockRuntimeClient({
93+
region,
94+
credentials,
95+
requestHandler: new NodeHttpHandler(),
96+
});
9297

9398
let nockDone: () => void;
9499
beforeEach(async function () {

0 commit comments

Comments
 (0)