haystack-core-integrations
haystack-core-integrations copied to clipboard
Refactor Weave integration
As reported in #2038, when working on fixing types, I discovered that currently the Weave Tracer violates of the Liskov Substitution Principle and fixing this does not seem straightforward.
https://github.com/deepset-ai/haystack-core-integrations/blob/14fd1b8b276a62a5630e474e047ecaf1816e904b/integrations/weights_and_biases_weave/src/haystack_integrations/tracing/weave/tracer.py#L157-L159
Since I'm not an expert on this integration, I can't confidently say if this is problematic or no. (Langfuse might have similar problems but I am not sure).
We should evaluate whether this causes practical problems and if it's worth refactoring the integration to address it.