Repository navigation
Add langchain samples - #8
Merged
Radhika Gupta (rads-1996) merged 6 commits intoApr 1, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds three LangChain-focused Python sample scripts demonstrating OpenTelemetry tracing/instrumentation scenarios relevant to this distro’s planned GenAI observability story.
Changes:
- Added an OpenTelemetry + LangChain instrumentation sample with multi-turn and config comparison scenarios.
- Added a “nested agents” travel-planner sample wired to an Azure AI OpenTelemetry tracer.
- Added an image (multimodal) LangChain sample using OpenInference + Azure Monitor configuration.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 11 comments.
| File | Description |
|---|---|
| samples/langchain/sample_opentelemetry.py | Demonstrates LangChain OTel instrumentation with multi-turn and temperature comparison scenarios. |
| samples/langchain/sample_langchain_azure.py | Demonstrates nested LangChain agent orchestration with Azure AI OpenTelemetry tracing callbacks. |
| samples/langchain/sample_arise_langchain.py | Demonstrates image prompting with LangChain + OpenInference instrumentation and Azure Monitor export. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
|
||
| # Otherwise, set the env variable OPENAI_API_KEY | ||
|
|
||
| image_url = "<IMAGE_URL>" |
There was a problem hiding this comment.
Do you need to some URL here?, do we need a readme for samples so people understand how to run them?
Member
Author
There was a problem hiding this comment.
Yes, the user can enter any URL they want the LLM to describe for them. Yes, I will add a readme.
Radhika Gupta (rads-1996)
force-pushed
the
add-langchain-samples
branch
from
April 1, 2026 23:36
dcd4e6d to
bd46d66
Compare
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.
No description provided.