Skip to content

Conversation

@rockdaboot
Copy link
Contributor

@rockdaboot rockdaboot commented May 8, 2025

Description

These functions have been requested here and here as prerequisite for OTTL attributes accessors for the profiles signal.

Also adds tests for GetMap(), that were missing.

Testing

Unit tests

@rockdaboot rockdaboot changed the title [pkg/ottl] Introduce ctxutil.GetMap() and ctxutil.GetMapKeyName() [chore] [pkg/ottl] Introduce ctxutil.GetMap() and ctxutil.GetMapKeyName() internal functions May 8, 2025
@rockdaboot rockdaboot marked this pull request as ready for review May 8, 2025 16:35
@rockdaboot rockdaboot requested a review from a team as a code owner May 8, 2025 16:35
Copy link
Contributor

@edmocosta edmocosta left a comment

Choose a reason for hiding this comment

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

Thanks for working on it and for adding the extra tests :)
I've left a few suggestions for your consideration.

@rockdaboot rockdaboot requested a review from edmocosta May 20, 2025 14:35
@rockdaboot rockdaboot requested a review from edmocosta May 21, 2025 10:24
Copy link
Contributor

@edmocosta edmocosta left a comment

Choose a reason for hiding this comment

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

Thank you for working on that! LGTM!

@edmocosta
Copy link
Contributor

@TylerHelmuth @evan-bradley, could you please review this PR whenever you get the chance?

@edmocosta
Copy link
Contributor

I think we're good to merge this one, it shouldn't affect existing behavior and is currenlty holding #39681 back. If needed, we can address any concern folks might have in a following PR. Thanks!

@edmocosta edmocosta added ready to merge Code review completed; ready to merge by maintainers and removed waiting-for-code-owners labels Jun 9, 2025
@andrzej-stencel andrzej-stencel merged commit ec280e5 into open-telemetry:main Jun 9, 2025
192 of 196 checks passed
@github-actions github-actions bot added this to the next release milestone Jun 9, 2025
rockdaboot added a commit to rockdaboot/opentelemetry-collector-contrib that referenced this pull request Jun 10, 2025
…yName()` internal functions (open-telemetry#39952)

These functions have been requested
[here](open-telemetry#39681 (comment))
and
[here](open-telemetry#39681 (comment))
as prerequisite for OTTL attributes accessors for the profiles signal.

Also adds tests for `GetMap()`, that were missing.

Unit tests

---------

Co-authored-by: Edmo Vamerlatti Costa <[email protected]>
dd-jasminesun pushed a commit to DataDog/opentelemetry-collector-contrib that referenced this pull request Jun 23, 2025
…yName()` internal functions (open-telemetry#39952)

#### Description
These functions have been requested
[here](open-telemetry#39681 (comment))
and
[here](open-telemetry#39681 (comment))
as prerequisite for OTTL attributes accessors for the profiles signal.

Also adds tests for `GetMap()`, that were missing.

#### Testing
Unit tests

---------

Co-authored-by: Edmo Vamerlatti Costa <[email protected]>
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.

4 participants