Skip to content

Commit 889e631

Browse files
Merge branch 'main' into fix/47193
2 parents 7ee5295 + 5acf7cd commit 889e631

23 files changed

Lines changed: 552 additions & 336 deletions

File tree

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
change_type: breaking
2+
component: pkg/ottl
3+
note: Return errors when OTTL context accessors receive values of the wrong type (part 2)
4+
issues: [40198]
5+
subtext: |
6+
Setters in OTTL contexts now validate that values are of the expected type and return
7+
descriptive errors when type mismatches occur. This is the continuation of work done in
8+
\#43505, addressing remaining contexts: datapoint, profile, profilesample, resource, span,
9+
and spanevent.
10+
11+
Changes include:
12+
- Slice setters (explicit_bounds, bucket_counts, positive.bucket_counts, negative.bucket_counts)
13+
now use SetCommonTypedSliceValues/SetCommonIntSliceValues for better type handling.
14+
- SetMap now returns an error for invalid value types instead of silently ignoring them.
15+
16+
**Note:** Users may see new errors from OTTL statements that were previously silently failing
17+
due to type mismatches. These errors indicate pre-existing issues in OTTL configurations that
18+
were not being applied as expected.
19+
change_logs: [api, user]

0 commit comments

Comments
 (0)