generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 27
feat: Add Resource and CFN Attributes for Bedrock AgentCore spans #495
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mxiamxia
reviewed
Oct 17, 2025
aws-opentelemetry-distro/src/amazon/opentelemetry/distro/_aws_metric_attribute_generator.py
Outdated
Show resolved
Hide resolved
mxiamxia
reviewed
Oct 17, 2025
aws-opentelemetry-distro/src/amazon/opentelemetry/distro/_aws_metric_attribute_generator.py
Outdated
Show resolved
Hide resolved
…-observability/aws-otel-python-instrumentation into bedrock-agentcore-support-v2
…-observability/aws-otel-python-instrumentation into bedrock-agentcore-support-v2
wangzlei
approved these changes
Oct 31, 2025
mxiamxia
approved these changes
Oct 31, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of changes:
Follow up to: #490
Normalizes
AWS::Bedrock AgentCoreandAWS::Bedrock AgentCore Controlfrom botocore instrumentation toAWS::BedrockAgentCoreAdd Resource and CFN attributes for Bedrock AgentCore support as following:
a. Runtime: Extract
agentRuntimeIdor parse fromagentRuntimeArnand add intoaws.remote.resource.identifierspan attribute.Set
aws.remote.resource.typetoAWS::BedrockAgentCore::Runtime.b. Runtime Endpoint: Extract endpoint ID from
agentRuntimeEndpointArnand add intoaws.remote.resource.identifierspan attribute, but use full ARN asaws.cloudformation.primary.identifier.Set
aws.remote.resource.typetoAWS::BedrockAgentCore::RuntimeEndpoint.c. Browser: Extract
browserIdentifieror parse frombrowserArn, and add intoaws.remote.resource.identifierspan attribute.Set
aws.remote.resource.typetoAWS::BedrockAgentCore::Browser(foraws.browser.v1) orAWS::BedrockAgentCore::BrowserCustom(for custom browsers).d. Gateway: Extract
gatewayIdor parse fromgatewayArn, and add intoaws.remote.resource.identifierspan attribute.Set
aws.remote.resource.typetoAWS::BedrockAgentCore::Gateway.e. Gateway Target: Extract
targetIdfrom span attributes and add intoaws.remote.resource.identifierspan attribute.Set
aws.remote.resource.typetoAWS::BedrockAgentCore::GatewayTarget. Takes priority over Gateway when present.f. Code Interpreter: Extract
codeInterpreterIdentifieror parse fromcodeInterpreterArn, and add intoaws.remote.resource.identifierspan attribute.Set
aws.remote.resource.typetoAWS::BedrockAgentCore::CodeInterpreter(foraws.codeinterpreter.v1) orAWS::BedrockAgentCore::CodeInterpreterCustom(for custom interpreters).g. Memory: Extract
memoryIdor parse frommemoryArnand add intoaws.remote.resource.identifierspan attribute, but use full ARN asaws.cloudformation.primary.identifierwhen available.Set
aws.remote.resource.typetoAWS::BedrockAgentCore::Memory.h. Identity: Extract provider ID from credential provider ARNs for OAuth2 and API Key credential providers and add into
aws.remote.resource.identifierspan attribute.Set
aws.remote.resource.typetoAWS::BedrockAgentCore::OAuth2CredentialProviderorAWS::BedrockAgentCore::APIKeyCredentialProvider.Testing
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.