Skip to content

Commit

Permalink
update of readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Никита Кожушко committed Dec 11, 2020
1 parent e6c5af0 commit 0791b85
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ And the next steps are:
* metric - instance of `prometheus_client` metric object.
* metric_type - string with type.
* spent_time - time, that was spent on request. You may need it if you, for example, implementing Histogram metric.
* request - request object from app.

And now **IMPORTANT** remark - you *must* correctly invoke metric!
So if you, for example, chose `Counter` metric, in your custom function you must do `middleware_proxy.metric.labels(**res).inc()`,
Expand Down

0 comments on commit 0791b85

Please sign in to comment.