Skip to content

Conversation

pawels-optimizely
Copy link
Contributor

No description provided.

# Conflicts:
#	pkg/api/middleware/metrics.go
#	pkg/api/middleware/metrics_test.go
#	pkg/api/router.go
@codecov
Copy link

codecov bot commented Nov 6, 2019

Codecov Report

Merging #66 into master will increase coverage by 0.08%.
The diff coverage is 83.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #66      +/-   ##
==========================================
+ Coverage   74.16%   74.24%   +0.08%     
==========================================
  Files          19       19              
  Lines         507      528      +21     
==========================================
+ Hits          376      392      +16     
- Misses        109      114       +5     
  Partials       22       22
Impacted Files Coverage Δ
pkg/api/router.go 70.83% <100%> (+1.26%) ⬆️
pkg/api/middleware/metrics.go 82.14% <78.26%> (-17.86%) ⬇️

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 4afa376...be3cbf5. Read the comment docs.

Copy link
Contributor

@mikecdavis mikecdavis left a comment

Choose a reason for hiding this comment

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

It's looking good, but I think we can simplify things a bit by removing the MetricsCollection and explicitly naming the metrics as opposed to computing them from the request.

Copy link
Contributor

@mikecdavis mikecdavis left a comment

Choose a reason for hiding this comment

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

Approved!! Looks good, but maybe change the name from "UpdateRouteMetrics(...)" to "Metrics(...)" or something.

@pawels-optimizely pawels-optimizely merged commit 8fbdd90 into master Nov 7, 2019
@pawels-optimizely pawels-optimizely deleted the pawel/OASIS-5346 branch November 7, 2019 00:08
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.

2 participants