Skip to content

Commit

Permalink
version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
KarineValenca committed Nov 11, 2020
1 parent 116e3ea commit 7cb47ea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ In detail:
Add this package as a dependency:

```
npm i -P @labbsr0x/express-monitor@2.10.0
npm i -P @labbsr0x/express-monitor@2.11.0
```

## HTTP Metrics
Expand Down Expand Up @@ -153,6 +153,9 @@ const start = process.hrtime()
Monitor.collectDependencyTime("Google", "axios", response.status, method, path, "", start)
```
> :warning: **NOTE**:
> If the errorMessage param is not provided, the isError label is automatically set to false. Thus, is required to pass a value in the errorMessage param, in order to set the isError to true.
More details on how Prometheus works, you can find it [here](https://medium.com/@abilio.esteves/white-box-your-metrics-now-895a9e9d34ec).
# Example
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@labbsr0x/express-monitor",
"version": "2.10.0",
"version": "2.11.0",
"description": "A Prometheus middleware to add basic but very useful metrics for your Express JS app.",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down

0 comments on commit 7cb47ea

Please sign in to comment.