Skip to content

Commit

Permalink
Update pkg/ottl/contexts/ottlspanevent/span_events.go
Browse files Browse the repository at this point in the history
Co-authored-by: Evan Bradley <[email protected]>
  • Loading branch information
bacherfl and evan-bradley authored Jan 10, 2025
1 parent 9be8cbf commit 98bb6c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ottl/contexts/ottlspanevent/span_events.go
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ func accessSpanEventIndex() ottl.StandardGetSetter[TransformContext] {
return tCtx.eventIndex, nil
},
Setter: func(_ context.Context, _ TransformContext, _ any) error {
return nil
return errors.New("the 'event_index' path cannot be modified")
},
}
}

0 comments on commit 98bb6c6

Please sign in to comment.