fix: emit gen_ai.usage.cache_write.input_tokens per the semconv rename - #34
Merged
Merged
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 setUsage field and the 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.
TypeScript half of the rename: the GenAI semantic conventions renamed
gen_ai.usage.cache_creation.input_tokenstogen_ai.usage.cache_write.input_tokensin 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 thesetUsagefield becomescacheWriteInputTokenswith no deprecated alias.Merge order: glassflow/rius-sdk-python#69 first, then this — the semconv-parity check regenerates
tests/fixtures/semconv.jsonfrom 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 openrelease 0.4.0/release 0.13.0PRs so the old attribute never reaches a registry.239 passed, biome clean, build clean.