Skip to content

[bug] OpenInference spans exported to Dynatrace lack meaningful agent collaborator names in agentcollaborator spans when my Bedrock agent acts as a routing supervisor. #2187

@BillyMalone1979

Description

@BillyMalone1979

Describe the bug
OpenInference spans exported to Dynatrace lack meaningful agent collaborator names in agentcollaborator spans when my Bedrock agent is configured as a supervisor with routing.

To Reproduce

Configure your Bedrock agent as a supervisor with routing enabled to direct queries to one or more collaborator agents based on context or criteria.

Expected behavior

When bedrock agent is configured as a supervisor, agentcollaborator spans have meaningful names that appear to be sourced from the agentCollaboratorName in the trace:

"trace": {
        "orchestrationTrace": {
          "observation": {
            "agentCollaboratorInvocationOutput": {
              "agentCollaboratorAliasArn": "arn:aws:somearn",
              "agentCollaboratorName": "some_meaningful_name",
            }
}
}
}

When routing is enabled, there is an additional level (routingClassifierTrace) in the json that appears to not be accounted for:

{
"trace": {
"routingClassifierTrace": {
"observation": {
"agentCollaboratorInvocationOutput":

            {
                "agentCollaboratorAliasArn": "arn:aws:somearn",
                "agentCollaboratorName": "some_meaningful_name"
            }

        }
    }
}

}

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Version [e.g. 22]

Additional context
Planning to submit a PR to account for both the trace;routingClassifierTrace and the trace;orchestrationTrace hierarchy

Metadata

Metadata

Assignees

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions