Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: support indexing more types #36401

Merged
merged 6 commits into from
Nov 19, 2024

Conversation

znd4
Copy link
Contributor

@znd4 znd4 commented Nov 16, 2024

Description

Bugfix: support indexing more types

Important

I'm not sure if this should support indexing into slices of byte or []byte (I've gone with []byte for now

Link to tracking issue

Fixes #29441

Testing

currently running make gotest (it's taking longer than I expected). I noticed that #35581 added to e2e_test.go. I can add a test case there, but it'll take me a bit longer to grok how those are working

Update: I'm currently getting make gotest failures on main from internal/scraper/processscraper

Documentation

changelog

@znd4
Copy link
Contributor Author

znd4 commented Nov 16, 2024

Ah, sorry I didn't get how to run just the pkg tests, and one of the other groups was causing make gotest to fail early (guessing b.c. I'm on darwin)

@znd4
Copy link
Contributor Author

znd4 commented Nov 16, 2024

@TylerHelmuth , successfully passed the unit tests now with make gotest GROUP=pkg. Sorry for the iteration

.chloggen/index_more_types.yaml Outdated Show resolved Hide resolved
.chloggen/index_more_types.yaml Outdated Show resolved Hide resolved
@evan-bradley evan-bradley merged commit b14f1d4 into open-telemetry:main Nov 19, 2024
158 checks passed
@github-actions github-actions bot added this to the next release milestone Nov 19, 2024
sbylica-splunk pushed a commit to sbylica-splunk/opentelemetry-collector-contrib that referenced this pull request Dec 17, 2024
Co-authored-by: Tyler Helmuth <12352919+TylerHelmuth@users.noreply.github.com>
Co-authored-by: Evan Bradley <11745660+evan-bradley@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[pkg/ottl] Allow indexing any slice type
4 participants