You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ref(core): Remove provider-specific AI span attributes in favor of gen_ai attributes in sentry conventions (#20011)
In the openai and anthropic integrations we send multiple provider
specific attributes. None of these are part of our sentry conventions
and should therefore be emitted. These fall into two categories:
- Exact duplicates of attributes in our `gen_ai` namespace:
- `openai.response.id`, `openai.response.model`,
`openai.usage.prompt_tokens`, `openai.usage.completion_tokens`
- These are strictly redundant and therefore provide no value.
- No `gen_ai` equivalent:
- `openai.response.timestamp`, `anthropic.response.timestamp`
- These have no `gen_ai` equivalent so we would no longer send this data
at all, but since they are not in the semantic conventions we probably
shouldn't send them either.
According to Hex, none of these attributes are used in any stored
queries, dashboards or alerts. We will still call this out in the
changelog in case any users rely on this in hooks.
Closes#20015 (added automatically)
Copy file name to clipboardExpand all lines: CHANGELOG.md
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,21 @@
58
58
59
59
Adds instrumentation for the Google GenAI [`embedContent`](https://ai.google.dev/gemini-api/docs/embeddings) API, creating `gen_ai.embeddings` spans.
60
60
61
+
-**ref(core): Remove provider-specific AI span attributes in favor of `gen_ai` attributes in sentry conventions ([#20011](https://github.com/getsentry/sentry-javascript/pull/20011))**
62
+
63
+
The following provider-specific span attributes have been removed from the OpenAI and Anthropic AI integrations. Use the standardized `gen_ai.*` equivalents instead:
0 commit comments