fix: emit gen_ai.usage.cache_write.input_tokens per the semconv rename - #69
Open
PabloPardoGarcia wants to merge 1 commit into
Open
fix: emit gen_ai.usage.cache_write.input_tokens per the semconv rename#69PabloPardoGarcia wants to merge 1 commit into
PabloPardoGarcia wants to merge 1 commit into
Conversation
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 parameter and attribute rename land together with no alias.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The GenAI semantic conventions renamed
gen_ai.usage.cache_creation.input_tokenstogen_ai.usage.cache_write.input_tokensin semantic-conventions-genai#440 (merged 2026-08-20) — two weeks before our cache fields landed here in #65 with the pre-rename name.The old name is in no released version (#65 merged after v0.12.0 was cut), so this is a clean pre-release correction: the
set_usageparameter becomescache_write_input_tokens, the emitted attribute becomesgen_ai.usage.cache_write.input_tokens, and no deprecated alias is carried.Merge-order note: this should merge before the open
release 0.13.0PR, so 0.13.0 ships the conformant name and the old one never reaches PyPI. Companion TS PR renamessetUsage's field the same way; the docs PR (#87 on glassflow-docs) is updated to match.243 passed, ruff clean.