Skip to content

Conversation

@nicohrubec
Copy link
Member

@nicohrubec nicohrubec commented Dec 4, 2025

This PR instruments langgraph createReactAgent. This is only relevant for pre v1 langgraph. Starting from v >1.0.0 createReactAgent is replaced with create_agent, which is exported from langchain. The model is now also extracted and send along in the span.

Currently this works for cjs only, because IITM doesn't properly patch submodule exports. Should work after IITM is updated to 2.0.1 and if we get this fix merged.

@github-actions
Copy link
Contributor

github-actions bot commented Dec 4, 2025

size-limit report 📦

Path Size % Change Change
@sentry/browser 25.41 kB - -
@sentry/browser - with treeshaking flags 23.87 kB - -
@sentry/browser (incl. Tracing) 42.22 kB - -
@sentry/browser (incl. Tracing, Profiling) 46.86 kB - -
@sentry/browser (incl. Tracing, Replay) 80.84 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 70.45 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 85.55 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 97.74 kB - -
@sentry/browser (incl. Feedback) 42.13 kB - -
@sentry/browser (incl. sendFeedback) 30.09 kB - -
@sentry/browser (incl. FeedbackAsync) 35.09 kB - -
@sentry/browser (incl. Metrics) 26.51 kB - -
@sentry/browser (incl. Logs) 26.67 kB - -
@sentry/browser (incl. Metrics & Logs) 27.33 kB - -
@sentry/react 27.14 kB - -
@sentry/react (incl. Tracing) 44.46 kB - -
@sentry/vue 29.84 kB - -
@sentry/vue (incl. Tracing) 44.02 kB - -
@sentry/svelte 25.43 kB - -
CDN Bundle 27.95 kB - -
CDN Bundle (incl. Tracing) 42.99 kB - -
CDN Bundle (incl. Logs, Metrics) 28.79 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 43.81 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 67.74 kB - -
CDN Bundle (incl. Tracing, Replay) 79.72 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 80.59 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 85.16 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 86.09 kB - -
CDN Bundle - uncompressed 81.75 kB - -
CDN Bundle (incl. Tracing) - uncompressed 127.29 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 84.59 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 130.13 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 207.97 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 243.9 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 246.72 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 256.69 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 259.5 kB - -
@sentry/nextjs (client) 46.8 kB - -
@sentry/sveltekit (client) 42.59 kB - -
@sentry/node-core 52.15 kB +0.01% +1 B 🔺
@sentry/node 166.3 kB +0.09% +138 B 🔺
@sentry/node - without tracing 93.93 kB - -
@sentry/aws-serverless 109.45 kB +0.01% +2 B 🔺

View base workflow run

@github-actions
Copy link
Contributor

github-actions bot commented Dec 4, 2025

node-overhead report 🧳

Note: This is a synthetic benchmark with a minimal express app and does not necessarily reflect the real-world performance impact in an application.

Scenario Requests/s % of Baseline Prev. Requests/s Change %
GET Baseline 9,190 - 9,268 -1%
GET With Sentry 1,710 19% 1,690 +1%
GET With Sentry (error only) 6,199 67% 6,110 +1%
POST Baseline 1,182 - 1,190 -1%
POST With Sentry 584 49% 602 -3%
POST With Sentry (error only) 1,044 88% 1,048 -0%
MYSQL Baseline 3,252 - 3,298 -1%
MYSQL With Sentry 452 14% 472 -4%
MYSQL With Sentry (error only) 2,682 82% 2,666 +1%

View base workflow run

@nicohrubec nicohrubec self-assigned this Dec 10, 2025
@nicohrubec nicohrubec changed the title fix(core): Instrument langgraph createReactAgent feat(core): Instrument langgraph createReactAgent Dec 17, 2025
nicohrubec added a commit that referenced this pull request Dec 23, 2025
IITM has a new patch release with a fix that we need to properly
instrument submodule imports in our Otel integrations (for instance to
make [this](#18403)
work).

Closes #18613
@github-actions
Copy link
Contributor

github-actions bot commented Jan 30, 2026

Codecov Results 📊


Generated by Codecov Action

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.

3 participants