默认情况下,出于隐私考虑,Agent Server 不会在服务器日志中记录 HTTP 头信息。然而,记录请求 ID 和关联 ID 有助于您调试问题,并在分布式系统中追踪请求。您可以通过修改Documentation Index
Fetch the complete documentation index at: https://langchain-zh.cn/llms.txt
Use this file to discover all available pages before exploring further.
langgraph.json 文件中的 logging_headers 部分,选择为所有 API 调用启用请求头记录。
includes 和 excludes 列表接受精确的请求头名称,或使用 * 作为通配符(不区分大小写)来匹配任意数量字符的 glob 模式。出于安全考虑,不支持其他模式类型。
请注意,排除规则优先于包含规则。例如,如果您包含了 *-id 但排除了 x-user-id,则 x-user-id 请求头将不会被记录。
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

