Langfuse Integration: add support for log levels
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.
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 I solved it locally. The changes are in #2522. Errors work out of the box, whereas "WARNING" and "DEBUG" can be set manually.