-
Notifications
You must be signed in to change notification settings - Fork 1k
Add tools support to bedrock InvokeModel instrumentation #13832
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
Add tools support to bedrock InvokeModel instrumentation #13832
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.
thanks for the tedious work @anuraaga. glad to see this at the finish line!
...ntime/java/io/opentelemetry/instrumentation/awssdk/v2_2/internal/Aws2BedrockRuntimeTest.java
Outdated
Show resolved
Hide resolved
...ntime/java/io/opentelemetry/instrumentation/awssdk/v2_2/internal/Aws2BedrockRuntimeTest.java
Outdated
Show resolved
Hide resolved
...ntime/java/io/opentelemetry/instrumentation/awssdk/v2_2/internal/Aws2BedrockRuntimeTest.java
Outdated
Show resolved
Hide resolved
...ntime/java/io/opentelemetry/instrumentation/awssdk/v2_2/internal/Aws2BedrockRuntimeTest.java
Outdated
Show resolved
Hide resolved
...ntime/java/io/opentelemetry/instrumentation/awssdk/v2_2/internal/Aws2BedrockRuntimeTest.java
Outdated
Show resolved
Hide resolved
...ntime/java/io/opentelemetry/instrumentation/awssdk/v2_2/internal/Aws2BedrockRuntimeTest.java
Outdated
Show resolved
Hide resolved
...ntime/java/io/opentelemetry/instrumentation/awssdk/v2_2/internal/Aws2BedrockRuntimeTest.java
Outdated
Show resolved
Hide resolved
...ntime/java/io/opentelemetry/instrumentation/awssdk/v2_2/internal/Aws2BedrockRuntimeTest.java
Outdated
Show resolved
Hide resolved
metric | ||
.hasName("gen_ai.client.operation.duration") | ||
.hasUnit("s") | ||
.hasDescription("GenAI operation duration.") |
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.
made me look and yes that's literally what the spec says ;) https://github.com/open-telemetry/semantic-conventions/blob/main/docs/gen-ai/gen-ai-metrics.md#metric-gen_aiclientoperationduration
.../src/main/java/io/opentelemetry/instrumentation/awssdk/v2_2/internal/BedrockRuntimeImpl.java
Outdated
Show resolved
Hide resolved
.../src/main/java/io/opentelemetry/instrumentation/awssdk/v2_2/internal/BedrockRuntimeImpl.java
Outdated
Show resolved
Hide resolved
…nstrumentation into bedrock-invoke-model-tools
looking forward the this getting in, as java will have full parity! |
This parses out tools in invoke model payloads which should finish up the bedrock instrumentation. Notably, I think there is full parity with the python instrumentation after this change.
/cc @codefromthecrypt