Commit Graph

236 Commits

Author SHA1 Message Date
Steve
63b6d89caa Update prom-client to v15 2024-01-05 23:58:13 +01:00
Konstantin Pogorelov
5e2b284903 Merge pull request #102 from Cellaryllis/normalize-path-example-3
Add another example for normalizePath
2024-01-05 23:46:43 +01:00
Konstantin Pogorelov
c693affcac Merge pull request #120 from petuomin/statuscode-for-request-closed-prematurely
Use statuscode 499 for requests that are closed before response is sent
2024-01-05 23:45:10 +01:00
Konstantin Pogorelov
a0eef5d0e2 switch from dtslint to tsd, update required node to >=18, bump version to 7.0.0 2024-01-05 22:04:31 +01:00
Pasi Tuominen
efbab7dcdb Use statuscode 499 for requests that are closed before response is sent
This happens, for example, when a http proxy in front of the application is configured with a timeout and the node server is too slow to respond.

Currently such timeouts are counted as 200s by express-prom-bundle. This PR changes that to 499 "Client Closed Request". This way it's possible to tell them apart.
2023-05-05 14:49:02 +03:00
Konstantin Pogorelov
0bda9934c1 bump 6.6.0 6.6.0 2022-12-15 09:18:12 +01:00
Konstantin Pogorelov
5bf6b153e6 Merge pull request #110 from ineentho/bypass-on-finish
Add new option bypassOnFinish, for when response is required in bypass callback
2022-12-15 09:14:12 +01:00
Henrik Karlsson
1171fb5be1 Combined bypass and bypassOnFinish into one option 2022-12-14 17:02:54 +01:00
Henrik Karlsson
ea9f34aa3e Add new option bypassOnFinish, for when response is required in bypass callback 2022-12-09 17:45:27 +01:00
Cellaryllis
c541824657 Move details below example 2 2022-07-12 10:18:11 +01:00
Cellaryllis
7eae5d4b7f Add another example for normalizePath 2022-07-12 10:15:47 +01:00
Konstantin Pogorelov
93b0e8fafe bump 6.5.0 6.5.0 2022-06-18 12:24:50 +02:00
Konstantin Pogorelov
2d2b253567 minor codestyle fixes, turn async/await in metricsApp into a conventional promise 2022-06-18 12:23:59 +02:00
Konstantin Pogorelov
1b52c6f46e Merge pull request #101 from derangeddk/add-metricsapp-option
Add metricsapp option
2022-06-18 12:08:49 +02:00
Asbjørn Dyhrberg Thegler
2293d1cd40 Remove exclusive test running
Silly me
2022-06-17 21:19:53 +02:00
Asbjørn Dyhrberg Thegler
1ee094eb04 Add jasmine test 2022-06-17 21:01:14 +02:00
Asbjørn Dyhrberg Thegler
a1284ec3e5 Add test for typings 2022-06-17 21:01:03 +02:00
Asbjørn Dyhrberg Thegler
5a1efd7fe6 Add typings 2022-06-17 20:42:35 +02:00
Asbjørn Dyhrberg Thegler
bcac9f523a Add option to README 2022-06-17 13:42:54 +02:00
Asbjørn Dyhrberg Thegler
c4be86b651 Add metricsApp option
Lets you supply an additional express app on which to mount the metrics 
endpoint
2022-06-17 13:41:36 +02:00
Konstantin Pogorelov
5e5a47a500 Merge pull request #97 from diegoximenes/fix/cluster_example
Fix cluster example
2021-10-26 09:23:45 +02:00
Diego Ximenes
426e4d4556 Fix cluster example 2021-10-26 01:47:19 -03:00
Konstantin Pogorelov
78ebb06a6d bump 6.4.1 6.4.1 2021-08-17 10:49:06 +03:00
Konstantin Pogorelov
c6d2210062 add urlPathReplacement to types, see #75 2021-08-17 10:37:12 +03:00
Konstantin Pogorelov
c436fa3c88 bump 6.4.0 6.4.0 2021-08-17 10:11:59 +03:00
Konstantin Pogorelov
77b02c7302 add README docs for urlPathReplacement, see #75 2021-08-17 10:11:10 +03:00
Konstantin Pogorelov
068ed93a61 Merge pull request #87 from prabhumarappan/add-url-value-replacement
Added replacement option for path
2021-08-17 10:03:20 +03:00
Konstantin Pogorelov
c5aa3f7388 Merge pull request #89 from jochen-schweizer/dependabot/npm_and_yarn/path-parse-1.0.7
Bump path-parse from 1.0.6 to 1.0.7
2021-08-17 10:01:56 +03:00
Konstantin Pogorelov
ca28ff4fe1 Merge pull request #85 from jochen-schweizer/dependabot/npm_and_yarn/lodash-4.17.21
Bump lodash from 4.17.19 to 4.17.21
2021-08-17 10:01:10 +03:00
Konstantin Pogorelov
52f47ed9f4 Merge pull request #84 from jochen-schweizer/dependabot/npm_and_yarn/handlebars-4.7.7
Bump handlebars from 4.7.6 to 4.7.7
2021-08-17 10:00:53 +03:00
Konstantin Pogorelov
a60996ebc3 Merge pull request #93 from RyanBard/update_types_with_exclude_routes
closes #92: Add excludeRoutes to types
2021-08-16 08:58:00 +03:00
Ryan Bard
e7c94ff307 closes #92: Add excludeRoutes to types
Signed-off-by: Ryan Bard <john.ryan.bard@gmail.com>
2021-08-15 20:04:26 -04:00
dependabot[bot]
884617bffe Bump path-parse from 1.0.6 to 1.0.7
Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/jbgutierrez/path-parse/releases)
- [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7)

---
updated-dependencies:
- dependency-name: path-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-10 17:34:10 +00:00
Prabhu Marappan
32b76d0970 Added replacement option for path 2021-06-06 16:51:53 +05:30
dependabot[bot]
845cd6ee46 Bump lodash from 4.17.19 to 4.17.21
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.19 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.19...4.17.21)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-06 21:16:33 +00:00
dependabot[bot]
0c3c949425 Bump handlebars from 4.7.6 to 4.7.7
Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.7.6 to 4.7.7.
- [Release notes](https://github.com/wycats/handlebars.js/releases)
- [Changelog](https://github.com/handlebars-lang/handlebars.js/blob/master/release-notes.md)
- [Commits](https://github.com/wycats/handlebars.js/compare/v4.7.6...v4.7.7)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-06 17:31:28 +00:00
Konstantin Pogorelov
1ec800cde7 bump 6.3.6 6.3.6 2021-04-03 10:46:38 +02:00
Konstantin Pogorelov
661e7d5092 add types for metricType: summary 2021-04-03 10:39:46 +02:00
Konstantin Pogorelov
b569a71130 Merge pull request #83 from jochen-schweizer/dependabot/npm_and_yarn/y18n-4.0.1
Bump y18n from 4.0.0 to 4.0.1
2021-04-03 10:50:23 +02:00
dependabot[bot]
10c372c438 Bump y18n from 4.0.0 to 4.0.1
Bumps [y18n](https://github.com/yargs/y18n) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/yargs/y18n/releases)
- [Changelog](https://github.com/yargs/y18n/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yargs/y18n/commits)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-30 15:50:49 +00:00
Konstantin Pogorelov
3599c32876 bump 6.3.5 6.3.5 2021-03-28 21:59:44 +02:00
Konstantin Pogorelov
59ec729cb2 Merge pull request #81 from matheuslc/patch-1
Describes httpDurationMetricName option on README
2021-03-28 22:09:32 +02:00
Matheus Lucca do Carmo
c95cd1834c doc: Describes httpDurationMetricName option
Changing the name of the metric, you can use an already existent name and see your application in the same metric space.
2021-03-16 17:48:28 -03:00
Konstantin Pogorelov
d18316fee8 bump 6.3.4 6.3.4 2021-02-22 15:21:48 +01:00
Konstantin Pogorelov
ccb74f99b0 add an a sample with actual RegExp in advanced-example.js, relates to #80 2021-02-22 15:15:37 +01:00
Konstantin Pogorelov
2e093bc14d fix codestyle in types to keep dtslint happy, relates to #80 2021-02-22 15:15:00 +01:00
Konstantin Pogorelov
3f6b2746b9 Merge pull request #80 from thewizarodofoz/patch-1
urlValueParser extra and replace masks can be regexp
2021-02-22 14:59:11 +01:00
Oz Weiss
83ee0ce06e urlValueParser extra and replace masks can be regexp
https://github.com/disjunction/url-value-parser/blob/master/src/ValueDetector.js#L39

`replaceMasks` and `extraMasks` which are passed down to `url-value-parser` can be either string or RegExp.
2021-02-22 10:48:58 +02:00
Konstantin Pogorelov
5300d0ef82 bump 6.3.3 6.3.3 2021-02-19 12:46:56 +01:00
Konstantin Pogorelov
62abb62772 suppress error logging by providing NODE_ENV=test, relates to #78 2021-02-19 12:42:27 +01:00