Skip to content

Commit d92e944

Browse files
authored
update gen_ai.system attribute key (#155)
1 parent 2720354 commit d92e944

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/OpenTelemetry.Instrumentation.AWS/Implementation/AWSTracingPipelineHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ private static void AddRequestSpecificInformation(Activity activity, IRequestCon
208208
}
209209
else if (AWSServiceType.IsBedrockRuntimeService(service))
210210
{
211-
activity.SetTag(AWSSemanticConventions.AttributeGenAiSystem, "aws_bedrock");
211+
activity.SetTag(AWSSemanticConventions.AttributeGenAiSystem, "aws.bedrock");
212212
}
213213
}
214214

test/contract-tests/tests/test/amazon/awssdk/awssdk_test.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ def test_bedrock_runtime_invoke_model_titan(self):
564564
remote_resource_identifier="amazon.titan-text-express-v1",
565565
cloudformation_primary_identifier="amazon.titan-text-express-v1",
566566
request_response_specific_attributes={
567-
_GEN_AI_SYSTEM: "aws_bedrock",
567+
_GEN_AI_SYSTEM: "aws.bedrock",
568568
_GEN_AI_REQUEST_MODEL: "amazon.titan-text-express-v1",
569569
_GEN_AI_REQUEST_TEMPERATURE: 0.123,
570570
_GEN_AI_REQUEST_TOP_P: 0.456,
@@ -590,7 +590,7 @@ def test_bedrock_runtime_invoke_model_claude(self):
590590
remote_resource_identifier="us.anthropic.claude-3-5-haiku-20241022-v1:0",
591591
cloudformation_primary_identifier="us.anthropic.claude-3-5-haiku-20241022-v1:0",
592592
request_response_specific_attributes={
593-
_GEN_AI_SYSTEM: "aws_bedrock",
593+
_GEN_AI_SYSTEM: "aws.bedrock",
594594
_GEN_AI_REQUEST_MODEL: "us.anthropic.claude-3-5-haiku-20241022-v1:0",
595595
_GEN_AI_REQUEST_TEMPERATURE: 0.123,
596596
_GEN_AI_REQUEST_TOP_P: 0.456,
@@ -616,7 +616,7 @@ def test_bedrock_runtime_invoke_model_llama(self):
616616
remote_resource_identifier="meta.llama3-8b-instruct-v1:0",
617617
cloudformation_primary_identifier="meta.llama3-8b-instruct-v1:0",
618618
request_response_specific_attributes={
619-
_GEN_AI_SYSTEM: "aws_bedrock",
619+
_GEN_AI_SYSTEM: "aws.bedrock",
620620
_GEN_AI_REQUEST_MODEL: "meta.llama3-8b-instruct-v1:0",
621621
_GEN_AI_REQUEST_TEMPERATURE: 0.123,
622622
_GEN_AI_REQUEST_TOP_P: 0.456,
@@ -642,7 +642,7 @@ def test_bedrock_runtime_invoke_model_command(self):
642642
remote_resource_identifier="cohere.command-r-v1:0",
643643
cloudformation_primary_identifier="cohere.command-r-v1:0",
644644
request_response_specific_attributes={
645-
_GEN_AI_SYSTEM: "aws_bedrock",
645+
_GEN_AI_SYSTEM: "aws.bedrock",
646646
_GEN_AI_REQUEST_MODEL: "cohere.command-r-v1:0",
647647
_GEN_AI_REQUEST_TEMPERATURE: 0.123,
648648
_GEN_AI_REQUEST_TOP_P: 0.456,
@@ -668,7 +668,7 @@ def test_bedrock_runtime_invoke_model_jamba(self):
668668
remote_resource_identifier="ai21.jamba-1-5-large-v1:0",
669669
cloudformation_primary_identifier="ai21.jamba-1-5-large-v1:0",
670670
request_response_specific_attributes={
671-
_GEN_AI_SYSTEM: "aws_bedrock",
671+
_GEN_AI_SYSTEM: "aws.bedrock",
672672
_GEN_AI_REQUEST_MODEL: "ai21.jamba-1-5-large-v1:0",
673673
_GEN_AI_REQUEST_TEMPERATURE: 0.123,
674674
_GEN_AI_REQUEST_TOP_P: 0.456,
@@ -694,7 +694,7 @@ def test_bedrock_runtime_invoke_model_mistral(self):
694694
remote_resource_identifier="mistral.mistral-7b-instruct-v0:2",
695695
cloudformation_primary_identifier="mistral.mistral-7b-instruct-v0:2",
696696
request_response_specific_attributes={
697-
_GEN_AI_SYSTEM: "aws_bedrock",
697+
_GEN_AI_SYSTEM: "aws.bedrock",
698698
_GEN_AI_REQUEST_MODEL: "mistral.mistral-7b-instruct-v0:2",
699699
_GEN_AI_REQUEST_TEMPERATURE: 0.123,
700700
_GEN_AI_REQUEST_TOP_P: 0.456,

0 commit comments

Comments
 (0)