[PR #6047] chore(langgraph): Omit other keys from metadata by default #4803

Closed
opened 2026-02-20 17:50:46 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langchain-ai/langgraph/pull/6047

State: closed
Merged: Yes


Right now we include configuration as metadata (which is later passed to tracing callbacks).

Right now we include any key that doesn't have a dunder prefix and whose value is a string or int.

This PR proposes to also exclude keys with certain substrings (key, secret, token).

I would also be in favor of dropping support for forwarding configurable values to metadata entirely, but this is a smaller, less controversial change.

Add a test.

**Original Pull Request:** https://github.com/langchain-ai/langgraph/pull/6047 **State:** closed **Merged:** Yes --- Right now we include configuration as metadata (which is later passed to tracing callbacks). Right now we include any key that doesn't have a dunder prefix and whose value is a string or int. This PR proposes to also exclude keys with certain substrings (key, secret, token). I would also be in favor of dropping support for forwarding configurable values to metadata entirely, but this is a smaller, less controversial change. Add a test.
yindo added the pull-request label 2026-02-20 17:50:46 -05:00
yindo closed this issue 2026-02-20 17:50:46 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraph#4803