Skip to content

Comments

LangChain / LangGraph Agent Instrumentation#1630

Merged
umaannamalai merged 27 commits intomainfrom
feat-langgraph
Jan 29, 2026
Merged

LangChain / LangGraph Agent Instrumentation#1630
umaannamalai merged 27 commits intomainfrom
feat-langgraph

Conversation

@TimPansino
Copy link
Contributor

Overview

  • Overhaul LangChain instrumentation to conform to newer standards.
  • Add new instrumentation for create_agent in LangChain (which in turn uses LangGraph).
  • Overhaul testing structure for LangChain with large matrixing.

@TimPansino TimPansino requested a review from a team as a code owner January 21, 2026 23:32
@github-actions
Copy link

github-actions bot commented Jan 21, 2026

MegaLinter analysis: Success

Descriptor Linter Files Fixed Errors Warnings Elapsed time
✅ ACTION actionlint 7 0 0 0.93s
✅ MARKDOWN markdownlint 7 0 0 0 1.35s
✅ PYTHON ruff 967 0 0 0 1.03s
✅ PYTHON ruff-format 967 0 0 0 0.36s
✅ YAML prettier 15 0 0 0 1.41s
✅ YAML v8r 15 0 0 4.71s
✅ YAML yamllint 15 0 0 0.68s

See detailed reports in MegaLinter artifacts

MegaLinter is graciously provided by OX Security

@mergify mergify bot added the tests-failing Tests failing in CI. label Jan 21, 2026
@codecov-commenter
Copy link

codecov-commenter commented Jan 21, 2026

Codecov Report

❌ Patch coverage is 81.40162% with 69 lines in your changes missing coverage. Please review.
✅ Project coverage is 81.67%. Comparing base (002fc85) to head (5b67731).

Files with missing lines Patch % Lines
newrelic/hooks/mlmodel_langchain.py 82.94% 31 Missing and 13 partials ⚠️
newrelic/common/llm_utils.py 82.85% 9 Missing and 3 partials ⚠️
newrelic/hooks/mlmodel_langgraph.py 72.72% 4 Missing and 5 partials ⚠️
newrelic/hooks/external_botocore.py 0.00% 2 Missing ⚠️
newrelic/hooks/mlmodel_openai.py 50.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1630      +/-   ##
==========================================
- Coverage   81.71%   81.67%   -0.04%     
==========================================
  Files         209      210       +1     
  Lines       24416    24655     +239     
  Branches     3871     3884      +13     
==========================================
+ Hits        19952    20138     +186     
- Misses       3159     3199      +40     
- Partials     1305     1318      +13     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mergify mergify bot removed the tests-failing Tests failing in CI. label Jan 22, 2026
@TimPansino
Copy link
Contributor Author

Just reviewed this myself and fixed or tweaked everything I found. Assigning this for full review.

@TimPansino TimPansino requested a review from lrafeei January 22, 2026 00:41
@mergify mergify bot added the tests-failing Tests failing in CI. label Jan 22, 2026
@TimPansino TimPansino mentioned this pull request Jan 22, 2026
@mergify mergify bot added the merge-conflicts Merge conflicts detected. label Jan 22, 2026
TimPansino and others added 18 commits January 23, 2026 11:55
Co-authored-by: Uma Annamalai <umaannamalai@users.noreply.github.com>
Co-authored-by: Uma Annamalai <umaannamalai@users.noreply.github.com>
Co-authored-by: Uma Annamalai <umaannamalai@users.noreply.github.com>
Co-authored-by: Uma Annamalai <umaannamalai@users.noreply.github.com>
Co-authored-by: Uma Annamalai <umaannamalai@users.noreply.github.com>
Co-authored-by: Uma Annamalai <umaannamalai@users.noreply.github.com>
Co-authored-by: Uma Annamalai <umaannamalai@users.noreply.github.com>
Co-authored-by: Uma Annamalai <umaannamalai@users.noreply.github.com>
Co-authored-by: Uma Annamalai <umaannamalai@users.noreply.github.com>
Co-authored-by: Uma Annamalai <umaannamalai@users.noreply.github.com>
Co-authored-by: Uma Annamalai <umaannamalai@users.noreply.github.com>
Co-authored-by: Uma Annamalai <umaannamalai@users.noreply.github.com>
Co-authored-by: Uma Annamalai <umaannamalai@users.noreply.github.com>
Co-authored-by: Uma Annamalai <umaannamalai@users.noreply.github.com>
@mergify mergify bot removed the merge-conflicts Merge conflicts detected. label Jan 23, 2026
@mergify mergify bot removed the tests-failing Tests failing in CI. label Jan 26, 2026
lrafeei
lrafeei previously approved these changes Jan 26, 2026
@umaannamalai umaannamalai added this to the v11.4.0 milestone Jan 29, 2026
@Newrelic-Boomi
Copy link

@umaannamalai umaannamalai merged commit 80f4a3c into main Jan 29, 2026
62 checks passed
@umaannamalai umaannamalai deleted the feat-langgraph branch January 29, 2026 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants