Skip to content

Commit c99a529

Browse files
authored
Merge branch 'aws-observability:main' into genai_nova
2 parents aa322b8 + 264493e commit c99a529

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ RUN sed -i "/opentelemetry-exporter-otlp-proto-grpc/d" ./aws-opentelemetry-distr
2121
RUN mkdir workspace && pip install --target workspace ./aws-opentelemetry-distro
2222

2323
# Stage 2: Build the cp-utility binary
24-
FROM public.ecr.aws/docker/library/rust:1.75 as builder
24+
FROM public.ecr.aws/docker/library/rust:1.81 as builder
2525

2626
WORKDIR /usr/src/cp-utility
2727
COPY ./tools/cp-utility .

aws-opentelemetry-distro/src/amazon/opentelemetry/distro/patches/_bedrock_patches.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
_GUARDRAIL_ID: str = "guardrailId"
4242
_GUARDRAIL_ARN: str = "guardrailArn"
4343
_MODEL_ID: str = "modelId"
44-
_AWS_BEDROCK_SYSTEM: str = "aws_bedrock"
44+
_AWS_BEDROCK_SYSTEM: str = "aws.bedrock"
4545

4646
_logger = logging.getLogger(__name__)
4747
# Set logger level to DEBUG

aws-opentelemetry-distro/tests/amazon/opentelemetry/distro/test_instrumentation_patch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
_BEDROCK_DATASOURCE_ID: str = "DataSourceId"
2929
_BEDROCK_GUARDRAIL_ID: str = "GuardrailId"
3030
_BEDROCK_KNOWLEDGEBASE_ID: str = "KnowledgeBaseId"
31-
_GEN_AI_SYSTEM: str = "aws_bedrock"
31+
_GEN_AI_SYSTEM: str = "aws.bedrock"
3232
_GEN_AI_REQUEST_MODEL: str = "genAiReuqestModelId"
3333
_SECRET_ARN: str = "arn:aws:secretsmanager:us-west-2:000000000000:secret:testSecret-ABCDEF"
3434
_TOPIC_ARN: str = "topicArn"

contract-tests/tests/test/amazon/botocore/botocore_test.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
_GEN_AI_RESPONSE_FINISH_REASONS: str = "gen_ai.response.finish_reasons"
4545
_GEN_AI_USAGE_INPUT_TOKENS: str = "gen_ai.usage.input_tokens"
4646
_GEN_AI_USAGE_OUTPUT_TOKENS: str = "gen_ai.usage.output_tokens"
47+
_GEN_AI_SYSTEM: str = "gen_ai.system"
4748

4849
_AWS_SECRET_ARN: str = "aws.secretsmanager.secret.arn"
4950
_AWS_STATE_MACHINE_ARN: str = "aws.stepfunctions.state_machine.arn"
@@ -429,6 +430,7 @@ def test_bedrock_runtime_invoke_model_amazon_titan(self):
429430
cloudformation_primary_identifier="amazon.titan-text-premier-v1:0",
430431
request_specific_attributes={
431432
_GEN_AI_REQUEST_MODEL: "amazon.titan-text-premier-v1:0",
433+
_GEN_AI_SYSTEM: "aws.bedrock",
432434
_GEN_AI_REQUEST_MAX_TOKENS: 3072,
433435
_GEN_AI_REQUEST_TEMPERATURE: 0.7,
434436
_GEN_AI_REQUEST_TOP_P: 0.9,
@@ -483,6 +485,7 @@ def test_bedrock_runtime_invoke_model_anthropic_claude(self):
483485
cloudformation_primary_identifier="anthropic.claude-v2:1",
484486
request_specific_attributes={
485487
_GEN_AI_REQUEST_MODEL: "anthropic.claude-v2:1",
488+
_GEN_AI_SYSTEM: "aws.bedrock",
486489
_GEN_AI_REQUEST_MAX_TOKENS: 1000,
487490
_GEN_AI_REQUEST_TEMPERATURE: 0.99,
488491
_GEN_AI_REQUEST_TOP_P: 1,
@@ -510,6 +513,7 @@ def test_bedrock_runtime_invoke_model_meta_llama(self):
510513
cloudformation_primary_identifier="meta.llama2-13b-chat-v1",
511514
request_specific_attributes={
512515
_GEN_AI_REQUEST_MODEL: "meta.llama2-13b-chat-v1",
516+
_GEN_AI_SYSTEM: "aws.bedrock",
513517
_GEN_AI_REQUEST_MAX_TOKENS: 512,
514518
_GEN_AI_REQUEST_TEMPERATURE: 0.5,
515519
_GEN_AI_REQUEST_TOP_P: 0.9,
@@ -537,6 +541,7 @@ def test_bedrock_runtime_invoke_model_cohere_command(self):
537541
cloudformation_primary_identifier="cohere.command-r-v1:0",
538542
request_specific_attributes={
539543
_GEN_AI_REQUEST_MODEL: "cohere.command-r-v1:0",
544+
_GEN_AI_SYSTEM: "aws.bedrock",
540545
_GEN_AI_REQUEST_MAX_TOKENS: 512,
541546
_GEN_AI_REQUEST_TEMPERATURE: 0.5,
542547
_GEN_AI_REQUEST_TOP_P: 0.65,
@@ -566,6 +571,7 @@ def test_bedrock_runtime_invoke_model_ai21_jamba(self):
566571
cloudformation_primary_identifier="ai21.jamba-1-5-large-v1:0",
567572
request_specific_attributes={
568573
_GEN_AI_REQUEST_MODEL: "ai21.jamba-1-5-large-v1:0",
574+
_GEN_AI_SYSTEM: "aws.bedrock",
569575
_GEN_AI_REQUEST_MAX_TOKENS: 512,
570576
_GEN_AI_REQUEST_TEMPERATURE: 0.6,
571577
_GEN_AI_REQUEST_TOP_P: 0.8,
@@ -593,6 +599,7 @@ def test_bedrock_runtime_invoke_model_mistral(self):
593599
cloudformation_primary_identifier="mistral.mistral-7b-instruct-v0:2",
594600
request_specific_attributes={
595601
_GEN_AI_REQUEST_MODEL: "mistral.mistral-7b-instruct-v0:2",
602+
_GEN_AI_SYSTEM: "aws.bedrock",
596603
_GEN_AI_REQUEST_MAX_TOKENS: 4096,
597604
_GEN_AI_REQUEST_TEMPERATURE: 0.75,
598605
_GEN_AI_REQUEST_TOP_P: 0.99,

0 commit comments

Comments
 (0)