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

httpclient: add count_bytes_reader #1065

Merged
merged 1 commit into from
Aug 28, 2024
Merged

Conversation

gabor
Copy link
Contributor

@gabor gabor commented Aug 28, 2024

this reader is moved here from grafana/grafana : https://github.com/grafana/grafana/blob/af976c9a0b7efe64f72d92cba6b85c33e1184da4/pkg/infra/httpclient/count_bytes_reader.go#L12

(license change approved)

(see related grafana/grafana PR at grafana/grafana#92553 )

the reason is that we're planning to add logging of response-sizes to the plugin-sdk-go, and for that we need to use this reader. (see #1054 (review) for more info)

@gabor gabor marked this pull request as ready for review August 28, 2024 08:26
@gabor gabor requested a review from a team as a code owner August 28, 2024 08:26
@gabor gabor requested review from wbrowne, marefr and oshirohugo and removed request for a team August 28, 2024 08:26
Copy link
Contributor

@andresmgot andresmgot left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@marefr marefr left a comment

Choose a reason for hiding this comment

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

LGTM

@gabor gabor merged commit f1cb16c into main Aug 28, 2024
3 checks passed
@gabor gabor deleted the gabor/move-count-bytes-reader branch August 28, 2024 11:30
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.

3 participants