Title: LiteLLM incorrect embeddings classification · Issue #4908 · getsentry/sentry-python · GitHub
Open Graph Title: LiteLLM incorrect embeddings classification · Issue #4908 · getsentry/sentry-python
X Title: LiteLLM incorrect embeddings classification · Issue #4908 · getsentry/sentry-python
Description: How do you use Sentry? Sentry Saas (sentry.io) Version 2.41.0 Steps to Reproduce Add the LiteLLMIntegration to your sentry init integrations list. Run an embedding using LiteLLM (v1.77.5 in my case) from litellm import embedding response...
Open Graph Description: How do you use Sentry? Sentry Saas (sentry.io) Version 2.41.0 Steps to Reproduce Add the LiteLLMIntegration to your sentry init integrations list. Run an embedding using LiteLLM (v1.77.5 in my case...
X Description: How do you use Sentry? Sentry Saas (sentry.io) Version 2.41.0 Steps to Reproduce Add the LiteLLMIntegration to your sentry init integrations list. Run an embedding using LiteLLM (v1.77.5 in my case...
Opengraph URL: https://github.com/getsentry/sentry-python/issues/4908
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"LiteLLM incorrect embeddings classification","articleBody":"### How do you use Sentry?\n\nSentry Saas (sentry.io)\n\n### Version\n\n2.41.0\n\n### Steps to Reproduce\n\n1. Add the `LiteLLMIntegration` to your sentry init integrations list.\n2. Run an embedding using LiteLLM (v1.77.5 in my case)\n```python\nfrom litellm import embedding\n\nresponse = embedding(\n model='openai/text-embedding-3-small',\n input='Some text to test embeddings',\n)\n```\n\n### Expected Result\n\nI expect the operation name to be \"embedding\".\n\nLooking at the current [implementation](https://github.com/getsentry/sentry-python/blob/master/sentry_sdk/integrations/litellm.py), it looks like you are checking for the value of a \"messages\" key in the keyword arguments passed to the input callback function. As you can see in my screenshot below, \"messages\" is also present in embedding calls.\n\nIt looks like there is a key \"call_type\" included in the input callback kwargs that is either \"completion\" or \"embedding\". That might be a more appropriate value to check.\n\n### Actual Result\n\nIn the span details in the Sentry dashboard, the call is classified as `chat` when it should be `embedding`.\n\n\u003cimg width=\"489\" height=\"935\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/933313b0-bc32-4d3b-926c-676fbcab4f76\" />","author":{"url":"https://github.com/Zach10za","@type":"Person","name":"Zach10za"},"datePublished":"2025-10-10T06:16:56Z","url":"https://github.com/getsentry/sentry-python/issues/4908"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:8b83edb7-30f0-0667-50c1-bcd2a46b45f5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E2C4:3CA6CF:FF288:161627:6B008138 |
| html-safe-nonce | 751a8d8d1f532cfd47808523a26ccf0b088f61f5fe81b9c40fba38c34a125086 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMkM0OjNDQTZDRjpGRjI4ODoxNjE2Mjc6NkIwMDgxMzgiLCJ2aXNpdG9yX2lkIjoiNzQwMzc3MjkyNDI0MDM2MzgzMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | baeea39748694e72893988cebd06ba53ac01959351381e5b33a0a3ddb8dcae07 |
| hovercard-subject-tag | issue:3501520649 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-python/4908/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b34d7287e43b06c7f7af112d420caa9beb2737046410f00beeaa676ba1ad7468/getsentry/sentry-python/issues/4908 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b34d7287e43b06c7f7af112d420caa9beb2737046410f00beeaa676ba1ad7468/getsentry/sentry-python/issues/4908 |
| og:image:alt | How do you use Sentry? Sentry Saas (sentry.io) Version 2.41.0 Steps to Reproduce Add the LiteLLMIntegration to your sentry init integrations list. Run an embedding using LiteLLM (v1.77.5 in my case... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Zach10za |
| hostname | github.com |
| expected-hostname | github.com |
| None | 82c186f13e104004ab7bdb779f3195e59dd38bfde531aaa74b76470fc2462b83 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-python git https://github.com/getsentry/sentry-python.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 137814779 |
| octolytics-dimension-repository_nwo | getsentry/sentry-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 137814779 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d1bc2aa1939001689f5ce935982c10a6138f745c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width