Skip to content

instrument of bedrock aws client is missing part of the data. #15750

@igreenfield

Description

@igreenfield

Describe the bug

In io.opentelemetry.instrumentation.awssdk.v2_2.internal.BedrockRuntimeImpl I see that there are many places that check the modelId like this modelId.startsWith("anthropic.claude")
as modelId not contains region prefix or 'global.' all these checks will fail.

Steps to reproduce

Run with modelId with prefix.

Expected behavior

The instrumentation will be full

Actual behavior

it miss parts

Javaagent or library instrumentation version

2.23.0-alpha

Environment

JDK: correto-17
OS: windows11

Additional context

No response

Tip

React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions