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

Don't use map/flatMapErrorThrowing in Metrics middleware #88

Merged
merged 1 commit into from
May 21, 2021

Conversation

adam-fowler
Copy link
Member

No need to have the metrics middleware hold up the response. It can use whenComplete. This should also reduce the number of allocations.

No need to have the metrics middleware hold up the response. It can use `whenComplete`. This should also reduce the number of allocations.
@codecov
Copy link

codecov bot commented May 21, 2021

Codecov Report

Merging #88 (11d40f3) into main (960603b) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #88      +/-   ##
==========================================
+ Coverage   81.94%   81.96%   +0.01%     
==========================================
  Files          53       53              
  Lines        2548     2550       +2     
==========================================
+ Hits         2088     2090       +2     
  Misses        460      460              
Impacted Files Coverage Δ
...ces/Hummingbird/Middleware/MetricsMiddleware.swift 100.00% <100.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 960603b...11d40f3. Read the comment docs.

@adam-fowler adam-fowler merged commit 1cf420d into main May 21, 2021
@adam-fowler adam-fowler deleted the metrics-middleware-optimization branch May 21, 2021 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.

None yet

1 participant