Skip to content

[pkg/ottl] Add support for setting maps in Values#16352

Merged
codeboten merged 3 commits into
open-telemetry:mainfrom
TylerHelmuth:ottl-handle-maps
Nov 18, 2022
Merged

[pkg/ottl] Add support for setting maps in Values#16352
codeboten merged 3 commits into
open-telemetry:mainfrom
TylerHelmuth:ottl-handle-maps

Conversation

@TylerHelmuth

@TylerHelmuth TylerHelmuth commented Nov 17, 2022

Copy link
Copy Markdown
Member

Description:
Adds support for setting maps in Values. The primary impact is the ability for contexts to set maps as attribute values.

Link to tracking Issue:
Closes #16337

Testing:
Added unit tests

@evan-bradley evan-bradley left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. One thing I think we should also support are maps with typed values, but that doesn't block this PR.

Comment thread pkg/ottl/contexts/internal/ottlcommon/value.go

@kentquirk kentquirk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I very much support this, and I think it should be merged before #16340.

@TylerHelmuth TylerHelmuth added the ready to merge Code review completed; ready to merge by maintainers label Nov 18, 2022
@codeboten codeboten merged commit 303f19e into open-telemetry:main Nov 18, 2022
@TylerHelmuth TylerHelmuth deleted the ottl-handle-maps branch November 18, 2022 18:52
JaredTan95 pushed a commit to openinsight-proj/opentelemetry-collector-contrib that referenced this pull request Nov 21, 2022
 Adds support for setting maps in Values. The primary impact is the ability for contexts to set maps as attribute values.
shalper2 pushed a commit to shalper2/opentelemetry-collector-contrib that referenced this pull request Dec 6, 2022
 Adds support for setting maps in Values. The primary impact is the ability for contexts to set maps as attribute values.
@plantfansam plantfansam mentioned this pull request Jul 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg/ottl ready to merge Code review completed; ready to merge by maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[pkg/ottl] Update contexts to properly handle map values in attributes

5 participants