WithMergeFilteredEnvIntoExtraMetadata enables merging filtered process environment.
func WithMergeFilteredEnvIntoExtraMetadata(v bool) OptionWithMergeFilteredEnvIntoExtraMetadata enables merging filtered process environment variables (LANGCHAIN_* / LANGSMITH_* with secrets and endpoints excluded) into extra.metadata on [TracingClient.CreateRun]. Default is false so metadata only contains what the application sets in Extra, plus revision_id from LANGSMITH_REVISION_ID or LANGCHAIN_REVISION_ID, which is always added. Opt in when you want parity with LangGraph-style deployments that surface env context on traces.
| Name | Type | Description |
|---|---|---|
v* | bool |