Skip to content

feat(core): Add enableTruncation option to LangGraph integration - #20183

Merged
nicohrubec merged 6 commits into
developfrom
ab/langgraph-enable-truncation-option
Apr 10, 2026
Merged

feat(core): Add enableTruncation option to LangGraph integration#20183
nicohrubec merged 6 commits into
developfrom
ab/langgraph-enable-truncation-option

Conversation

@andreiborza

Copy link
Copy Markdown
Member

This PR adds an enableTruncation option to the LangGraph integration that
allows users to disable input message truncation. It defaults to true
to preserve existing behavior.

Also refactors to use the shared getTruncatedJsonString/getJsonString utilities.

Closes: #20139

This PR adds an `enableTruncation` option to the LangGraph integration that
allows users to disable input message truncation. It defaults to `true`
to preserve existing behavior.
Also refactors to use the shared getTruncatedJsonString/getJsonString utilities.
Closes: #20139
@github-actions

github-actionsBot commented Apr 10, 2026

Copy link
Copy Markdown
Contributor

Semver Impact of This PR

🟡 Minor (new features)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


New Features ✨

Core

  • Add enableTruncation option to LangGraph integration by andreiborza in #20183
  • Add enableTruncation option to OpenAI integration by andreiborza in #20167
  • Export a reusable function to add tracing headers by JPeer264 in #20076

Other

  • (deps) Bump defu from 6.1.4 to 6.1.6 by dependabot in #20104

Internal Changes 🔧

  • (bugbot) Add rules to flag test-flake-provoking patterns by Lms24 in #20192
  • (size-limit) Bump failing size limit scenario by Lms24 in #20186

🤖 This preview updates automatically when you update the PR.

@github-actions

github-actionsBot commented Apr 10, 2026

Copy link
Copy Markdown
Contributor

size-limit report 📦

PathSize% ChangeChange
@sentry/browser25.72 kB--
@sentry/browser - with treeshaking flags24.21 kB--
@sentry/browser (incl. Tracing)42.73 kB--
@sentry/browser (incl. Tracing, Profiling)47.35 kB--
@sentry/browser (incl. Tracing, Replay)81.54 kB--
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags71.11 kB--
@sentry/browser (incl. Tracing, Replay with Canvas)86.25 kB--
@sentry/browser (incl. Tracing, Replay, Feedback)98.45 kB--
@sentry/browser (incl. Feedback)42.51 kB--
@sentry/browser (incl. sendFeedback)30.39 kB--
@sentry/browser (incl. FeedbackAsync)35.38 kB--
@sentry/browser (incl. Metrics)27.04 kB--
@sentry/browser (incl. Logs)27.18 kB--
@sentry/browser (incl. Metrics & Logs)27.86 kB--
@sentry/react27.48 kB--
@sentry/react (incl. Tracing)45.05 kB--
@sentry/vue30.56 kB--
@sentry/vue (incl. Tracing)44.59 kB--
@sentry/svelte25.74 kB--
CDN Bundle28.41 kB--
CDN Bundle (incl. Tracing)43.75 kB--
CDN Bundle (incl. Logs, Metrics)29.78 kB--
CDN Bundle (incl. Tracing, Logs, Metrics)44.83 kB--
CDN Bundle (incl. Replay, Logs, Metrics)68.59 kB--
CDN Bundle (incl. Tracing, Replay)80.64 kB--
CDN Bundle (incl. Tracing, Replay, Logs, Metrics)81.66 kB--
CDN Bundle (incl. Tracing, Replay, Feedback)86.17 kB--
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics)87.2 kB--
CDN Bundle - uncompressed82.99 kB--
CDN Bundle (incl. Tracing) - uncompressed129.77 kB--
CDN Bundle (incl. Logs, Metrics) - uncompressed87.14 kB--
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed133.19 kB--
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed210.12 kB--
CDN Bundle (incl. Tracing, Replay) - uncompressed246.65 kB--
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed250.05 kB--
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed259.56 kB--
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed262.95 kB--
@sentry/nextjs (client)47.47 kB--
@sentry/sveltekit (client)43.2 kB--
@sentry/node-core57.86 kB+0.02%+7 B 🔺
@sentry/node174.85 kB+0.02%+29 B 🔺
@sentry/node - without tracing97.97 kB+0.03%+22 B 🔺
@sentry/aws-serverless115.22 kB+0.02%+19 B 🔺

View base workflow run

@github-actions

github-actionsBot commented Apr 10, 2026

Copy link
Copy Markdown
Contributor

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.

ScenarioRequests/s% of BaselinePrev. Requests/sChange %
GET Baseline8,918-9,230-3%
GET With Sentry1,86121%1,837+1%
GET With Sentry (error only)6,05168%6,130-1%
POST Baseline1,196-1,209-1%
POST With Sentry61451%611+0%
POST With Sentry (error only)1,04287%1,050-1%
MYSQL Baseline3,215-3,295-2%
MYSQL With Sentry42313%440-4%
MYSQL With Sentry (error only)2,66083%2,678-1%

View base workflow run

@nicohrubecnicohrubec left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

@nicohrubec
nicohrubec merged commit c9782ae into developApr 10, 2026
243 checks passed
@nicohrubec
nicohrubec deleted the ab/langgraph-enable-truncation-option branch April 10, 2026 11:33
Sign up for freeto 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.

Add enableTruncation option to LangGraph integration

2 participants

@andreiborza@nicohrubec