Be able to inject trace_context into LangchainCallbackHandler
[!IMPORTANT] Add
trace_contextparameter toLangchainCallbackHandlerto enable trace context injection for observations.
- Behavior:
- Add
trace_contextparameter toLangchainCallbackHandlerconstructor for injecting trace context.- Use
trace_contextinon_chain_start()to start observations with context whenobsis an instance ofLangfuse.- Imports:
- Import
TraceContextfromlangfuse.types.This description was created by
for 5982ac7962e19f36e63d1a52fd0658ff5d978e25. You can customize this summary. It will automatically update as commits are pushed.
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.
Greptile encountered an error while reviewing this PR. Please reach out to [email protected] for assistance.
Thanks a lot for your contribution @fhoering - will push this over the line in https://github.com/langfuse/langfuse-python/pull/1458