Skip to content

fix: emit gen_ai.usage.cache_write.input_tokens per the semconv rename - #34

Merged
PabloPardoGarcia merged 1 commit into
mainfrom
pablo/rius-661-cache-write-rename
Sep 10, 2026
Merged

fix: emit gen_ai.usage.cache_write.input_tokens per the semconv rename#34
PabloPardoGarcia merged 1 commit into
mainfrom
pablo/rius-661-cache-write-rename

Conversation

@PabloPardoGarcia

Copy link
Copy Markdown
Member

TypeScript half of the rename: the GenAI semantic conventions renamed gen_ai.usage.cache_creation.input_tokens to gen_ai.usage.cache_write.input_tokens in semantic-conventions-genai#440, before our cache fields landed in #30 with the pre-rename name. The old name is in no released version (#30 merged after v0.3.1), so the setUsage field becomes cacheWriteInputTokens with no deprecated alias.

Merge order: glassflow/rius-sdk-python#69 first, then this — the semconv-parity check regenerates tests/fixtures/semconv.json from the python repo's main, so this PR's parity job only goes green once the python rename is on main. Both should merge before the open release 0.4.0 / release 0.13.0 PRs so the old attribute never reaches a registry.

239 passed, biome clean, build clean.

The GenAI conventions renamed cache_creation to cache_write
(open-telemetry/semantic-conventions-genai#440) before the cache fields
first shipped here; the old name is in no released version, so the
setUsage field and the attribute rename land together with no alias.
@PabloPardoGarcia
PabloPardoGarcia merged commit 812529b into main Sep 10, 2026
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant