Skip to content

ref(schema): Allow deprecated attributes with no replacement#115

Merged
lcian merged 2 commits intomainfrom
lcian/allow-removed
Sep 4, 2025
Merged

ref(schema): Allow deprecated attributes with no replacement#115
lcian merged 2 commits intomainfrom
lcian/allow-removed

Conversation

@lcian
Copy link
Member

@lcian lcian commented Sep 3, 2025

There are some cases where an attribute is completely removed from OTEL and has no direct replacement.
This is rare but can happen with attributes that are not stabilized.

For example, see the deprecated Gen AI attributes.
Some of them were deprecated and have no direct replacement.
It's suggested to use e.g. gen_ai.input.messages instead, which doesn't have the same semantic meaning and also requires a different format for attribute values.

We wouldn't want to mark e.g. gen_ai.input_messages as a replacement for gen_ai.prompt, as the former is more general and requires a different format for the values.

This extends the schema so that deprecation.replacement is nullable, allowing us to represent those cases.

Also fixes the type in scripts to correctly match the schema.

@lcian lcian merged commit 844fe66 into main Sep 4, 2025
5 checks passed
@lcian lcian deleted the lcian/allow-removed branch September 4, 2025 08:01
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.

2 participants