haystack-core-integrations icon indicating copy to clipboard operation
haystack-core-integrations copied to clipboard

Langfuse Integration: add support for log levels

Open marcklingen opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe.

Support for log levels on errors within a haystack pipeline.

Describe the solution you'd like

Langfuse supports log levels on observations within a trace (docs). It'd be great if these were used when errors happen within a Haystack pipeline in order to help find erroneous traces faster.

marcklingen avatar Dec 24 '24 09:12 marcklingen

Looking for contribution - one should be able to achieve this by adjusting DefaultSpanHandler from https://github.com/deepset-ai/haystack-core-integrations/pull/1313 or perhaps implement a custom handler class and leave it here for others to use.

vblagoje avatar Jan 28 '25 10:01 vblagoje

@vblagoje I solved it locally. The changes are in #2522. Errors work out of the box, whereas "WARNING" and "DEBUG" can be set manually.

Hansehart avatar Nov 13 '25 21:11 Hansehart