Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
026fad1
Add empty value to attribute
pellared Jul 17, 2025
1831164
Update changelog
pellared Jul 17, 2025
82e8913
toc
pellared Jul 17, 2025
9cab0c4
fix status
pellared Jul 17, 2025
85db60a
Remove the note that extending attributes is a breaking change
pellared Jul 17, 2025
eaea1ea
Update CHANGELOG.md
pellared Jul 17, 2025
25c2c25
Update specification/common/attribute-type-mapping.md
pellared Jul 18, 2025
d9ac9f7
Merge branch 'main' into empty-attr
pellared Jul 21, 2025
75b22ad
Merge branch 'main' into empty-attr
pellared Jul 21, 2025
c540098
revert breaking change note
pellared Jul 22, 2025
05fa307
Merge branch 'main' into empty-attr
pellared Aug 26, 2025
aa3c41c
remove changelog entry
pellared Aug 26, 2025
20043e3
remove "standard attribute" term
pellared Aug 26, 2025
bfaf650
merge log attributes and standard attribute types
pellared Aug 26, 2025
c17aec6
rename "Attribute Value" to "AnyValue"
pellared Aug 26, 2025
95b049b
mdlint
pellared Aug 26, 2025
b98d714
fix links
pellared Aug 26, 2025
e55416d
Apply suggestions from code review
pellared Aug 26, 2025
49b41b4
Revert "rename "Attribute Value" to "AnyValue""
pellared Aug 26, 2025
db81d62
toc
pellared Aug 26, 2025
ad10769
Update specification/common/README.md
pellared Aug 26, 2025
cc41e2f
Update specification/common/README.md
pellared Aug 26, 2025
8b029c8
propose Attribute Limits changes
pellared Aug 28, 2025
a5851af
format
pellared Aug 28, 2025
52ccb34
remove EOL
pellared Aug 28, 2025
9bd7de9
Merge branch 'main' into extend-attrs
pellared Aug 28, 2025
ecebf40
Update specification/common/README.md
pellared Aug 28, 2025
abfd063
Update specification/common/README.md
pellared Aug 28, 2025
cbe15f5
Apply code review suggestion
pellared Aug 28, 2025
7a3c387
Update specification/common/README.md
pellared Aug 28, 2025
f2a508b
format
pellared Aug 28, 2025
ee4d8ba
Update specification/common/README.md
pellared Aug 28, 2025
10400ef
add attribute count example
pellared Aug 28, 2025
f8236e7
format
pellared Aug 28, 2025
d7de5d0
Merge branch 'main' into extend-attrs
pellared Sep 3, 2025
5b46a71
add AnyValue and map<string, AnyValue>
pellared Sep 3, 2025
4a15e7c
update Attribute Limits
pellared Sep 3, 2025
552e997
fix toc
pellared Sep 3, 2025
b224937
fix limit rules
pellared Sep 3, 2025
9f04b58
make it development
pellared Sep 8, 2025
61a9a1b
fix OTEP hyperlink
pellared Sep 8, 2025
98fb4ae
fix logs API status
pellared Sep 8, 2025
f343e4e
Merge branch 'main' into extend-attrs-dev
pellared Sep 8, 2025
253949f
Apply suggestions from code review
pellared Sep 8, 2025
d246e63
Add changelog entry
pellared Sep 8, 2025
9e47faa
mdlint
pellared Sep 8, 2025
1ac516a
Remove "Reuse Standard Attribute" from spec compliance
pellared Sep 8, 2025
2dd712d
fmt
pellared Sep 8, 2025
0230f74
Merge branch 'main' into extend-attrs-dev
pellared Sep 8, 2025
a9b711d
Update specification/common/README.md
pellared Sep 9, 2025
a1493d4
Update specification/common/README.md
pellared Sep 9, 2025
df85700
Update specification/common/README.md
pellared Sep 9, 2025
708686e
Update specification/common/README.md
pellared Sep 9, 2025
af80d42
Update specification/common/README.md
pellared Sep 9, 2025
dca8512
toc
pellared Sep 9, 2025
ec94759
move note about deep nesting
pellared Sep 9, 2025
eee4182
Merge branch 'main' into extend-attrs-dev
pellared Sep 9, 2025
d4240f2
make compliance-matrix
pellared Sep 9, 2025
9b210ca
note that array and map values carry performance overhead
pellared Sep 9, 2025
851f426
update OTEP per feedback
pellared Sep 9, 2025
a5178c6
remove redundant section
pellared Sep 10, 2025
4f92d3d
Update 4485-extending-attributes-to-support-complex-values.md
pellared Sep 10, 2025
e3a1a65
Update specification/common/README.md
pellared Sep 18, 2025
bf19f4d
Merge branch 'main' into extend-attrs-dev
pellared Sep 23, 2025
d7d4eaa
Clarify that for attribute count limit only the top-level attributes …
pellared Sep 23, 2025
4d7c1da
Update oteps/4485-extending-attributes-to-support-complex-values.md
pellared Sep 23, 2025
4b69f1f
Merge branch 'main' into extend-attrs-dev
pellared Sep 23, 2025
d756e95
Update specification/common/README.md
pellared Sep 23, 2025
815cf8b
Update CHANGELOG.md
pellared Sep 23, 2025
1174a4a
Merge branch 'main' into extend-attrs-dev
pellared Sep 24, 2025
e1386ca
Define equality of map<string, AnyValue>
pellared Sep 24, 2025
703745c
Note that the limits apply only to attributes collections
pellared Sep 24, 2025
9c2136f
Merge branch 'main' into extend-attrs-dev
pellared Sep 25, 2025
0baa88c
Merge branch 'main' into extend-attrs-dev
pellared Oct 1, 2025
42bc422
Merge branch 'main' into extend-attrs-dev
pellared Oct 6, 2025
e11dd54
Merge branch 'main' into extend-attrs-dev
pellared Oct 6, 2025
6c8418e
Update specification/common/README.md
pellared Oct 6, 2025
6169089
Merge branch 'main' into extend-attrs-dev
pellared Oct 8, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ release.
([#4560](https://github.com/open-telemetry/opentelemetry-specification/pull/4560))
- ⚠️ **IMPORTANT**: Extending the set of standard attribute value types is no longer a breaking change.
([#4614](https://github.com/open-telemetry/opentelemetry-specification/pull/4614))
- Extend the set of attribute value types to support more complex data structures.
([#4651](https://github.com/open-telemetry/opentelemetry-specification/pull/4651))

### OTEPs

Expand Down
38 changes: 3 additions & 35 deletions oteps/4485-extending-attributes-to-support-complex-values.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ extending the standard attributes provides a more seamless and user-friendly API

Currently, the SDK specification has a clause that says extending
the set of standard attribute would be
[considered a breaking change](/specification/common/README.md#standard-attribute).
[considered a breaking change](https://github.com/open-telemetry/opentelemetry-specification/blob/v1.44.0/specification/common/README.md#standard-attribute).

We believe that removing this clause and extending standard
attributes can be done gracefully across the OpenTelemetry ecosystem
Expand Down Expand Up @@ -123,24 +123,7 @@ Existing APIs that create or add attributes will be extended to support
It's RECOMMENDED to expose an `AnyValue` type - the API representing complex or
simple attribute value for type checking, ergonomics, and performance reasons.

Exposing multiple types of attribute sets is NOT RECOMMENDED, such as having "ExtendedAttributes" in addition to "Attributes".

OTel API MUST support setting complex attributes on spans, logs, profiles,
span links, and as descriptive entity attributes.

OTel API MAY support setting complex attributes on metrics, resources,
instrumentation scope, span events, and as identifying entity attributes.

> [!NOTE]
> "MAY" is used here instead of "MUST" to give flexibility to dynamically
> typed language APIs since there are no concrete use cases at this time
> requiring complex attributes in these areas.
>
> Most likely statically typed languages will choose to support
> setting complex attributes uniformly everywhere.
>
> This requirement level could change from "MAY" to "MUST" in the future
> if we uncover use cases for complex attributes in these areas.
OTel API MUST support setting complex attributes.

API documentation and spec language around complex attributes SHOULD include
language similar to this:
Expand All @@ -152,22 +135,7 @@ language similar to this:

### SDK

OTel SDK MUST support setting complex attributes on spans, logs, profiles,
span links, and as descriptive entity attributes.

OTel SDK MAY support setting complex attributes on metrics, exemplars, resources,
instrumentation scope, span events, and as identifying entity attributes.

> [!NOTE]
> "MAY" is used here instead of "MUST" to give flexibility to dynamically
> typed language SDKs since there are no concrete use cases at this time
> requiring complex attributes in these areas.
>
> Most likely statically typed languages will choose to support
> setting complex attributes uniformly everywhere.
>
> This requirement level could change from "MAY" to "MUST" in the future
> if we uncover use cases for complex attributes in these areas.
OTel SDK MUST support setting complex attributes.

The SDK MUST support reading and modifying complex attributes during processing
whenever they are allowed on the API surface.
Expand Down
4 changes: 2 additions & 2 deletions oteps/entities/0256-entities-data-model.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ MAY change over the lifetime of the entity. MAY be empty. These
attributes are not part of entity's identity.
<p>
Follows <a
href="../../specification/logs/data-model.md#type-any">any</a>
href="https://github.com/open-telemetry/opentelemetry-specification/blob/v1.44.0/specification/logs/data-model.md#type-any">any</a>
value definition in the OpenTelemetry spec - it can be a scalar value,
byte array, an array or map of values. Arbitrary deep nesting of values
for arrays and maps is allowed.
Expand Down Expand Up @@ -682,7 +682,7 @@ There are a couple of reasons:
### Attribute Data Type

The data model requires the Attributes field to use the extended
[any](../../specification/logs/data-model.md#type-any)
[any](https://github.com/open-telemetry/opentelemetry-specification/blob/v1.44.0/specification/logs/data-model.md#type-any)
attribute values, that allows more complex data types. This is different from the data
type used by the Id field, which is more restricted in the shape.

Expand Down
1 change: 0 additions & 1 deletion spec-compliance-matrix.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,6 @@ Disclaimer: this list of features is still a work in progress, please refer to t
| LoggerProvider.Shutdown | | | + | | + | + | | + | | + | - | |
| LoggerProvider.ForceFlush | | | + | | + | + | | + | | + | - | |
| Logger.Emit(LogRecord) | | | + | | + | + | | + | | + | - | |
| Reuse Standard Attributes | X | + | | | | | | | | | | |
| LogRecord.Set EventName | | + | | | | | | | + | + | | |
| Logger.Enabled | X | + | | | | | | + | + | + | | |
| SimpleLogRecordProcessor | | | + | | + | + | | + | | + | | |
Expand Down
2 changes: 0 additions & 2 deletions spec-compliance-matrix/cpp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,6 @@ sections:
status: '+'
- name: Logger.Emit(LogRecord)
status: '+'
- name: Reuse Standard Attributes
status: '?'
- name: LogRecord.Set EventName
status: '+'
- name: Logger.Enabled
Expand Down
2 changes: 0 additions & 2 deletions spec-compliance-matrix/dotnet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,6 @@ sections:
status: '-'
- name: Logger.Emit(LogRecord)
status: '-'
- name: Reuse Standard Attributes
status: '?'
- name: LogRecord.Set EventName
status: '?'
- name: Logger.Enabled
Expand Down
2 changes: 0 additions & 2 deletions spec-compliance-matrix/erlang.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,6 @@ sections:
status: '?'
- name: Logger.Emit(LogRecord)
status: '?'
- name: Reuse Standard Attributes
status: '?'
- name: LogRecord.Set EventName
status: '?'
- name: Logger.Enabled
Expand Down
2 changes: 0 additions & 2 deletions spec-compliance-matrix/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,6 @@ sections:
status: '?'
- name: Logger.Emit(LogRecord)
status: '?'
- name: Reuse Standard Attributes
status: '+'
- name: LogRecord.Set EventName
status: '+'
- name: Logger.Enabled
Expand Down
2 changes: 0 additions & 2 deletions spec-compliance-matrix/java.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,6 @@ sections:
status: '+'
- name: Logger.Emit(LogRecord)
status: '+'
- name: Reuse Standard Attributes
status: '?'
- name: LogRecord.Set EventName
status: '?'
- name: Logger.Enabled
Expand Down
2 changes: 0 additions & 2 deletions spec-compliance-matrix/js.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,6 @@ sections:
status: '?'
- name: Logger.Emit(LogRecord)
status: '?'
- name: Reuse Standard Attributes
status: '?'
- name: LogRecord.Set EventName
status: '?'
- name: Logger.Enabled
Expand Down
2 changes: 0 additions & 2 deletions spec-compliance-matrix/php.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,6 @@ sections:
status: '+'
- name: Logger.Emit(LogRecord)
status: '+'
- name: Reuse Standard Attributes
status: '?'
- name: LogRecord.Set EventName
status: '?'
- name: Logger.Enabled
Expand Down
2 changes: 0 additions & 2 deletions spec-compliance-matrix/python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,6 @@ sections:
status: '+'
- name: Logger.Emit(LogRecord)
status: '+'
- name: Reuse Standard Attributes
status: '?'
- name: LogRecord.Set EventName
status: '?'
- name: Logger.Enabled
Expand Down
2 changes: 0 additions & 2 deletions spec-compliance-matrix/ruby.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,6 @@ sections:
status: '+'
- name: Logger.Emit(LogRecord)
status: '+'
- name: Reuse Standard Attributes
status: '?'
- name: LogRecord.Set EventName
status: '?'
- name: Logger.Enabled
Expand Down
2 changes: 0 additions & 2 deletions spec-compliance-matrix/rust.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,6 @@ sections:
status: '?'
- name: Logger.Emit(LogRecord)
status: '?'
- name: Reuse Standard Attributes
status: '?'
- name: LogRecord.Set EventName
status: '+'
- name: Logger.Enabled
Expand Down
2 changes: 0 additions & 2 deletions spec-compliance-matrix/swift.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,6 @@ sections:
status: '?'
- name: Logger.Emit(LogRecord)
status: '?'
- name: Reuse Standard Attributes
status: '?'
- name: LogRecord.Set EventName
status: '?'
- name: Logger.Enabled
Expand Down
2 changes: 0 additions & 2 deletions spec-compliance-matrix/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,6 @@ sections:
- name: LoggerProvider.Shutdown
- name: LoggerProvider.ForceFlush
- name: Logger.Emit(LogRecord)
- name: Reuse Standard Attributes
optional: true
- name: LogRecord.Set EventName
- name: Logger.Enabled
optional: true
Expand Down
Loading
Loading