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

model: Remove json-iterator usage (again) #453

Merged
merged 1 commit into from
Mar 1, 2023
Merged

model: Remove json-iterator usage (again) #453

merged 1 commit into from
Mar 1, 2023

Conversation

beorn7
Copy link
Member

@beorn7 beorn7 commented Feb 23, 2023

This seemingly undoes #440, but all the json-iterator usage was actually pulled up into client_golang in
prometheus/client_golang#1225 . Detailed explanation there. In short, we would like to keep heavy dependencies like json-iterator out of prometheus/common/model since many importers of this package aren't even interested in the JSON marshaling.

@beorn7 beorn7 requested a review from codesome February 23, 2023 22:07
@beorn7
Copy link
Member Author

beorn7 commented Feb 23, 2023

@zenador as discussed. I believe, together with prometheus/client_golang#1225 , this should still work out in Mimir. To try it out, just make sure you have vendored in both PRs.

@SuperQ
Copy link
Member

SuperQ commented Feb 25, 2023

This needs a rebase to update the go.sum.

This seemingly undoes #440, but all the json-iterator usage was
actually pulled up into client_golang in
prometheus/client_golang#1225 . Detailed
explanation there. In short, we would like to keep heavy dependencies
like json-iterator out of prometheus/common/model since many importers
of this package aren't even interested in the JSON marshaling.

Signed-off-by: beorn7 <beorn@grafana.com>
@beorn7
Copy link
Member Author

beorn7 commented Feb 28, 2023

OK, rebased. I will only merge this once prometheus/client_golang#1225 is approved.

@beorn7
Copy link
Member Author

beorn7 commented Mar 1, 2023

With prometheus/client_golang#1225 approved, I'll execute the following steps now:

@beorn7 beorn7 merged commit 94c865c into main Mar 1, 2023
@beorn7 beorn7 deleted the beorn7/model branch March 1, 2023 16:11
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

4 participants