[Nodejs] Update openai, claude and langchain sample Observability code#136
Merged
[Nodejs] Update openai, claude and langchain sample Observability code#136
Conversation
…e @microsoft/agents-a365-observability-hosting to configure Agent365ExporterOptions, provide custom token resolver example, preloadObservabilityToken in agent code for exporter and use BaggageBuilderUtils.fromTurnContext to populate baggageScope.
juliomenendez
previously approved these changes
Dec 22, 2025
750b393 to
f123564
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request updates the observability configuration across OpenAI, Claude (Anthropic), and LangChain samples to use the @microsoft/agents-a365-observability-hosting package. The changes introduce custom token resolver patterns, preload observability tokens in agent code for the exporter, and use BaggageBuilderUtils.fromTurnContext to populate baggage scope. Additionally, new Python scripts for contributor leaderboard management are introduced.
Key Changes:
- Modernized observability setup using token resolvers and baggage builders
- Added token caching utilities across Python samples
- New leaderboard management scripts for contributor tracking
- Updated dependencies and configuration across multiple samples
Reviewed changes
Copilot reviewed 179 out of 208 changed files in this pull request and generated 26 comments.
Show a summary per file
| File | Description |
|---|---|
| scripts/update_leaderboard.py | New script for generating contributor leaderboard with proper copyright header |
| scripts/config_points.yml | Configuration for contributor point system |
| scripts/assign_points.py | New script for assigning contributor points with comprehensive error handling |
| python/openai/sample-agent/token_cache.py | Token caching utility with correct copyright header |
| python/openai/sample-agent/agent.py | Updated observability setup with token resolver pattern |
| python/openai/sample-agent/host_agent_server.py | Generic host server with baggage builder integration |
| python/agent-framework/sample-agent/* | Similar observability updates for Agent Framework sample |
| python/google-adk/sample-agent/* | Google ADK sample with observability configuration |
| nodejs/vercel-sdk/sample-agent/* | Vercel AI SDK sample with observability manager |
| nodejs/perplexity/sample-agent/* | Perplexity agent with comprehensive telemetry setup |
Contributor
Author
|
@copilot open a new pull request to apply changes based on the comments in this thread |
f123564 to
c0d384c
Compare
juliomenendez
approved these changes
Dec 29, 2025
JianH
approved these changes
Dec 29, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Update openai, claude and langchain sample Observability setup to use @microsoft/agents-a365-observability-hosting to configure Agent365ExporterOptions, provide custom token resolver example, preloadObservabilityToken in agent code for exporter and use BaggageBuilderUtils.fromTurnContext to populate baggageScope.