getsentry / getsentry/sentry-python

huggingface_hub: Instrument feature_extraction (embeddings)

Open
#5,847 1 comment 0 reactions 0 assignees View on GitHub
Improvement Integration: HuggingFace Python Spans
Dominant language
Python
Stars
2.2k
Forks
669
Avg merge
1d 1h
Merged PRs (30d)
213

Description

`InferenceClient.feature_extraction()` is the HuggingFace equivalent of embeddings. The SDK has `OP.GEN_AI_EMBEDDINGS` defined and both OpenAI and Cohere instrument their embedding methods. This is a meaningful gap for users who use HF for embeddings. Should cover both sync `InferenceClient` and async `AsyncInferenceClient`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.