feat: add config override for langwatch to allow passing metadata as well (#5121)

This commit is contained in:
Rogério Chaves
2025-08-31 13:11:01 +02:00
committed by GitHub
parent a5a728fd06
commit 763e33b073
+9
View File
@@ -591,6 +591,15 @@ export const additionalCallbacks = async (nodeData: INodeData, options: ICommonO
})
const trace = langwatch.getTrace()
if (nodeData?.inputs?.analytics?.langWatch) {
trace.update({
metadata: {
...nodeData?.inputs?.analytics?.langWatch
}
})
}
callbacks.push(trace.getLangChainCallback())
} else if (provider === 'arize') {
const arizeApiKey = getCredentialParam('arizeApiKey', credentialData, nodeData)