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

examples/actix-web.rs: Default enable compress middleware. #192

Merged
merged 1 commit into from Mar 31, 2024

Conversation

jpds
Copy link
Contributor

@jpds jpds commented Mar 28, 2024

No description provided.

@mxinden
Copy link
Member

mxinden commented Mar 28, 2024

Thank you for the proposal.

I still remember compression not being a silver bullet. E.g. see kubernetes/kube-state-metrics#498.

Is this the default in other client libraries? Have you done any measurements with and without?

@jpds
Copy link
Contributor Author

jpds commented Mar 29, 2024

This is the default in the Go library: https://github.com/prometheus/client_golang/blob/93cf5d4f5f78058ef0e5fe5fbf597de2084c64fd/prometheus/promhttp/http.go#L172-L175 - I haven't done any measurements yet.

Copy link
Member

@mxinden mxinden 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 the link.

This looks good to me. Can you please fix the cargo fmt failure?

Signed-off-by: Jonathan Davies <jpds@protonmail.com>
Copy link
Member

@mxinden mxinden left a comment

Choose a reason for hiding this comment

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

🙏

@mxinden mxinden merged commit b462e61 into prometheus:master Mar 31, 2024
10 checks passed
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