Commit 08c6611
authored
Stabilize complex AnyValue types and related attribute limits (#4794)
Fixes #4710
OTEP #4485 (Extending attributes to support complex values)
## What
Stabilize the complex `AnyValue` attribute value types and the
corresponding attribute limits.
Simplifiy the Logs Data Model to rely on `AnyValue` and Attribute
Collections instead of custom `any` / `map<string, any>` types.
## Why
Per the OTEP-implementing PR
[#4485](#4485)
tht was merged on **2025‑07‑15**, so the 6‑month window ends around
**2026‑01‑15**. This PR is intended to be merged around **2026‑01‑15**,
in line with that requirement.
> Stable exporters will be prohibited from emitting complex attributes
by default on signals other than Logs until at least 6 months after this
OTEP is merged.
OpenTelemetry **Go** and **Java** treat the common package as a **stable
cross‑cutting surface**. They need these `AnyValue` types and limits to
be Stable in the spec before they can add corresponding features to
their APIs, SDKs, and exporters.
## Prototypes
We have **three independent prototypes** that exercised the complex
`AnyValue` attribute types and limits:
- Java: open-telemetry/opentelemetry-java#7814 (
- Python:
open-telemetry/opentelemetry-python#4587
- Go: open-telemetry/opentelemetry-go#6809
In summary, they:
1. Validated that complex attributes can be represented and processed
end‑to‑end using `AnyValue`.
2. Confirmed that the specified attribute limits (length and count) are
acceptable.
3. Demonstrated that existing implementations can adopt complex
attributes without breaking current stable behavior.
## Other
I was thinking about adding something to `spec-compliance-matrix.md`,
but I do not see any obvious place where it could be located. I think we
can tackle it in a separate PR if there would be a demand for it.
EDIT: Tracked under
#48081 parent 837b2f1 commit 08c6611
File tree
3 files changed
+20
-58
lines changed- specification
- common
- logs
3 files changed
+20
-58
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
52 | 55 | | |
53 | 56 | | |
54 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
74 | | - | |
75 | 73 | | |
76 | 74 | | |
77 | 75 | | |
| |||
181 | 179 | | |
182 | 180 | | |
183 | 181 | | |
184 | | - | |
| 182 | + | |
185 | 183 | | |
186 | 184 | | |
187 | 185 | | |
188 | 186 | | |
189 | | - | |
| 187 | + | |
190 | 188 | | |
191 | | - | |
| 189 | + | |
192 | 190 | | |
193 | 191 | | |
194 | 192 | | |
195 | 193 | | |
196 | 194 | | |
197 | 195 | | |
198 | 196 | | |
199 | | - | |
| 197 | + | |
200 | 198 | | |
201 | 199 | | |
202 | 200 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | 18 | | |
22 | 19 | | |
23 | 20 | | |
| |||
112 | 109 | | |
113 | 110 | | |
114 | 111 | | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | 112 | | |
153 | 113 | | |
154 | 114 | | |
| |||
157 | 117 | | |
158 | 118 | | |
159 | 119 | | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
165 | 126 | | |
166 | 127 | | |
167 | 128 | | |
| |||
173 | 134 | | |
174 | 135 | | |
175 | 136 | | |
176 | | - | |
| 137 | + | |
177 | 138 | | |
178 | 139 | | |
179 | 140 | | |
| |||
430 | 391 | | |
431 | 392 | | |
432 | 393 | | |
433 | | - | |
| 394 | + | |
434 | 395 | | |
435 | 396 | | |
436 | 397 | | |
| |||
465 | 426 | | |
466 | 427 | | |
467 | 428 | | |
468 | | - | |
| 429 | + | |
469 | 430 | | |
470 | 431 | | |
471 | 432 | | |
| |||
0 commit comments