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

feat(languse): add embedder usage metrics for langfuse

Open Hansehart opened this issue 3 weeks ago • 0 comments

Related Issues

  • fixes #2472

Proposed Changes:

Added cost and usage tracking for embedders in the Langfuse integration. Embedders now report token usage metrics to Langfuse for cost monitoring and optimization.

How did you test it?

unit tests, integration tests

Notes for the reviewer

This implementation complements the already-merged PR #2497 which added suffix-based component detection. That PR solved thegenerator whitelist issue and embedder span types. Whereas this PR adds the missing usage/cost extraction for embedders.

Checklist

Hansehart avatar Nov 21 '25 21:11 Hansehart