Skip to content

[processor/transform] Add ability to add element in array #37672

Closed as not planned
@adelbot

Description

@adelbot

Component(s)

No response

Is your feature request related to a problem? Please describe.

I use an attributes that it is an array.
The collector receive this attributes and i must add a new element into.

The transform with "set" update this attributes.
The insert seem not exist

Describe the solution you'd like

Before

scope = ["aaa"]

transform/scope:
error_mode: ignore
trace_statements:
- context: resource
statements:
- insert(attributes["scope"], ["xxx"] )

After

scope = [ "aaa","xxx"]

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions