traceloop / openllmetry

Open-source observability for your LLM application, based on OpenTelemetry
https://www.traceloop.com/openllmetry
Apache License 2.0
1.82k stars 149 forks source link

🚀 Feature: Tracing support for Amazon Bedrock agents #1647

Open tonykchen opened 1 month ago

tonykchen commented 1 month ago

Which component is this feature for?

Bedrock Instrumentation

🔖 Feature description

Add tracing support for Amazon Bedrock agents.

🎤 Why is this feature needed ?

The response from a Bedrock agent includes a trace that details the steps being orchestrated by the agent. The trace helps us follow the agent's reasoning process that leads it to the response it gives at that point in the conversation.

✌️ How do you aim to achieve this?

  1. Add instrumentation logic for the bedrock-agent-runtime service and patch the invoke_agent method.
  2. Create spans for each Bedrock trace event with the appropriate timestamps and attributes.

🔄️ Additional Information

No response

👀 Have you spent some time to check if this feature request has been raised before?

Are you willing to submit PR?

Yes I am willing to submit a PR!

nirga commented 1 month ago

Thanks @tonykchen! You marked that you're willing to submit a PR - let me know if / how I can assist!

tonykchen commented 1 month ago

Thanks @tonykchen! You marked that you're willing to submit a PR - let me know if / how I can assist!

Thanks @nirga! I'll go ahead and get started on this 😃