Skip to content

Commit

Permalink
fix: aws region error
Browse files Browse the repository at this point in the history
  • Loading branch information
nirga committed Feb 13, 2024
1 parent a04722d commit 15f6f42
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/instrumentation-bedrock/tests/ai21.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ describe("Test Ai21 with AWS Bedrock Instrumentation", () => {
});

before(async () => {
if (process.env.RECORD_MODE !== "NEW") {
process.env.AWS_REGION = "us-west-2";
}

provider.addSpanProcessor(new SimpleSpanProcessor(memoryExporter));
instrumentation = new BedrockInstrumentation();
instrumentation.setTracerProvider(provider);
Expand Down
4 changes: 4 additions & 0 deletions packages/instrumentation-bedrock/tests/amazon.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ describe("Test Amazon Titan with AWS Bedrock Instrumentation", () => {
});

before(async () => {
if (process.env.RECORD_MODE !== "NEW") {
process.env.AWS_REGION = "us-west-2";
}

provider.addSpanProcessor(new SimpleSpanProcessor(memoryExporter));
instrumentation = new BedrockInstrumentation();
instrumentation.setTracerProvider(provider);
Expand Down
4 changes: 4 additions & 0 deletions packages/instrumentation-bedrock/tests/anthropic.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ describe("Test Anthropic with AWS Bedrock Instrumentation", () => {
});

before(async () => {
if (process.env.RECORD_MODE !== "NEW") {
process.env.AWS_REGION = "us-west-2";
}

provider.addSpanProcessor(new SimpleSpanProcessor(memoryExporter));
instrumentation = new BedrockInstrumentation();
instrumentation.setTracerProvider(provider);
Expand Down
4 changes: 4 additions & 0 deletions packages/instrumentation-bedrock/tests/cohere.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ describe("Test Cohere with AWS Bedrock Instrumentation", () => {
});

before(async () => {
if (process.env.RECORD_MODE !== "NEW") {
process.env.AWS_REGION = "us-west-2";
}

provider.addSpanProcessor(new SimpleSpanProcessor(memoryExporter));
instrumentation = new BedrockInstrumentation();
instrumentation.setTracerProvider(provider);
Expand Down
4 changes: 4 additions & 0 deletions packages/instrumentation-bedrock/tests/meta.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ describe("Test Meta with AWS Bedrock Instrumentation", () => {
});

before(async () => {
if (process.env.RECORD_MODE !== "NEW") {
process.env.AWS_REGION = "us-west-2";
}

provider.addSpanProcessor(new SimpleSpanProcessor(memoryExporter));
instrumentation = new BedrockInstrumentation();
instrumentation.setTracerProvider(provider);
Expand Down

0 comments on commit 15f6f42

Please sign in to comment.