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

chore(v2): simplify metadata labels #4004

Merged
merged 2 commits into from
Mar 13, 2025
Merged

Conversation

kolesnikovae
Copy link
Collaborator

@kolesnikovae kolesnikovae commented Mar 13, 2025

The change makes working with metadata labels easier.

@kolesnikovae kolesnikovae changed the title chore(v2): simplify metadata labels builder chore(v2): simplify metadata labels Mar 13, 2025
lb.WithConstantPairs(pairs...)
lb.CreateLabels()
return lb.Build()
func FindDatasets(md *metastorev1.BlockMeta, matchers ...*labels.Matcher) (fn func(yield func(*metastorev1.Dataset) bool)) {
Copy link
Collaborator Author

@kolesnikovae kolesnikovae Mar 13, 2025

Choose a reason for hiding this comment

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

This is an example of go 1.23 iter.Seq (we should upgrade to 1.23)

@kolesnikovae kolesnikovae requested a review from marcsanmi March 13, 2025 06:17
@kolesnikovae kolesnikovae marked this pull request as ready for review March 13, 2025 06:29
@kolesnikovae kolesnikovae requested a review from a team as a code owner March 13, 2025 06:29
Copy link
Contributor

@marcsanmi marcsanmi 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 making it easier to use :)

@kolesnikovae kolesnikovae merged commit a5b7504 into main Mar 13, 2025
20 checks passed
@kolesnikovae kolesnikovae deleted the chore/simplify-metadata-labels branch March 13, 2025 09:49
shelldandy pushed a commit to shelldandy/pyroscope that referenced this pull request Mar 14, 2025
* chore(v2): simplify metadata labels builder

* chore(v2): add FindDatasets helper
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants