deepset-ai / deepset-ai/haystack-core-integrations

Refactor Weave integration

Open
#2,045 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

integration:weave P3
Dominant language
Python
Stars
203
Forks
332
Avg merge
2d 4h
Merged PRs (30d)
80

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read integrations/weights_and_biases_weave/src/haystack_integrations/tracing/weave/tracer.py around lines 157-159 and review issue #2038. Determine whether the reported Liskov Substitution Principle violation causes practical problems in the Weave Tracer, then assess whether refactoring is justified. Done means documenting the impact and reaching a clear refactoring decision.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
ai, observability
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.