[PR #1777] [MERGED] feat(checkpoint-mongodb): append client metadata for mongodb #1720

Closed
opened 2026-02-15 20:16:37 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langgraphjs/pull/1777
Author: @tadjik1
Created: 11/12/2025
Status: Merged
Merged: 1/8/2026
Merged by: @hntrl

Base: mainHead: main


📝 Commits (7)

  • a629a84 feat(checkpoint-mongodb): append client metadata for mongodb
  • b670dc6 docs(persistence): add note about MongoDB checkpoint saver
  • 89ba95d feat(deps): use latest 6.x version of mongodb driver
  • 98da720 docs(checkpoint-mongodb): update changeset
  • e52ce2f Merge branch 'main' into main
  • b09fcb4 chore(checkpoint-mongodb): fix formatting issues
  • 6ca9232 Merge branch 'main' into main

📊 Changes

7 files changed (+55 additions, -47 deletions)

View changed files

.changeset/brave-garlics-teach.md (+5 -0)
📝 docs/docs/concepts/persistence.md (+1 -0)
📝 libs/checkpoint-mongodb/package.json (+1 -1)
📝 libs/checkpoint-mongodb/src/index.ts (+3 -0)
libs/checkpoint-mongodb/src/tests/checkpoints.test.ts (+18 -0)
📝 libs/checkpoint-validation/package.json (+1 -1)
📝 yarn.lock (+26 -45)

📄 Description

The PR incorporates MongoDB's wrapping client library specification for the connection handshake to allow library details to be included in the metadata written to mongos or mongod logs.

For example, this change would allow server-side logs such as the following:

{"t":{"$date":"2024-01-27T23:10:40.108Z"},"s":"I","c":"NETWORK","id":51800,"ctx":"conn16235","msg":"client metadata","attr":{"remote":"127.0.0.1:1094","client":"conn16235","doc":{"driver":{"name":"langgraphjs_checkpoint_saver","version":"4.16.0"},"platform":"Node.js v18.18.2, LE","os":{"name":"linux","architecture":"x64","version":"5.15.133+","type":"Linux"}}}}

For anyone hosting clusters with connections coming from different applications this can help differentiate connections and facilitate log analysis.

In addition I have added link to this package in the documentation page here.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langchain-ai/langgraphjs/pull/1777 **Author:** [@tadjik1](https://github.com/tadjik1) **Created:** 11/12/2025 **Status:** ✅ Merged **Merged:** 1/8/2026 **Merged by:** [@hntrl](https://github.com/hntrl) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (7) - [`a629a84`](https://github.com/langchain-ai/langgraphjs/commit/a629a84646dbd08b365c78ca60639c3747daa871) feat(checkpoint-mongodb): append client metadata for mongodb - [`b670dc6`](https://github.com/langchain-ai/langgraphjs/commit/b670dc6bb4c7938ab044cdddaa497799dffdb9ae) docs(persistence): add note about MongoDB checkpoint saver - [`89ba95d`](https://github.com/langchain-ai/langgraphjs/commit/89ba95dbc35f78111505ae06fc9d06954ac61ea0) feat(deps): use latest 6.x version of mongodb driver - [`98da720`](https://github.com/langchain-ai/langgraphjs/commit/98da72030fa21005ee553c4fbaa3ffdf13ff71d5) docs(checkpoint-mongodb): update changeset - [`e52ce2f`](https://github.com/langchain-ai/langgraphjs/commit/e52ce2f3601a9301610cb7f3aaea2c3a533dc586) Merge branch 'main' into main - [`b09fcb4`](https://github.com/langchain-ai/langgraphjs/commit/b09fcb46dc6af3637c1ef7f4c956d803bc7c9c3f) chore(checkpoint-mongodb): fix formatting issues - [`6ca9232`](https://github.com/langchain-ai/langgraphjs/commit/6ca923218b3dfdd45493c77314cc46e592b38a76) Merge branch 'main' into main ### 📊 Changes **7 files changed** (+55 additions, -47 deletions) <details> <summary>View changed files</summary> ➕ `.changeset/brave-garlics-teach.md` (+5 -0) 📝 `docs/docs/concepts/persistence.md` (+1 -0) 📝 `libs/checkpoint-mongodb/package.json` (+1 -1) 📝 `libs/checkpoint-mongodb/src/index.ts` (+3 -0) ➕ `libs/checkpoint-mongodb/src/tests/checkpoints.test.ts` (+18 -0) 📝 `libs/checkpoint-validation/package.json` (+1 -1) 📝 `yarn.lock` (+26 -45) </details> ### 📄 Description The PR incorporates MongoDB's [wrapping client library](https://github.com/mongodb/specifications/blob/master/source/mongodb-handshake/handshake.md#supporting-wrapping-libraries) specification for the connection handshake to allow library details to be included in the metadata written to mongos or mongod logs. For example, this change would allow server-side logs such as the following: > {"t":{"$date":"2024-01-27T23:10:40.108Z"},"s":"I","c":"NETWORK","id":51800,"ctx":"conn16235","msg":"client metadata","attr":{"remote":"127.0.0.1:1094","client":"conn16235","doc":{"driver":{"name":"langgraphjs_checkpoint_saver","version":"4.16.0"},"platform":"Node.js v18.18.2, LE","os":{"name":"linux","architecture":"x64","version":"5.15.133+","type":"Linux"}}}} For anyone hosting clusters with connections coming from different applications this can help differentiate connections and facilitate log analysis. In addition I have added link to this package in the documentation page [here](https://docs.langchain.com/oss/javascript/langgraph/persistence#checkpointer-libraries). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-15 20:16:37 -05:00
yindo closed this issue 2026-02-15 20:16:37 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraphjs#1720