Which component is this feature for?
Langchain Instrumentation
🔖 Feature description
I'd like to add arbitrary data as an attribute for my events and extract it from metadata when using batch and abatch methods. However, currently it doesn't work: attributes do not get populated from metadata.
🎤 Why is this feature needed ?
Otherwise, when using batch, I have no way to correlate errors to data if I disabled prompts. I disable prompts in some places because the data there is sensitive but if an error happens -- we need to be able to at least get an identifier of this data.
✌️ How do you aim to achieve this?
Not sure yet, let's discuss.
🔄️ Additional Information
I tried using callbacks but they are applied outside of traceloop per-workflow span, not inside of it :(
👀 Have you spent some time to check if this feature request has been raised before?
Are you willing to submit PR?
None