Skip to content

Conversation

@odeke-em
Copy link
Member

@odeke-em odeke-em commented Apr 1, 2021

Fixes a leak in HTTP responses after sending protobuf payloads
to Amazon's endpoints. This change ensures that connections
can be successfully reused, otherwise without invoking .Close()
they won't easily be reused.
Discovered while investigating for anything that could be averse
to scalability of the exporter.

Fixes #2874

/cc @Aneurysm9 @rakyll @alolita

Fixes a leak in HTTP responses after sending protobuf payloads
to Amazon's endpoints. This change ensures that connections
can be successfully reused, otherwise without invoking .Close()
they won't easily be reused.
Discovered while investigating for anything that could be averse
to scalability of the exporter.

Fixes open-telemetry#2874
@odeke-em odeke-em requested a review from a team April 1, 2021 01:25
@codecov
Copy link

codecov bot commented Apr 1, 2021

Codecov Report

Merging #2875 (b665547) into main (1edaf40) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2875   +/-   ##
=======================================
  Coverage   91.77%   91.77%           
=======================================
  Files         286      286           
  Lines       15087    15088    +1     
=======================================
+ Hits        13846    13847    +1     
- Misses        848      849    +1     
+ Partials      393      392    -1     
Impacted Files Coverage Δ
exporter/prometheusremotewriteexporter/exporter.go 89.33% <100.00%> (+0.07%) ⬆️
testutil/testutil.go 81.60% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1edaf40...b665547. Read the comment docs.

@bogdandrutu bogdandrutu merged commit a08a650 into open-telemetry:main Apr 1, 2021
@odeke-em odeke-em deleted the awsexporter-prometheus-close-HTTP-Response.Body branch April 1, 2021 13:39
pjanotti pushed a commit to pjanotti/opentelemetry-service that referenced this pull request Apr 6, 2021
…en-telemetry#2875)

Fixes a leak in HTTP responses after sending protobuf payloads
to Amazon's endpoints. This change ensures that connections
can be successfully reused, otherwise without invoking .Close()
they won't easily be reused.
Discovered while investigating for anything that could be averse
to scalability of the exporter.

Fixes open-telemetry#2874
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.

exporter/prometheusremotewriteexporter: missing HTTP body close in PrwExporter.execute

2 participants