-
Notifications
You must be signed in to change notification settings - Fork 933
[EndGoal] [DoNotMerge] Extend the set of attribute value types #4636
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This reverts commit c17aec6.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR extends the OpenTelemetry attribute value types by replacing limited "standard attributes" with a more comprehensive "attribute" definition that supports complex values. The changes align with OTEP 4485 and related specifications to support arrays, maps, byte arrays, and empty values in addition to primitive types.
- Replaces references to "standard attribute" with "attribute" throughout the specification
- Updates attribute type definitions to use AnyValue instead of restricted primitive types
- Consolidates attribute value type definitions by removing duplicate type definitions from logs data model
- Updates attribute limits to handle complex value types including recursive application to nested structures
Reviewed Changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.
Show a summary per file
File | Description |
---|---|
specification/common/README.md | Major restructuring to define AnyValue and comprehensive attribute types, consolidating previously scattered definitions |
specification/logs/data-model.md | Removes duplicate type definitions and updates references to use centralized AnyValue definition |
specification/logs/api.md | Removes outdated status section about standard attribute conversion |
specification/resource/data-model.md | Updates attribute type references from "standard attribute value" to "attribute value" |
specification/resource/sdk.md | Updates documentation link text from "standard attributes" to "attributes" |
specification/entities/data-model.md | Updates entity field types to use general attribute definition instead of restricted types |
specification/common/attribute-type-mapping.md | Adds empty value conversion rules for AnyValue |
oteps/entities/0256-entities-data-model.md | Updates broken internal links to use versioned external links |
oteps/4485-extending-attributes-to-support-complex-values.md | Fixes broken internal link reference |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
This PR was marked stale due to lack of activity. It will be closed in 7 days. |
This PR was marked stale due to lack of activity. It will be closed in 7 days. |
Related proto PR: open-telemetry/opentelemetry-proto#707
Towards #4602
Towards #4487
Follows #4614
See Copilot's description: #4636 (review)
https://github.com/open-telemetry/opentelemetry-specification/blob/main/oteps/4485-extending-attributes-to-support-complex-values.md#how describes how languages should add support for new attribute value types.
This also proposes minimal changes for the attribute limits: https://github.com/open-telemetry/opentelemetry-specification/blob/main/oteps/4485-extending-attributes-to-support-complex-values.md#attribute-limits.