-
Notifications
You must be signed in to change notification settings - Fork 690
Capture server attributes for botocore API calls #3448
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
Capture server attributes for botocore API calls #3448
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These attributes are required for Generative AI spans (see semantic conventions).
These are recommended not required. Said that I remember the semconv to pass the port only if it's different than 443 (and openai-v2 matches that) but I don't see it in the published doc so LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add the attributes to asserts in the bedrock utils tests to check they are working fine there
@xrmx - I've added server/port assertions for the bedrock API calls as well. Thanks for pointing that out. |
Description
server.*
span attributes to all botocore calls.server.address
: endpoint name (eg.iam.amazonaws.com
,ec2.us-west-2.amazonaws.com
)server.port
(eg.443
(default) or custom if specified)Related issues:
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
otelcol
Does This PR Require a Core Repo Change?
Checklist:
See contributing.md for styleguide, changelog guidelines, and more.