Skip to content

fix: Update langfuse deserialization to not require span_handler key#3378

Merged
sjrl merged 2 commits into
mainfrom
update-langfuse-deser
Jun 1, 2026
Merged

fix: Update langfuse deserialization to not require span_handler key#3378
sjrl merged 2 commits into
mainfrom
update-langfuse-deser

Conversation

@sjrl

@sjrl sjrl commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

Related Issues

  • fixes #issue-number

Proposed Changes:

Update the LangfuseConnector.from_dict to not require the presence of the span_handler key since it's default value is None in the init. This allows users to deserialize dicts for LangfuseConnector that might be missing the span_handler key which is relevant for the Haystack Enterprise Platform.

How did you test it?

Added a new unit test.

Notes for the reviewer

Checklist

@sjrl sjrl requested a review from a team as a code owner June 1, 2026 11:56
@sjrl sjrl requested review from davidsbatista and removed request for a team June 1, 2026 11:56
@sjrl sjrl self-assigned this Jun 1, 2026
@github-actions

github-actions Bot commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

Coverage report (langfuse)

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  integrations/langfuse/src/haystack_integrations/components/connectors/langfuse
  langfuse_connector.py
Project Total  

This report was generated by python-coverage-comment-action

@davidsbatista davidsbatista left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@sjrl sjrl merged commit 164591c into main Jun 1, 2026
16 checks passed
@sjrl sjrl deleted the update-langfuse-deser branch June 1, 2026 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants