Skip to content

show tokens with AzureOpenAI models in langchain in Agentcore GenAI Dashboard#1070

Open
sanaiqbalw wants to merge 3 commits intoawslabs:mainfrom
sanaiqbalw:main
Open

show tokens with AzureOpenAI models in langchain in Agentcore GenAI Dashboard#1070
sanaiqbalw wants to merge 3 commits intoawslabs:mainfrom
sanaiqbalw:main

Conversation

@sanaiqbalw
Copy link

Amazon Bedrock AgentCore Samples Pull Request

Important

  1. We strictly follow a issue-first approach, please first open an issue relating to this Pull Request.
  2. Once this Pull Request is ready for review please attach review ready label to it. Only PRs with review ready will be reviewed.

Issue number: 1069

Concise description of the PR

Add LangChain + Azure OpenAI Agent sample with GenAI Observability integration, because existing samples only demonstrate Bedrock models and don't show how to instrument external LLM providers for CloudWatch dashboard visibility.

User experience

Before:
Users wanting to deploy LangChain agents with Azure OpenAI on AgentCore faced issue in observing token counts on Agentcore GenAI dashboard due to OTEL instrumentation gaps

After:
Users can follow a complete working example that demonstrates:

  • Deploying LangChain/LangGraph agents with Azure OpenAI on AgentCore Runtime
  • Proper OTEL instrumentation to surface token usage in CloudWatch GenAI Observability dashboard

Checklist

If your change doesn't seem to apply, please leave them unchecked.

  • [ x] I have reviewed the contributing guidelines
  • Add your name to CONTRIBUTORS.md
  • [ x] Have you checked to ensure there aren't other open Pull Requests for the same update/change?
  • Are you uploading a dataset?
  • [ x] Have you documented Introduction, Architecture Diagram, Prerequisites, Usage, Sample Prompts, and Clean Up steps in your example README?
  • [ x] I agree to resolve any issues created for this example in the future.
  • [ x] I have performed a self-review of this change
  • [ x] Changes have been tested
  • [ x] Changes are documented

Acknowledgment

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the project license.

Signed-off-by: SI <sana_iqbal@berkeley.edu>
feat[1069]: langchain-openai-token-observability
@github-actions github-actions bot added 01-tutorials 01-tutorials 06-AgentCore-observability 01-tutorials/06-AgentCore-observability labels Mar 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

01-tutorials 01-tutorials 06-AgentCore-observability 01-tutorials/06-AgentCore-observability

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant