Skip to content

Crysmags/langgraph w/ orch update#7567

Open
crysmags wants to merge 19 commits intomasterfrom
crysmags/langgraph-w/-orch-update
Open

Crysmags/langgraph w/ orch update#7567
crysmags wants to merge 19 commits intomasterfrom
crysmags/langgraph-w/-orch-update

Conversation

@crysmags
Copy link
Collaborator

What does this PR do?

Motivation

Additional Notes

@pr-commenter
Copy link

pr-commenter bot commented Feb 18, 2026

Benchmarks

Benchmark execution time: 2026-03-09 16:33:09

Comparing candidate commit 90db32d in PR branch crysmags/langgraph-w/-orch-update with baseline commit 9f2cfb6 in branch master.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 228 metrics, 32 unstable metrics.

@crysmags crysmags force-pushed the crysmags/langgraph-w/-orch-update branch from 60ec132 to f4dc3d3 Compare February 18, 2026 19:26
@github-actions
Copy link
Contributor

github-actions bot commented Feb 18, 2026

Overall package size

Self size: 4.97 MB
Deduped: 5.81 MB
No deduping: 5.81 MB

Dependency sizes | name | version | self size | total size | |------|---------|-----------|------------| | import-in-the-middle | 3.0.0 | 81.15 kB | 815.98 kB | | dc-polyfill | 0.1.10 | 26.73 kB | 26.73 kB |

🤖 This report was automatically generated by heaviest-objects-in-the-universe

@datadog-datadog-prod-us1

This comment has been minimized.

@codecov
Copy link

codecov bot commented Feb 18, 2026

Codecov Report

❌ Patch coverage is 52.87356% with 41 lines in your changes missing coverage. Please review.
✅ Project coverage is 80.34%. Comparing base (9f2cfb6) to head (bdc9e1f).
⚠️ Report is 44 commits behind head on master.

Files with missing lines Patch % Lines
...ges/dd-trace/src/llmobs/plugins/langgraph/index.js 18.00% 41 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7567      +/-   ##
==========================================
+ Coverage   80.32%   80.34%   +0.02%     
==========================================
  Files         739      746       +7     
  Lines       31960    32269     +309     
==========================================
+ Hits        25671    25928     +257     
- Misses       6289     6341      +52     
Flag Coverage Δ
aiguard-macos 39.09% <33.33%> (+0.03%) ⬆️
aiguard-ubuntu 39.21% <33.33%> (+0.02%) ⬆️
aiguard-windows 38.94% <33.33%> (+0.02%) ⬆️
apm-capabilities-tracing-macos 48.84% <33.33%> (+0.11%) ⬆️
apm-capabilities-tracing-ubuntu 48.88% <33.33%> (+0.06%) ⬆️
apm-capabilities-tracing-windows 48.54% <33.33%> (-0.01%) ⬇️
apm-integrations-child-process 38.39% <33.33%> (-0.24%) ⬇️
apm-integrations-couchbase-18 37.31% <33.33%> (-0.22%) ⬇️
apm-integrations-couchbase-eol 37.78% <33.33%> (-0.23%) ⬇️
apm-integrations-oracledb 37.62% <33.33%> (-0.21%) ⬇️
appsec-express 55.19% <33.33%> (-0.19%) ⬇️
appsec-fastify 51.54% <33.33%> (-0.17%) ⬇️
appsec-graphql 51.73% <33.33%> (-0.16%) ⬇️
appsec-kafka 44.27% <33.33%> (-0.13%) ⬇️
appsec-ldapjs 43.92% <33.33%> (-0.17%) ⬇️
appsec-lodash 43.58% <33.33%> (-0.16%) ⬇️
appsec-macos 58.21% <33.33%> (-0.18%) ⬇️
appsec-mongodb-core 48.70% <33.33%> (-0.19%) ⬇️
appsec-mongoose 49.36% <33.33%> (-0.21%) ⬇️
appsec-mysql 50.80% <33.33%> (-0.15%) ⬇️
appsec-node-serialize 43.10% <33.33%> (-0.16%) ⬇️
appsec-passport 47.55% <33.33%> (-0.16%) ⬇️
appsec-postgres 50.52% <33.33%> (-0.18%) ⬇️
appsec-sourcing 42.51% <33.33%> (-0.15%) ⬇️
appsec-template 43.27% <33.33%> (-0.16%) ⬇️
appsec-ubuntu 58.28% <33.33%> (-0.18%) ⬇️
appsec-windows 58.07% <33.33%> (-0.19%) ⬇️
instrumentations-instrumentation-bluebird 32.26% <33.33%> (-0.15%) ⬇️
instrumentations-instrumentation-body-parser 40.41% <33.33%> (-0.15%) ⬇️
instrumentations-instrumentation-child_process 37.71% <33.33%> (-0.22%) ⬇️
instrumentations-instrumentation-cookie-parser 34.24% <33.33%> (-0.16%) ⬇️
instrumentations-instrumentation-express 34.56% <33.33%> (-0.17%) ⬇️
instrumentations-instrumentation-express-mongo-sanitize 34.37% <33.33%> (-0.16%) ⬇️
instrumentations-instrumentation-express-session 40.05% <33.33%> (-0.15%) ⬇️
instrumentations-instrumentation-fs 31.88% <33.33%> (-0.15%) ⬇️
instrumentations-instrumentation-generic-pool 29.70% <50.00%> (-0.01%) ⬇️
instrumentations-instrumentation-http 39.68% <33.33%> (-0.23%) ⬇️
instrumentations-instrumentation-knex 32.27% <33.33%> (-0.15%) ⬇️
instrumentations-instrumentation-mongoose 33.39% <33.33%> (-0.15%) ⬇️
instrumentations-instrumentation-multer 40.16% <33.33%> (-0.15%) ⬇️
instrumentations-instrumentation-mysql2 38.17% <33.33%> (-0.22%) ⬇️
instrumentations-instrumentation-passport 43.97% <33.33%> (-0.11%) ⬇️
instrumentations-instrumentation-passport-http 43.64% <33.33%> (-0.11%) ⬇️
instrumentations-instrumentation-passport-local 44.17% <33.33%> (-0.12%) ⬇️
instrumentations-instrumentation-pg 37.60% <33.33%> (-0.22%) ⬇️
instrumentations-instrumentation-promise 32.19% <33.33%> (-0.15%) ⬇️
instrumentations-instrumentation-promise-js 32.20% <33.33%> (-0.15%) ⬇️
instrumentations-instrumentation-q 32.24% <33.33%> (-0.15%) ⬇️
instrumentations-instrumentation-url 32.17% <33.33%> (-0.15%) ⬇️
instrumentations-instrumentation-when 32.21% <33.33%> (-0.15%) ⬇️
llmobs-ai 42.15% <33.33%> (-0.05%) ⬇️
llmobs-anthropic 40.14% <33.33%> (-0.24%) ⬇️
llmobs-bedrock 39.13% <33.33%> (-0.19%) ⬇️
llmobs-google-genai 39.68% <33.33%> (-0.22%) ⬇️
llmobs-langchain 39.96% <77.77%> (+<0.01%) ⬆️
llmobs-openai 43.87% <33.33%> (-0.33%) ⬇️
llmobs-vertex-ai 39.94% <33.33%> (-0.23%) ⬇️
platform-core 31.53% <ø> (ø)
platform-esbuild 34.48% <ø> (ø)
platform-instrumentations-misc 48.45% <100.00%> (+2.92%) ⬆️
platform-shimmer 37.63% <ø> (ø)
platform-unit-guardrails 32.95% <ø> (ø)
plugins-azure-event-hubs 25.94% <100.00%> (+0.11%) ⬆️
plugins-azure-service-bus 25.30% <100.00%> (+0.11%) ⬆️
plugins-bullmq 44.17% <33.33%> (+0.06%) ⬆️
plugins-cassandra 37.66% <33.33%> (-0.21%) ⬇️
plugins-cookie 27.00% <100.00%> (+0.11%) ⬆️
plugins-cookie-parser 26.79% <100.00%> (+0.11%) ⬆️
plugins-crypto 26.79% <ø> (ø)
plugins-dd-trace-api 38.22% <33.33%> (-0.24%) ⬇️
plugins-express-mongo-sanitize 26.94% <100.00%> (+0.11%) ⬆️
plugins-express-session 26.75% <100.00%> (+0.11%) ⬆️
plugins-fastify 42.12% <33.33%> (-0.18%) ⬇️
plugins-fetch 38.22% <33.33%> (-0.22%) ⬇️
plugins-fs 38.49% <33.33%> (-0.24%) ⬇️
plugins-generic-pool 25.99% <100.00%> (+0.11%) ⬆️
plugins-google-cloud-pubsub 45.34% <33.33%> (-0.11%) ⬇️
plugins-grpc 40.80% <33.33%> (-0.21%) ⬇️
plugins-handlebars 26.98% <100.00%> (+0.11%) ⬆️
plugins-hapi 40.04% <33.33%> (-0.16%) ⬇️
plugins-hono 40.30% <33.33%> (-0.16%) ⬇️
plugins-ioredis 38.30% <33.33%> (-0.23%) ⬇️
plugins-knex 26.61% <100.00%> (+0.11%) ⬆️
plugins-langgraph 38.35% <45.97%> (?)
plugins-ldapjs 24.47% <100.00%> (+0.11%) ⬆️
plugins-light-my-request 26.34% <100.00%> (+0.11%) ⬆️
plugins-limitd-client 32.54% <33.33%> (-0.17%) ⬇️
plugins-lodash 26.08% <100.00%> (+0.11%) ⬆️
plugins-mariadb 39.35% <33.33%> (-0.25%) ⬇️
plugins-memcached 38.02% <33.33%> (-0.23%) ⬇️
plugins-microgateway-core 39.18% <33.33%> (-0.07%) ⬇️
plugins-moleculer 40.40% <33.33%> (-0.21%) ⬇️
plugins-mongodb 39.04% <33.33%> (-0.23%) ⬇️
plugins-mongodb-core 38.87% <33.33%> (-0.27%) ⬇️
plugins-mongoose 38.74% <33.33%> (-0.22%) ⬇️
plugins-multer 26.75% <100.00%> (+0.11%) ⬆️
plugins-mysql 39.04% <33.33%> (-0.39%) ⬇️
plugins-mysql2 39.14% <33.33%> (-0.24%) ⬇️
plugins-node-serialize 27.05% <100.00%> (+0.11%) ⬆️
plugins-opensearch 37.49% <33.33%> (-0.22%) ⬇️
plugins-passport-http 26.80% <100.00%> (+0.11%) ⬆️
plugins-postgres 35.53% <33.33%> (-0.26%) ⬇️
plugins-process 26.79% <ø> (ø)
plugins-pug 27.00% <100.00%> (+0.11%) ⬆️
plugins-redis 38.76% <33.33%> (-0.24%) ⬇️
plugins-router 42.99% <33.33%> (-0.18%) ⬇️
plugins-sequelize 25.59% <100.00%> (+0.11%) ⬆️
plugins-test-and-upstream-amqp10 38.38% <33.33%> (-0.20%) ⬇️
plugins-test-and-upstream-amqplib 43.76% <33.33%> (-0.16%) ⬇️
plugins-test-and-upstream-apollo 39.01% <33.33%> (-0.09%) ⬇️
plugins-test-and-upstream-avsc 38.55% <33.33%> (-0.24%) ⬇️
plugins-test-and-upstream-bunyan 33.80% <33.33%> (-0.18%) ⬇️
plugins-test-and-upstream-connect 40.70% <33.33%> (-0.16%) ⬇️
plugins-test-and-upstream-graphql 39.99% <33.33%> (-0.25%) ⬇️
plugins-test-and-upstream-koa 40.29% <33.33%> (-0.15%) ⬇️
plugins-test-and-upstream-protobufjs 38.77% <33.33%> (-0.24%) ⬇️
plugins-test-and-upstream-rhea 43.94% <33.33%> (-0.15%) ⬇️
plugins-undici 38.99% <33.33%> (-0.22%) ⬇️
plugins-url 26.79% <ø> (ø)
plugins-valkey 37.97% <33.33%> (-0.23%) ⬇️
plugins-vm 26.79% <ø> (ø)
plugins-winston 33.99% <33.33%> (-0.18%) ⬇️
plugins-ws 41.75% <33.33%> (-0.22%) ⬇️
profiling-macos 39.80% <33.33%> (-0.11%) ⬇️
profiling-ubuntu 39.92% <33.33%> (-0.11%) ⬇️
profiling-windows 41.50% <33.33%> (+0.27%) ⬆️
serverless-azure-functions-client 25.66% <100.00%> (+0.11%) ⬆️
serverless-azure-functions-eventhubs 25.66% <100.00%> (+0.11%) ⬆️
serverless-azure-functions-servicebus 25.66% <100.00%> (+0.11%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

crysmags and others added 14 commits March 6, 2026 13:48
These changes were made by the llm obs workflow to improve test
robustness but are not needed for the LangGraph integration itself.

The changes have been saved to /tmp/util-js-llmobs-improvements.patch
for future reference and can be applied later if needed.

Changes reverted:
- Mock value handling for timing fields (span_id, duration, start_ns)
- Better error handling in test assertions
- Input validation improvements
- Edge case handling for outputValue === 0
- Add trailing commas to all arrays and objects per @stylistic/comma-dangle
- Break long line in llmobs plugin to comply with max-len rule
- Remove unused 'llmobs' variable in test spec

All langgraph-related linting errors have been fixed.
@crysmags crysmags force-pushed the crysmags/langgraph-w/-orch-update branch from 3961fdf to 9ac81a6 Compare March 6, 2026 20:15
crysmags and others added 3 commits March 6, 2026 16:44
Add langgraph and its dependencies (@langchain/core, zod, zod-to-json-schema)
to externals.js. This was missing, causing dependency installation to fail.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
- Add zod-to-json-schema@3.23.1
- Update @langchain/core from 1.1.15 to 1.1.16

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@crysmags crysmags marked this pull request as ready for review March 9, 2026 14:31
@crysmags crysmags requested a review from a team as a code owner March 9, 2026 14:31
@crysmags crysmags requested review from a team as code owners March 9, 2026 14:31
@crysmags crysmags requested review from BridgeAR and removed request for a team March 9, 2026 14:31
Copy link
Collaborator

@sabrenner sabrenner left a comment

Choose a reason for hiding this comment

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

really only one actual question regarding usage of asyncEnd that does seem to work in tests and is probably fine but I just want to check locally first. but otherwise looks good to go % some comments on things i think either a bad rebase and/or the toolkit added/changed

Copy link
Collaborator

Choose a reason for hiding this comment

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

looks like the addition of this file might be unrelated?

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, I deleted this file recently, it must've been added accidentally during a rebase. The file needs to be deleted in this PR.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This file, keeps on reappearing, yes will delete

this._tagger.tagTextIO(span, input, output)
}

formatIO (data) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit for a follow-up: we can probably move this to a util file/share it with the general langchain integration

static id = 'llmobs_langgraph_pregel_stream'
static prefix = 'tracing:orchestrion:@langchain/langgraph:Pregel_stream'

asyncEnd (ctx) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

i gotta try this out locally, and i know tests are passing but it seems like this could be overwriting the asyncEnd from the LlmObsPlugin of the BaseLangGraphLLMObsPlugin above? although since tests pass this is a bit confusing - just leaving this as a note for myself.

static id = 'llmobs_langgraph_pregel_stream'
static prefix = 'tracing:orchestrion:@langchain/langgraph:Pregel_stream'

asyncEnd (ctx) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

i gotta try this out locally, and i know tests are passing but it seems like this could be overwriting the asyncEnd from the LlmObsPlugin of the BaseLangGraphLLMObsPlugin above? although since tests pass this is a bit confusing - just leaving this as a note for myself.

}

error (ctx) {
this.#tagOnComplete(ctx)
Copy link
Collaborator

Choose a reason for hiding this comment

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

is this needed? will we not hit the asyncEnd of the parent BaseLangGraphLLMObsPlugin plugin and tag what we have on the end there?

inputValue: JSON.stringify({
messages: [{ role: 'user', content: 'Stream test' }],
}),
outputValue: MOCK_STRING, // Final streamed output
Copy link
Collaborator

Choose a reason for hiding this comment

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

since this should be deterministic, let's assert the actual aggregated output

spanKind: 'workflow',
name: 'foobarzoo',
inputValue: JSON.stringify({ count: 0 }),
outputValue: MOCK_STRING,
Copy link
Collaborator

Choose a reason for hiding this comment

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

ditto on asserting real output

Copy link
Collaborator

Choose a reason for hiding this comment

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

this file can be removed

Copy link
Collaborator

Choose a reason for hiding this comment

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

looks like there are some unrelated version updates in this file (prisma stuff, langchain core) - if we could only add langgraph, and any zod packages, i think that's best!

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, I deleted this file recently, it must've been added accidentally during a rebase. The file needs to be deleted in this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants