Skip to content

Conversation

bwplotka
Copy link
Member

@bwplotka bwplotka commented Feb 11, 2025

Simplified the interface given no one is using the return argument. Renamed for clarity too.

Found and discussed #15731 (comment)

This is a breaking change for downstream users. We are planning more changes too for efficiency.

@bwplotka bwplotka force-pushed the textparsemetric branch 3 times, most recently from fb29409 to 2bc541a Compare February 12, 2025 07:18
@bwplotka bwplotka requested a review from dgl as a code owner February 12, 2025 07:18
…(...)

Simplified the interface given no one is using the return argument.
Renamed for clarity too.

Found and discussed #15731 (comment)

Signed-off-by: bwplotka <bwplotka@gmail.com>
Signed-off-by: bwplotka <bwplotka@gmail.com>
Copy link
Member

@machine424 machine424 left a comment

Choose a reason for hiding this comment

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

lgtm, thanks.
We can always reconsider if downstream has no workaround.

@bwplotka bwplotka merged commit 00b69ef into main Feb 12, 2025
44 checks passed
@bwplotka bwplotka deleted the textparsemetric branch February 12, 2025 15:48
kylestang pushed a commit to kylestang/prometheus that referenced this pull request Feb 12, 2025
…(...) (prometheus#16012)

* model/textparse: Change parser interface Metric(...) string to Labels(...)

Simplified the interface given no one is using the return argument.
Renamed for clarity too.

Found and discussed prometheus#15731 (comment)

Signed-off-by: bwplotka <bwplotka@gmail.com>

* Fixed comments; optimized not needed copy for om and text.

Signed-off-by: bwplotka <bwplotka@gmail.com>

---------

Signed-off-by: bwplotka <bwplotka@gmail.com>
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.

2 participants