@lopatnov/express-reverse-proxy 1.0.1 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (863) hide show
  1. package/.git/COMMIT_EDITMSG +1 -1
  2. package/.git/FETCH_HEAD +6 -1
  3. package/.git/ORIG_HEAD +1 -1
  4. package/.git/index +0 -0
  5. package/.git/logs/HEAD +4 -0
  6. package/.git/logs/refs/heads/master +4 -0
  7. package/.git/logs/refs/remotes/origin/dependabot/npm_and_yarn/async-2.6.4 +1 -0
  8. package/.git/logs/refs/remotes/origin/dependabot/npm_and_yarn/follow-redirects-1.14.8 +1 -0
  9. package/.git/logs/refs/remotes/origin/dependabot/npm_and_yarn/follow-redirects-1.15.1 +1 -0
  10. package/.git/logs/refs/remotes/origin/dependabot/npm_and_yarn/minimist-1.2.6 +2 -0
  11. package/.git/logs/refs/remotes/origin/dependabot/npm_and_yarn/moment-2.29.4 +2 -0
  12. package/.git/logs/refs/remotes/origin/dependabot/npm_and_yarn/vm2-3.9.10 +1 -0
  13. package/.git/logs/refs/remotes/origin/dependabot/npm_and_yarn/vm2-3.9.7 +1 -0
  14. package/.git/logs/refs/remotes/origin/master +4 -0
  15. package/.git/objects/05/7279a8af3092f351c4ae469bd547adfc76f7a4 +0 -0
  16. package/.git/objects/05/c82a6f0ea9c0a164aad76ced44fec680b8604a +0 -0
  17. package/.git/objects/06/051cdbe81b43e531f1ca0fa765cb4c91d91ea1 +0 -0
  18. package/.git/objects/12/3d8423180da838ba0af1284aae79e1a955c98b +0 -0
  19. package/.git/objects/14/3d5eca2e4998e6899de6049e38b4bf2559e4e0 +0 -0
  20. package/.git/objects/16/a3a924f2a6924622e739eebe236ef713030c8b +0 -0
  21. package/.git/objects/1d/559712ab5ec703cf8e866b24b8dfb3b321ff03 +0 -0
  22. package/.git/objects/1f/4bda8b3565949d26f700322b343189d29bffdf +3 -0
  23. package/.git/objects/22/034a86b3f190407ef7a2c0eaf212ddaa686f16 +0 -0
  24. package/.git/objects/25/9462200ffecedc2eef36f888eb503e3f2e81ec +0 -0
  25. package/.git/objects/28/220d00bdbed408d7a98ece866fb5af1e7d1395 +0 -0
  26. package/.git/objects/33/f5906b4664855687be03e7d6d93092c9daf955 +0 -0
  27. package/.git/objects/39/fb332adf9703decb515ff845b2c93ee7bdd191 +0 -0
  28. package/.git/objects/3a/4d74b53dc2acdf09452ccf6c30100a929f557d +0 -0
  29. package/.git/objects/3b/f4ee4b9fb6b872ee61b1a392113d208ca7c762 +0 -0
  30. package/.git/objects/3f/8e368a352ad9a944b90208dee1188e4330a2f1 +1 -0
  31. package/.git/objects/44/e27cef5a809b8c2d36871c5193198142431a63 +0 -0
  32. package/.git/objects/4b/47d7aeb054f8ab581690b65dcb12308ba90b6c +0 -0
  33. package/.git/objects/5b/c7e4571e0196bc7913762a38c0698ab23b4b40 +0 -0
  34. package/.git/objects/5d/cc561a09ef24892a16f23881962624a126f9ca +0 -0
  35. package/.git/objects/5e/3da9aaf50f9faecdc9cb1ebeab3fba5a9e8fb4 +0 -0
  36. package/.git/objects/5f/7c7f1513de49814f849f66114759c6daef837d +0 -0
  37. package/.git/objects/64/967bb9704893349c92a31f5291fc0eb2c13fa9 +0 -0
  38. package/.git/objects/6e/22bebb02332d3ff461dca72d0ecb8f1d44835f +0 -0
  39. package/.git/objects/6f/220ef271ba804052014c8a5d406a1438efef64 +0 -0
  40. package/.git/objects/7f/3277bd2a1e2b01b395caf1e0e8999c1682c223 +0 -0
  41. package/.git/objects/83/5696f89cedc2214df0ffc788f08c4d58a97c95 +0 -0
  42. package/.git/objects/85/b13d9fef3c897366d43df137438cd28f915087 +0 -0
  43. package/.git/objects/95/d70526c36e8b3e5c814f64645623371d57946d +0 -0
  44. package/.git/objects/98/898b1fd7b14788c34282603fca629e813ba546 +0 -0
  45. package/.git/objects/9d/31d2fc81e780e5e2de1c51b8e705005e94d59d +0 -0
  46. package/.git/objects/a2/955bbd248d85219a4264c1b21dc7c2d0481d11 +0 -0
  47. package/.git/objects/a4/a1ac412998cdfe316b39e29e5462057602c1d6 +0 -0
  48. package/.git/objects/bb/269a37e471f96225f825accb8fec832556baeb +0 -0
  49. package/.git/objects/be/6b92cd3ae0f90b9b3fae0ca6661931dae6c83a +0 -0
  50. package/.git/objects/c0/e2ecce02f4d74977c088b07ddae70af1b0204b +0 -0
  51. package/.git/objects/ca/4942a1100642a56ccf314d1e9c4db6da1ee5d2 +0 -0
  52. package/.git/objects/cc/6904a6336d2a954e954bb0d1e50aea08c83494 +0 -0
  53. package/.git/objects/cd/084b222732a6e80a2440e9ecdd773aedb197e6 +0 -0
  54. package/.git/objects/d5/2717c6fd9c3deeb0ff98151d64927d2a6234c6 +0 -0
  55. package/.git/objects/d9/981364d8a15210123a3585846031c62eaecd8f +0 -0
  56. package/.git/objects/db/454cbee6da5938914837cda981dea069f7f409 +0 -0
  57. package/.git/objects/dd/b3b7a413e020bae0d7a4bec93871427e70d257 +0 -0
  58. package/.git/objects/e5/2673bb0d2f0856fee0cef63f2018cf38aaf12a +0 -0
  59. package/.git/objects/e9/bd949a381501bde67f21ba4d00c670cd65663c +0 -0
  60. package/.git/objects/eb/eb5a56b15dab25752fdaa5c407aa876cbf23b3 +0 -0
  61. package/.git/objects/ef/2403cca5e0283f168e74e1e0548f0bee6ba64b +5 -0
  62. package/.git/objects/ef/de9a8166073eaffcbdb334a63e93ab2e0e2bb2 +3 -0
  63. package/.git/objects/f1/8fc2e1985b84cd24de30829a7a4a9c691340c9 +0 -0
  64. package/.git/objects/f2/9fbde97f3b548ee6ec891b4b411707ebf0561a +0 -0
  65. package/.git/objects/f5/f2285b984ce7ef265cf79ce10ba51dcc9f9ad6 +0 -0
  66. package/.git/objects/fd/a93fd9e44b59cfec306dd85a72db21360569a4 +0 -0
  67. package/.git/refs/heads/master +1 -1
  68. package/.git/refs/remotes/origin/dependabot/npm_and_yarn/async-2.6.4 +1 -0
  69. package/.git/refs/remotes/origin/dependabot/npm_and_yarn/follow-redirects-1.14.8 +1 -0
  70. package/.git/refs/remotes/origin/dependabot/npm_and_yarn/follow-redirects-1.15.1 +1 -0
  71. package/.git/refs/remotes/origin/dependabot/npm_and_yarn/minimist-1.2.6 +1 -0
  72. package/.git/refs/remotes/origin/dependabot/npm_and_yarn/moment-2.29.4 +1 -0
  73. package/.git/refs/remotes/origin/dependabot/npm_and_yarn/vm2-3.9.10 +1 -0
  74. package/.git/refs/remotes/origin/dependabot/npm_and_yarn/vm2-3.9.7 +1 -0
  75. package/.git/refs/remotes/origin/master +1 -1
  76. package/.git/tortoisegit.data +0 -0
  77. package/.git/tortoisegit.index +0 -0
  78. package/README.md +39 -13
  79. package/node_modules/@eslint/eslintrc/LICENSE +21 -0
  80. package/node_modules/@eslint/eslintrc/README.md +61 -0
  81. package/node_modules/@eslint/eslintrc/conf/config-schema.js +79 -0
  82. package/node_modules/@eslint/eslintrc/conf/environments.js +179 -0
  83. package/node_modules/@eslint/eslintrc/conf/eslint-all.cjs +12 -0
  84. package/node_modules/@eslint/eslintrc/conf/eslint-recommended.cjs +12 -0
  85. package/node_modules/@eslint/eslintrc/lib/cascading-config-array-factory.js +520 -0
  86. package/node_modules/@eslint/eslintrc/lib/config-array/config-array.js +523 -0
  87. package/node_modules/@eslint/eslintrc/lib/config-array/config-dependency.js +115 -0
  88. package/node_modules/@eslint/eslintrc/lib/config-array/extracted-config.js +145 -0
  89. package/node_modules/@eslint/eslintrc/lib/config-array/ignore-pattern.js +238 -0
  90. package/node_modules/@eslint/eslintrc/lib/config-array/index.js +19 -0
  91. package/node_modules/@eslint/eslintrc/lib/config-array/override-tester.js +225 -0
  92. package/node_modules/@eslint/eslintrc/lib/config-array-factory.js +1103 -0
  93. package/node_modules/@eslint/eslintrc/lib/flat-compat.js +310 -0
  94. package/node_modules/@eslint/eslintrc/lib/index-universal.js +29 -0
  95. package/node_modules/@eslint/eslintrc/lib/index.js +56 -0
  96. package/node_modules/@eslint/eslintrc/lib/shared/ajv.js +191 -0
  97. package/node_modules/@eslint/eslintrc/lib/shared/config-ops.js +135 -0
  98. package/node_modules/@eslint/eslintrc/lib/shared/config-validator.js +325 -0
  99. package/node_modules/@eslint/eslintrc/lib/shared/deprecation-warnings.js +63 -0
  100. package/node_modules/@eslint/eslintrc/lib/shared/naming.js +96 -0
  101. package/node_modules/@eslint/eslintrc/lib/shared/relative-module-resolver.js +42 -0
  102. package/node_modules/@eslint/eslintrc/lib/shared/types.js +149 -0
  103. package/node_modules/@eslint/eslintrc/package.json +81 -0
  104. package/node_modules/@eslint/eslintrc/universal.js +9 -0
  105. package/node_modules/@humanwhocodes/config-array/CHANGELOG.md +9 -0
  106. package/node_modules/@humanwhocodes/config-array/LICENSE +201 -0
  107. package/node_modules/@humanwhocodes/config-array/README.md +266 -0
  108. package/node_modules/@humanwhocodes/config-array/api.js +523 -0
  109. package/node_modules/@humanwhocodes/config-array/package.json +61 -0
  110. package/node_modules/@humanwhocodes/object-schema/.eslintrc.js +29 -0
  111. package/node_modules/@humanwhocodes/object-schema/.github/workflows/nodejs-test.yml +27 -0
  112. package/node_modules/@humanwhocodes/object-schema/.github/workflows/release-please.yml +39 -0
  113. package/node_modules/@humanwhocodes/object-schema/CHANGELOG.md +8 -0
  114. package/node_modules/@humanwhocodes/object-schema/LICENSE +29 -0
  115. package/node_modules/@humanwhocodes/object-schema/README.md +234 -0
  116. package/node_modules/@humanwhocodes/object-schema/package.json +33 -0
  117. package/node_modules/@humanwhocodes/object-schema/src/index.js +7 -0
  118. package/node_modules/@humanwhocodes/object-schema/src/merge-strategy.js +53 -0
  119. package/node_modules/@humanwhocodes/object-schema/src/object-schema.js +235 -0
  120. package/node_modules/@humanwhocodes/object-schema/src/validation-strategy.js +102 -0
  121. package/node_modules/@humanwhocodes/object-schema/tests/merge-strategy.js +66 -0
  122. package/node_modules/@humanwhocodes/object-schema/tests/object-schema.js +611 -0
  123. package/node_modules/@humanwhocodes/object-schema/tests/validation-strategy.js +186 -0
  124. package/node_modules/@opencensus/core/LICENSE +202 -0
  125. package/node_modules/@opencensus/core/README.md +108 -0
  126. package/node_modules/@opencensus/core/build/src/common/console-logger.d.ts +60 -0
  127. package/node_modules/@opencensus/core/build/src/common/console-logger.js +97 -0
  128. package/node_modules/@opencensus/core/build/src/common/time-util.d.ts +41 -0
  129. package/node_modules/@opencensus/core/build/src/common/time-util.js +74 -0
  130. package/node_modules/@opencensus/core/build/src/common/types.d.ts +29 -0
  131. package/node_modules/@opencensus/core/build/src/common/types.js +18 -0
  132. package/node_modules/@opencensus/core/build/src/common/validations.d.ts +31 -0
  133. package/node_modules/@opencensus/core/build/src/common/validations.js +46 -0
  134. package/node_modules/@opencensus/core/build/src/common/version.d.ts +16 -0
  135. package/node_modules/@opencensus/core/build/src/common/version.js +24 -0
  136. package/node_modules/@opencensus/core/build/src/exporters/console-exporter.d.ts +70 -0
  137. package/node_modules/@opencensus/core/build/src/exporters/console-exporter.js +91 -0
  138. package/node_modules/@opencensus/core/build/src/exporters/exporter-buffer.d.ts +59 -0
  139. package/node_modules/@opencensus/core/build/src/exporters/exporter-buffer.js +104 -0
  140. package/node_modules/@opencensus/core/build/src/exporters/types.d.ts +52 -0
  141. package/node_modules/@opencensus/core/build/src/exporters/types.js +18 -0
  142. package/node_modules/@opencensus/core/build/src/index.d.ts +50 -0
  143. package/node_modules/@opencensus/core/build/src/index.js +59 -0
  144. package/node_modules/@opencensus/core/build/src/internal/clock.d.ts +43 -0
  145. package/node_modules/@opencensus/core/build/src/internal/clock.js +68 -0
  146. package/node_modules/@opencensus/core/build/src/internal/cls-ah.d.ts +20 -0
  147. package/node_modules/@opencensus/core/build/src/internal/cls-ah.js +128 -0
  148. package/node_modules/@opencensus/core/build/src/internal/cls.d.ts +28 -0
  149. package/node_modules/@opencensus/core/build/src/internal/cls.js +45 -0
  150. package/node_modules/@opencensus/core/build/src/internal/string-utils.d.ts +35 -0
  151. package/node_modules/@opencensus/core/build/src/internal/string-utils.js +49 -0
  152. package/node_modules/@opencensus/core/build/src/internal/util.d.ts +16 -0
  153. package/node_modules/@opencensus/core/build/src/internal/util.js +34 -0
  154. package/node_modules/@opencensus/core/build/src/metrics/export/base-metric-producer.d.ts +27 -0
  155. package/node_modules/@opencensus/core/build/src/metrics/export/base-metric-producer.js +25 -0
  156. package/node_modules/@opencensus/core/build/src/metrics/export/metric-producer-manager.d.ts +17 -0
  157. package/node_modules/@opencensus/core/build/src/metrics/export/metric-producer-manager.js +70 -0
  158. package/node_modules/@opencensus/core/build/src/metrics/export/types.d.ts +331 -0
  159. package/node_modules/@opencensus/core/build/src/metrics/export/types.js +69 -0
  160. package/node_modules/@opencensus/core/build/src/metrics/gauges/derived-gauge.d.ts +110 -0
  161. package/node_modules/@opencensus/core/build/src/metrics/gauges/derived-gauge.js +150 -0
  162. package/node_modules/@opencensus/core/build/src/metrics/gauges/gauge.d.ts +114 -0
  163. package/node_modules/@opencensus/core/build/src/metrics/gauges/gauge.js +162 -0
  164. package/node_modules/@opencensus/core/build/src/metrics/gauges/types.d.ts +45 -0
  165. package/node_modules/@opencensus/core/build/src/metrics/gauges/types.js +18 -0
  166. package/node_modules/@opencensus/core/build/src/metrics/metric-component.d.ts +29 -0
  167. package/node_modules/@opencensus/core/build/src/metrics/metric-component.js +40 -0
  168. package/node_modules/@opencensus/core/build/src/metrics/metric-registry.d.ts +93 -0
  169. package/node_modules/@opencensus/core/build/src/metrics/metric-registry.js +152 -0
  170. package/node_modules/@opencensus/core/build/src/metrics/metrics.d.ts +27 -0
  171. package/node_modules/@opencensus/core/build/src/metrics/metrics.js +35 -0
  172. package/node_modules/@opencensus/core/build/src/metrics/utils.d.ts +30 -0
  173. package/node_modules/@opencensus/core/build/src/metrics/utils.js +42 -0
  174. package/node_modules/@opencensus/core/build/src/resource/resource.d.ts +98 -0
  175. package/node_modules/@opencensus/core/build/src/resource/resource.js +167 -0
  176. package/node_modules/@opencensus/core/build/src/resource/types.d.ts +31 -0
  177. package/node_modules/@opencensus/core/build/src/resource/types.js +18 -0
  178. package/node_modules/@opencensus/core/build/src/stats/bucket-boundaries.d.ts +49 -0
  179. package/node_modules/@opencensus/core/build/src/stats/bucket-boundaries.js +90 -0
  180. package/node_modules/@opencensus/core/build/src/stats/metric-producer.d.ts +34 -0
  181. package/node_modules/@opencensus/core/build/src/stats/metric-producer.js +40 -0
  182. package/node_modules/@opencensus/core/build/src/stats/metric-utils.d.ts +40 -0
  183. package/node_modules/@opencensus/core/build/src/stats/metric-utils.js +83 -0
  184. package/node_modules/@opencensus/core/build/src/stats/recorder.d.ts +26 -0
  185. package/node_modules/@opencensus/core/build/src/stats/recorder.js +76 -0
  186. package/node_modules/@opencensus/core/build/src/stats/stats.d.ts +97 -0
  187. package/node_modules/@opencensus/core/build/src/stats/stats.js +169 -0
  188. package/node_modules/@opencensus/core/build/src/stats/types.d.ts +242 -0
  189. package/node_modules/@opencensus/core/build/src/stats/types.js +48 -0
  190. package/node_modules/@opencensus/core/build/src/stats/view.d.ts +119 -0
  191. package/node_modules/@opencensus/core/build/src/stats/view.js +194 -0
  192. package/node_modules/@opencensus/core/build/src/tags/tag-map.d.ts +26 -0
  193. package/node_modules/@opencensus/core/build/src/tags/tag-map.js +45 -0
  194. package/node_modules/@opencensus/core/build/src/tags/types.d.ts +25 -0
  195. package/node_modules/@opencensus/core/build/src/tags/types.js +18 -0
  196. package/node_modules/@opencensus/core/build/src/tags/validation.d.ts +20 -0
  197. package/node_modules/@opencensus/core/build/src/tags/validation.js +41 -0
  198. package/node_modules/@opencensus/core/build/src/trace/config/types.d.ts +82 -0
  199. package/node_modules/@opencensus/core/build/src/trace/config/types.js +18 -0
  200. package/node_modules/@opencensus/core/build/src/trace/instrumentation/base-plugin.d.ts +77 -0
  201. package/node_modules/@opencensus/core/build/src/trace/instrumentation/base-plugin.js +113 -0
  202. package/node_modules/@opencensus/core/build/src/trace/instrumentation/types.d.ts +56 -0
  203. package/node_modules/@opencensus/core/build/src/trace/instrumentation/types.js +18 -0
  204. package/node_modules/@opencensus/core/build/src/trace/model/root-span.d.ts +53 -0
  205. package/node_modules/@opencensus/core/build/src/trace/model/root-span.js +111 -0
  206. package/node_modules/@opencensus/core/build/src/trace/model/span-base.d.ts +131 -0
  207. package/node_modules/@opencensus/core/build/src/trace/model/span-base.js +210 -0
  208. package/node_modules/@opencensus/core/build/src/trace/model/span.d.ts +35 -0
  209. package/node_modules/@opencensus/core/build/src/trace/model/span.js +66 -0
  210. package/node_modules/@opencensus/core/build/src/trace/model/tracer.d.ts +112 -0
  211. package/node_modules/@opencensus/core/build/src/trace/model/tracer.js +241 -0
  212. package/node_modules/@opencensus/core/build/src/trace/model/types.d.ts +455 -0
  213. package/node_modules/@opencensus/core/build/src/trace/model/types.js +198 -0
  214. package/node_modules/@opencensus/core/build/src/trace/propagation/types.d.ts +36 -0
  215. package/node_modules/@opencensus/core/build/src/trace/propagation/types.js +18 -0
  216. package/node_modules/@opencensus/core/build/src/trace/sampler/sampler.d.ts +72 -0
  217. package/node_modules/@opencensus/core/build/src/trace/sampler/sampler.js +129 -0
  218. package/node_modules/@opencensus/core/build/src/trace/sampler/types.d.ts +29 -0
  219. package/node_modules/@opencensus/core/build/src/trace/sampler/types.js +18 -0
  220. package/node_modules/@opencensus/core/build/src/trace/types.d.ts +46 -0
  221. package/node_modules/@opencensus/core/build/src/trace/types.js +18 -0
  222. package/node_modules/@opencensus/core/node_modules/.bin/semver +12 -0
  223. package/node_modules/@opencensus/core/node_modules/.bin/semver.cmd +17 -0
  224. package/node_modules/@opencensus/core/node_modules/.bin/semver.ps1 +28 -0
  225. package/node_modules/@opencensus/core/node_modules/semver/CHANGELOG.md +39 -0
  226. package/node_modules/@opencensus/core/node_modules/semver/LICENSE +15 -0
  227. package/node_modules/@opencensus/core/node_modules/semver/README.md +412 -0
  228. package/node_modules/@opencensus/core/node_modules/semver/bin/semver +160 -0
  229. package/node_modules/@opencensus/core/node_modules/semver/package.json +28 -0
  230. package/node_modules/@opencensus/core/node_modules/semver/range.bnf +16 -0
  231. package/node_modules/@opencensus/core/node_modules/semver/semver.js +1483 -0
  232. package/node_modules/@opencensus/core/package.json +68 -0
  233. package/node_modules/@opencensus/propagation-b3/LICENSE +202 -0
  234. package/node_modules/@opencensus/propagation-b3/README.md +46 -0
  235. package/node_modules/@opencensus/propagation-b3/build/src/b3-format.d.ts +35 -0
  236. package/node_modules/@opencensus/propagation-b3/build/src/b3-format.js +77 -0
  237. package/node_modules/@opencensus/propagation-b3/build/src/index.d.ts +16 -0
  238. package/node_modules/@opencensus/propagation-b3/build/src/index.js +22 -0
  239. package/node_modules/@opencensus/propagation-b3/node_modules/.bin/semver +12 -0
  240. package/node_modules/@opencensus/propagation-b3/node_modules/.bin/semver.cmd +17 -0
  241. package/node_modules/@opencensus/propagation-b3/node_modules/.bin/semver.ps1 +28 -0
  242. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/LICENSE +202 -0
  243. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/README.md +96 -0
  244. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/common/console-logger.d.ts +51 -0
  245. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/common/console-logger.js +106 -0
  246. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/common/types.d.ts +29 -0
  247. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/common/types.js +18 -0
  248. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/common/validations.d.ts +31 -0
  249. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/common/validations.js +46 -0
  250. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/common/version.d.ts +1 -0
  251. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/common/version.js +24 -0
  252. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/exporters/console-exporter.d.ts +64 -0
  253. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/exporters/console-exporter.js +84 -0
  254. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/exporters/exporter-buffer.d.ts +44 -0
  255. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/exporters/exporter-buffer.js +104 -0
  256. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/exporters/types.d.ts +44 -0
  257. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/exporters/types.js +18 -0
  258. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/index.d.ts +37 -0
  259. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/index.js +45 -0
  260. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/internal/clock.d.ts +43 -0
  261. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/internal/clock.js +68 -0
  262. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/internal/cls-ah.d.ts +5 -0
  263. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/internal/cls-ah.js +128 -0
  264. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/internal/cls.d.ts +28 -0
  265. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/internal/cls.js +45 -0
  266. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/internal/string-utils.d.ts +35 -0
  267. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/internal/string-utils.js +49 -0
  268. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/internal/util.d.ts +1 -0
  269. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/internal/util.js +34 -0
  270. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/metrics/export/metric-producer.d.ts +27 -0
  271. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/metrics/export/metric-producer.js +25 -0
  272. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/metrics/export/types.d.ts +309 -0
  273. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/metrics/export/types.js +69 -0
  274. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/metrics/gauges/derived-gauge.d.ts +95 -0
  275. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/metrics/gauges/derived-gauge.js +151 -0
  276. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/metrics/gauges/gauge.d.ts +99 -0
  277. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/metrics/gauges/gauge.js +161 -0
  278. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/metrics/gauges/types.d.ts +45 -0
  279. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/metrics/gauges/types.js +18 -0
  280. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/metrics/metric-registry.d.ts +79 -0
  281. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/metrics/metric-registry.js +152 -0
  282. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/metrics/metrics.d.ts +26 -0
  283. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/metrics/metrics.js +34 -0
  284. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/metrics/utils.d.ts +30 -0
  285. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/metrics/utils.js +42 -0
  286. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/resource/resource.d.ts +81 -0
  287. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/resource/resource.js +160 -0
  288. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/resource/types.d.ts +31 -0
  289. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/resource/types.js +18 -0
  290. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/stats/bucket-boundaries.d.ts +49 -0
  291. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/stats/bucket-boundaries.js +90 -0
  292. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/stats/metric-producer.d.ts +34 -0
  293. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/stats/metric-producer.js +40 -0
  294. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/stats/metric-utils.d.ts +39 -0
  295. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/stats/metric-utils.js +84 -0
  296. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/stats/recorder.d.ts +23 -0
  297. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/stats/recorder.js +70 -0
  298. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/stats/stats.d.ts +85 -0
  299. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/stats/stats.js +145 -0
  300. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/stats/types.d.ts +188 -0
  301. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/stats/types.js +48 -0
  302. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/stats/view.d.ts +118 -0
  303. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/stats/view.js +201 -0
  304. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/config/types.d.ts +68 -0
  305. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/config/types.js +18 -0
  306. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/instrumentation/base-plugin.d.ts +73 -0
  307. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/instrumentation/base-plugin.js +110 -0
  308. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/instrumentation/types.d.ts +45 -0
  309. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/instrumentation/types.js +18 -0
  310. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/model/root-span.d.ts +38 -0
  311. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/model/root-span.js +108 -0
  312. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/model/span-base.d.ts +114 -0
  313. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/model/span-base.js +165 -0
  314. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/model/span.d.ts +20 -0
  315. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/model/span.js +65 -0
  316. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/model/tracer.d.ts +95 -0
  317. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/model/tracer.js +229 -0
  318. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/model/types.d.ts +245 -0
  319. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/model/types.js +18 -0
  320. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/propagation/types.d.ts +36 -0
  321. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/propagation/types.js +18 -0
  322. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/sampler/sampler.d.ts +56 -0
  323. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/sampler/sampler.js +94 -0
  324. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/sampler/types.d.ts +29 -0
  325. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/sampler/types.js +18 -0
  326. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/types.d.ts +46 -0
  327. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/types.js +18 -0
  328. package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/package.json +63 -0
  329. package/node_modules/@opencensus/propagation-b3/node_modules/semver/CHANGELOG.md +39 -0
  330. package/node_modules/@opencensus/propagation-b3/node_modules/semver/LICENSE +15 -0
  331. package/node_modules/@opencensus/propagation-b3/node_modules/semver/README.md +412 -0
  332. package/node_modules/@opencensus/propagation-b3/node_modules/semver/bin/semver +160 -0
  333. package/node_modules/@opencensus/propagation-b3/node_modules/semver/package.json +28 -0
  334. package/node_modules/@opencensus/propagation-b3/node_modules/semver/range.bnf +16 -0
  335. package/node_modules/@opencensus/propagation-b3/node_modules/semver/semver.js +1483 -0
  336. package/node_modules/@opencensus/propagation-b3/package.json +56 -0
  337. package/node_modules/@pm2/agent/.drone.jsonnet +104 -0
  338. package/node_modules/@pm2/agent/.mocharc.yml +12 -0
  339. package/node_modules/@pm2/agent/.vscode/launch.json +29 -0
  340. package/node_modules/@pm2/agent/LICENSE +661 -0
  341. package/node_modules/@pm2/agent/README.md +95 -0
  342. package/node_modules/@pm2/agent/config.js +30 -0
  343. package/node_modules/@pm2/agent/constants.js +98 -0
  344. package/node_modules/@pm2/agent/index.js +2 -0
  345. package/node_modules/@pm2/agent/node_modules/.bin/semver +12 -0
  346. package/node_modules/@pm2/agent/node_modules/.bin/semver.cmd +17 -0
  347. package/node_modules/@pm2/agent/node_modules/.bin/semver.ps1 +28 -0
  348. package/node_modules/@pm2/agent/node_modules/chalk/index.d.ts +411 -0
  349. package/node_modules/@pm2/agent/node_modules/chalk/license +9 -0
  350. package/node_modules/@pm2/agent/node_modules/chalk/package.json +63 -0
  351. package/node_modules/@pm2/agent/node_modules/chalk/readme.md +304 -0
  352. package/node_modules/@pm2/agent/node_modules/chalk/source/index.js +233 -0
  353. package/node_modules/@pm2/agent/node_modules/chalk/source/templates.js +134 -0
  354. package/node_modules/@pm2/agent/node_modules/chalk/source/util.js +39 -0
  355. package/node_modules/@pm2/agent/node_modules/semver/CHANGELOG.md +101 -0
  356. package/node_modules/@pm2/agent/node_modules/semver/LICENSE +15 -0
  357. package/node_modules/@pm2/agent/node_modules/semver/README.md +563 -0
  358. package/node_modules/@pm2/agent/node_modules/semver/bin/semver.js +173 -0
  359. package/node_modules/@pm2/agent/node_modules/semver/classes/comparator.js +139 -0
  360. package/node_modules/@pm2/agent/node_modules/semver/classes/index.js +5 -0
  361. package/node_modules/@pm2/agent/node_modules/semver/classes/range.js +453 -0
  362. package/node_modules/@pm2/agent/node_modules/semver/classes/semver.js +290 -0
  363. package/node_modules/@pm2/agent/node_modules/semver/functions/clean.js +6 -0
  364. package/node_modules/@pm2/agent/node_modules/semver/functions/cmp.js +48 -0
  365. package/node_modules/@pm2/agent/node_modules/semver/functions/coerce.js +51 -0
  366. package/node_modules/@pm2/agent/node_modules/semver/functions/compare-build.js +7 -0
  367. package/node_modules/@pm2/agent/node_modules/semver/functions/compare-loose.js +3 -0
  368. package/node_modules/@pm2/agent/node_modules/semver/functions/compare.js +5 -0
  369. package/node_modules/@pm2/agent/node_modules/semver/functions/diff.js +23 -0
  370. package/node_modules/@pm2/agent/node_modules/semver/functions/eq.js +3 -0
  371. package/node_modules/@pm2/agent/node_modules/semver/functions/gt.js +3 -0
  372. package/node_modules/@pm2/agent/node_modules/semver/functions/gte.js +3 -0
  373. package/node_modules/@pm2/agent/node_modules/semver/functions/inc.js +15 -0
  374. package/node_modules/@pm2/agent/node_modules/semver/functions/lt.js +3 -0
  375. package/node_modules/@pm2/agent/node_modules/semver/functions/lte.js +3 -0
  376. package/node_modules/@pm2/agent/node_modules/semver/functions/major.js +3 -0
  377. package/node_modules/@pm2/agent/node_modules/semver/functions/minor.js +3 -0
  378. package/node_modules/@pm2/agent/node_modules/semver/functions/neq.js +3 -0
  379. package/node_modules/@pm2/agent/node_modules/semver/functions/parse.js +37 -0
  380. package/node_modules/@pm2/agent/node_modules/semver/functions/patch.js +3 -0
  381. package/node_modules/@pm2/agent/node_modules/semver/functions/prerelease.js +6 -0
  382. package/node_modules/@pm2/agent/node_modules/semver/functions/rcompare.js +3 -0
  383. package/node_modules/@pm2/agent/node_modules/semver/functions/rsort.js +3 -0
  384. package/node_modules/@pm2/agent/node_modules/semver/functions/satisfies.js +10 -0
  385. package/node_modules/@pm2/agent/node_modules/semver/functions/sort.js +3 -0
  386. package/node_modules/@pm2/agent/node_modules/semver/functions/valid.js +6 -0
  387. package/node_modules/@pm2/agent/node_modules/semver/index.js +47 -0
  388. package/node_modules/@pm2/agent/node_modules/semver/internal/constants.js +17 -0
  389. package/node_modules/@pm2/agent/node_modules/semver/internal/debug.js +9 -0
  390. package/node_modules/@pm2/agent/node_modules/semver/internal/identifiers.js +23 -0
  391. package/node_modules/@pm2/agent/node_modules/semver/internal/re.js +179 -0
  392. package/node_modules/@pm2/agent/node_modules/semver/package.json +38 -0
  393. package/node_modules/@pm2/agent/node_modules/semver/preload.js +2 -0
  394. package/node_modules/@pm2/agent/node_modules/semver/range.bnf +16 -0
  395. package/node_modules/@pm2/agent/node_modules/semver/ranges/gtr.js +4 -0
  396. package/node_modules/@pm2/agent/node_modules/semver/ranges/intersects.js +7 -0
  397. package/node_modules/@pm2/agent/node_modules/semver/ranges/ltr.js +4 -0
  398. package/node_modules/@pm2/agent/node_modules/semver/ranges/max-satisfying.js +25 -0
  399. package/node_modules/@pm2/agent/node_modules/semver/ranges/min-satisfying.js +24 -0
  400. package/node_modules/@pm2/agent/node_modules/semver/ranges/min-version.js +57 -0
  401. package/node_modules/@pm2/agent/node_modules/semver/ranges/outside.js +80 -0
  402. package/node_modules/@pm2/agent/node_modules/semver/ranges/simplify.js +44 -0
  403. package/node_modules/@pm2/agent/node_modules/semver/ranges/to-comparators.js +8 -0
  404. package/node_modules/@pm2/agent/node_modules/semver/ranges/valid.js +11 -0
  405. package/node_modules/@pm2/agent/package.json +41 -0
  406. package/node_modules/@pm2/agent/src/InteractorClient.js +502 -0
  407. package/node_modules/@pm2/agent/src/InteractorDaemon.js +452 -0
  408. package/node_modules/@pm2/agent/src/PM2Client.js +112 -0
  409. package/node_modules/@pm2/agent/src/PM2Interface.js +180 -0
  410. package/node_modules/@pm2/agent/src/TransporterInterface.js +173 -0
  411. package/node_modules/@pm2/agent/src/Utility.js +395 -0
  412. package/node_modules/@pm2/agent/src/WatchDog.js +70 -0
  413. package/node_modules/@pm2/agent/src/push/DataRetriever.js +77 -0
  414. package/node_modules/@pm2/agent/src/push/PushInteractor.js +206 -0
  415. package/node_modules/@pm2/agent/src/push/TransactionAggregator.js +670 -0
  416. package/node_modules/@pm2/agent/src/reverse/ReverseInteractor.js +128 -0
  417. package/node_modules/@pm2/agent/src/transporters/Transporter.js +129 -0
  418. package/node_modules/@pm2/agent/src/transporters/WebsocketTransport.js +204 -0
  419. package/node_modules/@pm2/agent/src/utils/BinaryHeap.js +135 -0
  420. package/node_modules/@pm2/agent/src/utils/EDS.js +111 -0
  421. package/node_modules/@pm2/agent/src/utils/probes/Histogram.js +204 -0
  422. package/node_modules/@pm2/agent/src/utils/units.js +10 -0
  423. package/node_modules/@pm2/io/.drone.jsonnet +114 -0
  424. package/node_modules/@pm2/io/.mocharc.js +17 -0
  425. package/node_modules/@pm2/io/.vscode/settings.json +3 -0
  426. package/node_modules/@pm2/io/CHANGELOG.md +13 -0
  427. package/node_modules/@pm2/io/LICENSE.md +201 -0
  428. package/node_modules/@pm2/io/NOTES.md +73 -0
  429. package/node_modules/@pm2/io/README.md +574 -0
  430. package/node_modules/@pm2/io/build/main/census/config/default-config.d.ts +8 -0
  431. package/node_modules/@pm2/io/build/main/census/config/default-config.js +12 -0
  432. package/node_modules/@pm2/io/build/main/census/constants.d.ts +9 -0
  433. package/node_modules/@pm2/io/build/main/census/constants.js +12 -0
  434. package/node_modules/@pm2/io/build/main/census/exporter.d.ts +18 -0
  435. package/node_modules/@pm2/io/build/main/census/exporter.js +103 -0
  436. package/node_modules/@pm2/io/build/main/census/instrumentation/ext-types.d.ts +12 -0
  437. package/node_modules/@pm2/io/build/main/census/instrumentation/ext-types.js +1 -0
  438. package/node_modules/@pm2/io/build/main/census/instrumentation/plugin-loader.d.ts +14 -0
  439. package/node_modules/@pm2/io/build/main/census/instrumentation/plugin-loader.js +94 -0
  440. package/node_modules/@pm2/io/build/main/census/plugins/express.d.ts +13 -0
  441. package/node_modules/@pm2/io/build/main/census/plugins/express.js +120 -0
  442. package/node_modules/@pm2/io/build/main/census/plugins/http.d.ts +46 -0
  443. package/node_modules/@pm2/io/build/main/census/plugins/http.js +325 -0
  444. package/node_modules/@pm2/io/build/main/census/plugins/http2.d.ts +17 -0
  445. package/node_modules/@pm2/io/build/main/census/plugins/http2.js +163 -0
  446. package/node_modules/@pm2/io/build/main/census/plugins/https.d.ts +9 -0
  447. package/node_modules/@pm2/io/build/main/census/plugins/https.js +61 -0
  448. package/node_modules/@pm2/io/build/main/census/plugins/ioredis.d.ts +23 -0
  449. package/node_modules/@pm2/io/build/main/census/plugins/ioredis.js +89 -0
  450. package/node_modules/@pm2/io/build/main/census/plugins/mongodb.d.ts +21 -0
  451. package/node_modules/@pm2/io/build/main/census/plugins/mongodb.js +128 -0
  452. package/node_modules/@pm2/io/build/main/census/plugins/mysql.d.ts +21 -0
  453. package/node_modules/@pm2/io/build/main/census/plugins/mysql.js +82 -0
  454. package/node_modules/@pm2/io/build/main/census/plugins/mysql2.d.ts +21 -0
  455. package/node_modules/@pm2/io/build/main/census/plugins/mysql2.js +82 -0
  456. package/node_modules/@pm2/io/build/main/census/plugins/net.d.ts +8 -0
  457. package/node_modules/@pm2/io/build/main/census/plugins/net.js +79 -0
  458. package/node_modules/@pm2/io/build/main/census/plugins/pg.d.ts +23 -0
  459. package/node_modules/@pm2/io/build/main/census/plugins/pg.js +148 -0
  460. package/node_modules/@pm2/io/build/main/census/plugins/redis.d.ts +19 -0
  461. package/node_modules/@pm2/io/build/main/census/plugins/redis.js +114 -0
  462. package/node_modules/@pm2/io/build/main/census/plugins/vue.d.ts +12 -0
  463. package/node_modules/@pm2/io/build/main/census/plugins/vue.js +78 -0
  464. package/node_modules/@pm2/io/build/main/census/tracer.d.ts +19 -0
  465. package/node_modules/@pm2/io/build/main/census/tracer.js +67 -0
  466. package/node_modules/@pm2/io/build/main/configuration.d.ts +6 -0
  467. package/node_modules/@pm2/io/build/main/configuration.js +125 -0
  468. package/node_modules/@pm2/io/build/main/constants.d.ts +5 -0
  469. package/node_modules/@pm2/io/build/main/constants.js +15 -0
  470. package/node_modules/@pm2/io/build/main/featureManager.d.ts +14 -0
  471. package/node_modules/@pm2/io/build/main/featureManager.js +105 -0
  472. package/node_modules/@pm2/io/build/main/features/dependencies.d.ts +7 -0
  473. package/node_modules/@pm2/io/build/main/features/dependencies.js +45 -0
  474. package/node_modules/@pm2/io/build/main/features/entrypoint.d.ts +11 -0
  475. package/node_modules/@pm2/io/build/main/features/entrypoint.js +52 -0
  476. package/node_modules/@pm2/io/build/main/features/events.d.ts +8 -0
  477. package/node_modules/@pm2/io/build/main/features/events.js +44 -0
  478. package/node_modules/@pm2/io/build/main/features/metrics.d.ts +24 -0
  479. package/node_modules/@pm2/io/build/main/features/metrics.js +89 -0
  480. package/node_modules/@pm2/io/build/main/features/notify.d.ts +23 -0
  481. package/node_modules/@pm2/io/build/main/features/notify.js +224 -0
  482. package/node_modules/@pm2/io/build/main/features/profiling.d.ts +18 -0
  483. package/node_modules/@pm2/io/build/main/features/profiling.js +68 -0
  484. package/node_modules/@pm2/io/build/main/features/tracing.d.ts +25 -0
  485. package/node_modules/@pm2/io/build/main/features/tracing.js +149 -0
  486. package/node_modules/@pm2/io/build/main/index.d.ts +3 -0
  487. package/node_modules/@pm2/io/build/main/index.js +8 -0
  488. package/node_modules/@pm2/io/build/main/metrics/eventLoopMetrics.d.ts +17 -0
  489. package/node_modules/@pm2/io/build/main/metrics/eventLoopMetrics.js +128 -0
  490. package/node_modules/@pm2/io/build/main/metrics/httpMetrics.d.ts +18 -0
  491. package/node_modules/@pm2/io/build/main/metrics/httpMetrics.js +178 -0
  492. package/node_modules/@pm2/io/build/main/metrics/network.d.ts +15 -0
  493. package/node_modules/@pm2/io/build/main/metrics/network.js +121 -0
  494. package/node_modules/@pm2/io/build/main/metrics/runtime.d.ts +16 -0
  495. package/node_modules/@pm2/io/build/main/metrics/runtime.js +153 -0
  496. package/node_modules/@pm2/io/build/main/metrics/v8.d.ts +23 -0
  497. package/node_modules/@pm2/io/build/main/metrics/v8.js +100 -0
  498. package/node_modules/@pm2/io/build/main/pmx.d.ts +54 -0
  499. package/node_modules/@pm2/io/build/main/pmx.js +283 -0
  500. package/node_modules/@pm2/io/build/main/profilers/addonProfiler.d.ts +16 -0
  501. package/node_modules/@pm2/io/build/main/profilers/addonProfiler.js +172 -0
  502. package/node_modules/@pm2/io/build/main/profilers/inspectorProfiler.d.ts +18 -0
  503. package/node_modules/@pm2/io/build/main/profilers/inspectorProfiler.js +268 -0
  504. package/node_modules/@pm2/io/build/main/serviceManager.d.ts +7 -0
  505. package/node_modules/@pm2/io/build/main/serviceManager.js +19 -0
  506. package/node_modules/@pm2/io/build/main/services/actions.d.ts +20 -0
  507. package/node_modules/@pm2/io/build/main/services/actions.js +146 -0
  508. package/node_modules/@pm2/io/build/main/services/inspector.d.ts +8 -0
  509. package/node_modules/@pm2/io/build/main/services/inspector.js +42 -0
  510. package/node_modules/@pm2/io/build/main/services/metrics.d.ts +63 -0
  511. package/node_modules/@pm2/io/build/main/services/metrics.js +186 -0
  512. package/node_modules/@pm2/io/build/main/services/runtimeStats.d.ts +10 -0
  513. package/node_modules/@pm2/io/build/main/services/runtimeStats.js +49 -0
  514. package/node_modules/@pm2/io/build/main/services/transport.d.ts +22 -0
  515. package/node_modules/@pm2/io/build/main/services/transport.js +13 -0
  516. package/node_modules/@pm2/io/build/main/transports/IPCTransport.d.ts +17 -0
  517. package/node_modules/@pm2/io/build/main/transports/IPCTransport.js +102 -0
  518. package/node_modules/@pm2/io/build/main/transports/WebsocketTransport.d.ts +0 -0
  519. package/node_modules/@pm2/io/build/main/transports/WebsocketTransport.js +1 -0
  520. package/node_modules/@pm2/io/build/main/utils/BinaryHeap.d.ts +16 -0
  521. package/node_modules/@pm2/io/build/main/utils/BinaryHeap.js +109 -0
  522. package/node_modules/@pm2/io/build/main/utils/EDS.d.ts +21 -0
  523. package/node_modules/@pm2/io/build/main/utils/EDS.js +93 -0
  524. package/node_modules/@pm2/io/build/main/utils/EWMA.d.ts +12 -0
  525. package/node_modules/@pm2/io/build/main/utils/EWMA.js +26 -0
  526. package/node_modules/@pm2/io/build/main/utils/autocast.d.ts +13 -0
  527. package/node_modules/@pm2/io/build/main/utils/autocast.js +49 -0
  528. package/node_modules/@pm2/io/build/main/utils/metrics/counter.d.ts +10 -0
  529. package/node_modules/@pm2/io/build/main/utils/metrics/counter.js +28 -0
  530. package/node_modules/@pm2/io/build/main/utils/metrics/gauge.d.ts +7 -0
  531. package/node_modules/@pm2/io/build/main/utils/metrics/gauge.js +20 -0
  532. package/node_modules/@pm2/io/build/main/utils/metrics/histogram.d.ts +43 -0
  533. package/node_modules/@pm2/io/build/main/utils/metrics/histogram.js +160 -0
  534. package/node_modules/@pm2/io/build/main/utils/metrics/meter.d.ts +12 -0
  535. package/node_modules/@pm2/io/build/main/utils/metrics/meter.js +36 -0
  536. package/node_modules/@pm2/io/build/main/utils/miscellaneous.d.ts +4 -0
  537. package/node_modules/@pm2/io/build/main/utils/miscellaneous.js +17 -0
  538. package/node_modules/@pm2/io/build/main/utils/module.d.ts +5 -0
  539. package/node_modules/@pm2/io/build/main/utils/module.js +53 -0
  540. package/node_modules/@pm2/io/build/main/utils/stackParser.d.ts +37 -0
  541. package/node_modules/@pm2/io/build/main/utils/stackParser.js +125 -0
  542. package/node_modules/@pm2/io/build/main/utils/transactionAggregator.d.ts +74 -0
  543. package/node_modules/@pm2/io/build/main/utils/transactionAggregator.js +317 -0
  544. package/node_modules/@pm2/io/build/main/utils/units.d.ts +10 -0
  545. package/node_modules/@pm2/io/build/main/utils/units.js +16 -0
  546. package/node_modules/@pm2/io/docker-compose.yml +27 -0
  547. package/node_modules/@pm2/io/docs/README.md +106 -0
  548. package/node_modules/@pm2/io/node_modules/.bin/semver +12 -0
  549. package/node_modules/@pm2/io/node_modules/.bin/semver.cmd +17 -0
  550. package/node_modules/@pm2/io/node_modules/.bin/semver.ps1 +28 -0
  551. package/node_modules/@pm2/io/node_modules/async/CHANGELOG.md +275 -0
  552. package/node_modules/@pm2/io/node_modules/async/LICENSE +19 -0
  553. package/node_modules/@pm2/io/node_modules/async/README.md +56 -0
  554. package/node_modules/@pm2/io/node_modules/async/all.js +50 -0
  555. package/node_modules/@pm2/io/node_modules/async/allLimit.js +42 -0
  556. package/node_modules/@pm2/io/node_modules/async/allSeries.js +37 -0
  557. package/node_modules/@pm2/io/node_modules/async/any.js +52 -0
  558. package/node_modules/@pm2/io/node_modules/async/anyLimit.js +43 -0
  559. package/node_modules/@pm2/io/node_modules/async/anySeries.js +38 -0
  560. package/node_modules/@pm2/io/node_modules/async/apply.js +68 -0
  561. package/node_modules/@pm2/io/node_modules/async/applyEach.js +51 -0
  562. package/node_modules/@pm2/io/node_modules/async/applyEachSeries.js +37 -0
  563. package/node_modules/@pm2/io/node_modules/async/asyncify.js +110 -0
  564. package/node_modules/@pm2/io/node_modules/async/auto.js +289 -0
  565. package/node_modules/@pm2/io/node_modules/async/autoInject.js +170 -0
  566. package/node_modules/@pm2/io/node_modules/async/bower.json +17 -0
  567. package/node_modules/@pm2/io/node_modules/async/cargo.js +94 -0
  568. package/node_modules/@pm2/io/node_modules/async/compose.js +58 -0
  569. package/node_modules/@pm2/io/node_modules/async/concat.js +43 -0
  570. package/node_modules/@pm2/io/node_modules/async/concatLimit.js +65 -0
  571. package/node_modules/@pm2/io/node_modules/async/concatSeries.js +36 -0
  572. package/node_modules/@pm2/io/node_modules/async/constant.js +66 -0
  573. package/node_modules/@pm2/io/node_modules/async/detect.js +61 -0
  574. package/node_modules/@pm2/io/node_modules/async/detectLimit.js +48 -0
  575. package/node_modules/@pm2/io/node_modules/async/detectSeries.js +38 -0
  576. package/node_modules/@pm2/io/node_modules/async/dir.js +43 -0
  577. package/node_modules/@pm2/io/node_modules/async/doDuring.js +66 -0
  578. package/node_modules/@pm2/io/node_modules/async/doUntil.js +39 -0
  579. package/node_modules/@pm2/io/node_modules/async/doWhilst.js +59 -0
  580. package/node_modules/@pm2/io/node_modules/async/during.js +76 -0
  581. package/node_modules/@pm2/io/node_modules/async/each.js +82 -0
  582. package/node_modules/@pm2/io/node_modules/async/eachLimit.js +45 -0
  583. package/node_modules/@pm2/io/node_modules/async/eachOf.js +111 -0
  584. package/node_modules/@pm2/io/node_modules/async/eachOfLimit.js +41 -0
  585. package/node_modules/@pm2/io/node_modules/async/eachOfSeries.js +35 -0
  586. package/node_modules/@pm2/io/node_modules/async/eachSeries.js +37 -0
  587. package/node_modules/@pm2/io/node_modules/async/ensureAsync.js +73 -0
  588. package/node_modules/@pm2/io/node_modules/async/every.js +50 -0
  589. package/node_modules/@pm2/io/node_modules/async/everyLimit.js +42 -0
  590. package/node_modules/@pm2/io/node_modules/async/everySeries.js +37 -0
  591. package/node_modules/@pm2/io/node_modules/async/filter.js +45 -0
  592. package/node_modules/@pm2/io/node_modules/async/filterLimit.js +37 -0
  593. package/node_modules/@pm2/io/node_modules/async/filterSeries.js +35 -0
  594. package/node_modules/@pm2/io/node_modules/async/find.js +61 -0
  595. package/node_modules/@pm2/io/node_modules/async/findLimit.js +48 -0
  596. package/node_modules/@pm2/io/node_modules/async/findSeries.js +38 -0
  597. package/node_modules/@pm2/io/node_modules/async/foldl.js +78 -0
  598. package/node_modules/@pm2/io/node_modules/async/foldr.js +44 -0
  599. package/node_modules/@pm2/io/node_modules/async/forEach.js +82 -0
  600. package/node_modules/@pm2/io/node_modules/async/forEachLimit.js +45 -0
  601. package/node_modules/@pm2/io/node_modules/async/forEachOf.js +111 -0
  602. package/node_modules/@pm2/io/node_modules/async/forEachOfLimit.js +41 -0
  603. package/node_modules/@pm2/io/node_modules/async/forEachOfSeries.js +35 -0
  604. package/node_modules/@pm2/io/node_modules/async/forEachSeries.js +37 -0
  605. package/node_modules/@pm2/io/node_modules/async/forever.js +65 -0
  606. package/node_modules/@pm2/io/node_modules/async/groupBy.js +54 -0
  607. package/node_modules/@pm2/io/node_modules/async/groupByLimit.js +71 -0
  608. package/node_modules/@pm2/io/node_modules/async/groupBySeries.js +37 -0
  609. package/node_modules/@pm2/io/node_modules/async/index.js +582 -0
  610. package/node_modules/@pm2/io/node_modules/async/inject.js +78 -0
  611. package/node_modules/@pm2/io/node_modules/async/internal/DoublyLinkedList.js +88 -0
  612. package/node_modules/@pm2/io/node_modules/async/internal/applyEach.js +38 -0
  613. package/node_modules/@pm2/io/node_modules/async/internal/breakLoop.js +9 -0
  614. package/node_modules/@pm2/io/node_modules/async/internal/consoleFunc.js +42 -0
  615. package/node_modules/@pm2/io/node_modules/async/internal/createTester.js +44 -0
  616. package/node_modules/@pm2/io/node_modules/async/internal/doLimit.js +12 -0
  617. package/node_modules/@pm2/io/node_modules/async/internal/doParallel.js +23 -0
  618. package/node_modules/@pm2/io/node_modules/async/internal/doParallelLimit.js +23 -0
  619. package/node_modules/@pm2/io/node_modules/async/internal/eachOfLimit.js +74 -0
  620. package/node_modules/@pm2/io/node_modules/async/internal/filter.js +75 -0
  621. package/node_modules/@pm2/io/node_modules/async/internal/findGetResult.js +10 -0
  622. package/node_modules/@pm2/io/node_modules/async/internal/getIterator.js +13 -0
  623. package/node_modules/@pm2/io/node_modules/async/internal/initialParams.js +21 -0
  624. package/node_modules/@pm2/io/node_modules/async/internal/iterator.js +58 -0
  625. package/node_modules/@pm2/io/node_modules/async/internal/map.js +35 -0
  626. package/node_modules/@pm2/io/node_modules/async/internal/notId.js +10 -0
  627. package/node_modules/@pm2/io/node_modules/async/internal/once.js +15 -0
  628. package/node_modules/@pm2/io/node_modules/async/internal/onlyOnce.js +15 -0
  629. package/node_modules/@pm2/io/node_modules/async/internal/parallel.js +42 -0
  630. package/node_modules/@pm2/io/node_modules/async/internal/queue.js +204 -0
  631. package/node_modules/@pm2/io/node_modules/async/internal/reject.js +21 -0
  632. package/node_modules/@pm2/io/node_modules/async/internal/setImmediate.js +42 -0
  633. package/node_modules/@pm2/io/node_modules/async/internal/slice.js +16 -0
  634. package/node_modules/@pm2/io/node_modules/async/internal/withoutIndex.js +12 -0
  635. package/node_modules/@pm2/io/node_modules/async/internal/wrapAsync.js +25 -0
  636. package/node_modules/@pm2/io/node_modules/async/log.js +41 -0
  637. package/node_modules/@pm2/io/node_modules/async/map.js +54 -0
  638. package/node_modules/@pm2/io/node_modules/async/mapLimit.js +37 -0
  639. package/node_modules/@pm2/io/node_modules/async/mapSeries.js +36 -0
  640. package/node_modules/@pm2/io/node_modules/async/mapValues.js +63 -0
  641. package/node_modules/@pm2/io/node_modules/async/mapValuesLimit.js +61 -0
  642. package/node_modules/@pm2/io/node_modules/async/mapValuesSeries.js +37 -0
  643. package/node_modules/@pm2/io/node_modules/async/memoize.js +101 -0
  644. package/node_modules/@pm2/io/node_modules/async/nextTick.js +51 -0
  645. package/node_modules/@pm2/io/node_modules/async/package.json +80 -0
  646. package/node_modules/@pm2/io/node_modules/async/parallel.js +90 -0
  647. package/node_modules/@pm2/io/node_modules/async/parallelLimit.js +40 -0
  648. package/node_modules/@pm2/io/node_modules/async/priorityQueue.js +98 -0
  649. package/node_modules/@pm2/io/node_modules/async/queue.js +130 -0
  650. package/node_modules/@pm2/io/node_modules/async/race.js +70 -0
  651. package/node_modules/@pm2/io/node_modules/async/reduce.js +78 -0
  652. package/node_modules/@pm2/io/node_modules/async/reduceRight.js +44 -0
  653. package/node_modules/@pm2/io/node_modules/async/reflect.js +81 -0
  654. package/node_modules/@pm2/io/node_modules/async/reflectAll.js +105 -0
  655. package/node_modules/@pm2/io/node_modules/async/reject.js +45 -0
  656. package/node_modules/@pm2/io/node_modules/async/rejectLimit.js +37 -0
  657. package/node_modules/@pm2/io/node_modules/async/rejectSeries.js +35 -0
  658. package/node_modules/@pm2/io/node_modules/async/retry.js +156 -0
  659. package/node_modules/@pm2/io/node_modules/async/retryable.js +65 -0
  660. package/node_modules/@pm2/io/node_modules/async/select.js +45 -0
  661. package/node_modules/@pm2/io/node_modules/async/selectLimit.js +37 -0
  662. package/node_modules/@pm2/io/node_modules/async/selectSeries.js +35 -0
  663. package/node_modules/@pm2/io/node_modules/async/seq.js +91 -0
  664. package/node_modules/@pm2/io/node_modules/async/series.js +85 -0
  665. package/node_modules/@pm2/io/node_modules/async/setImmediate.js +45 -0
  666. package/node_modules/@pm2/io/node_modules/async/some.js +52 -0
  667. package/node_modules/@pm2/io/node_modules/async/someLimit.js +43 -0
  668. package/node_modules/@pm2/io/node_modules/async/someSeries.js +38 -0
  669. package/node_modules/@pm2/io/node_modules/async/sortBy.js +91 -0
  670. package/node_modules/@pm2/io/node_modules/async/timeout.js +89 -0
  671. package/node_modules/@pm2/io/node_modules/async/times.js +50 -0
  672. package/node_modules/@pm2/io/node_modules/async/timesLimit.js +42 -0
  673. package/node_modules/@pm2/io/node_modules/async/timesSeries.js +32 -0
  674. package/node_modules/@pm2/io/node_modules/async/transform.js +87 -0
  675. package/node_modules/@pm2/io/node_modules/async/tryEach.js +81 -0
  676. package/node_modules/@pm2/io/node_modules/async/unmemoize.js +25 -0
  677. package/node_modules/@pm2/io/node_modules/async/until.js +41 -0
  678. package/node_modules/@pm2/io/node_modules/async/waterfall.js +113 -0
  679. package/node_modules/@pm2/io/node_modules/async/whilst.js +72 -0
  680. package/node_modules/@pm2/io/node_modules/async/wrapSync.js +110 -0
  681. package/node_modules/@pm2/io/node_modules/eventemitter2/CHANGELOG.md +122 -0
  682. package/node_modules/@pm2/io/node_modules/eventemitter2/LICENSE.txt +21 -0
  683. package/node_modules/@pm2/io/node_modules/eventemitter2/README.md +809 -0
  684. package/node_modules/@pm2/io/node_modules/eventemitter2/eventemitter2.d.ts +150 -0
  685. package/node_modules/@pm2/io/node_modules/eventemitter2/index.js +1 -0
  686. package/node_modules/@pm2/io/node_modules/eventemitter2/lib/eventemitter2.js +1629 -0
  687. package/node_modules/@pm2/io/node_modules/eventemitter2/package.json +89 -0
  688. package/node_modules/@pm2/io/node_modules/semver/CHANGELOG.md +70 -0
  689. package/node_modules/@pm2/io/node_modules/semver/LICENSE +15 -0
  690. package/node_modules/@pm2/io/node_modules/semver/README.md +443 -0
  691. package/node_modules/@pm2/io/node_modules/semver/bin/semver.js +174 -0
  692. package/node_modules/@pm2/io/node_modules/semver/package.json +28 -0
  693. package/node_modules/@pm2/io/node_modules/semver/range.bnf +16 -0
  694. package/node_modules/@pm2/io/node_modules/semver/semver.js +1596 -0
  695. package/node_modules/@pm2/io/package.json +97 -0
  696. package/node_modules/@pm2/io/pres/io-black.png +0 -0
  697. package/node_modules/@pm2/io/pres/io-white.png +0 -0
  698. package/node_modules/@pm2/io/test.sh +67 -0
  699. package/node_modules/@pm2/js-api/.drone.jsonnet +100 -0
  700. package/node_modules/@pm2/js-api/LICENSE +201 -0
  701. package/node_modules/@pm2/js-api/README.md +375 -0
  702. package/node_modules/@pm2/js-api/constants.js +21 -0
  703. package/node_modules/@pm2/js-api/index.js +1 -0
  704. package/node_modules/@pm2/js-api/node_modules/async/CHANGELOG.md +275 -0
  705. package/node_modules/@pm2/js-api/node_modules/async/LICENSE +19 -0
  706. package/node_modules/@pm2/js-api/node_modules/async/README.md +56 -0
  707. package/node_modules/@pm2/js-api/node_modules/async/all.js +50 -0
  708. package/node_modules/@pm2/js-api/node_modules/async/allLimit.js +42 -0
  709. package/node_modules/@pm2/js-api/node_modules/async/allSeries.js +37 -0
  710. package/node_modules/@pm2/js-api/node_modules/async/any.js +52 -0
  711. package/node_modules/@pm2/js-api/node_modules/async/anyLimit.js +43 -0
  712. package/node_modules/@pm2/js-api/node_modules/async/anySeries.js +38 -0
  713. package/node_modules/@pm2/js-api/node_modules/async/apply.js +68 -0
  714. package/node_modules/@pm2/js-api/node_modules/async/applyEach.js +51 -0
  715. package/node_modules/@pm2/js-api/node_modules/async/applyEachSeries.js +37 -0
  716. package/node_modules/@pm2/js-api/node_modules/async/asyncify.js +110 -0
  717. package/node_modules/@pm2/js-api/node_modules/async/auto.js +289 -0
  718. package/node_modules/@pm2/js-api/node_modules/async/autoInject.js +170 -0
  719. package/node_modules/@pm2/js-api/node_modules/async/bower.json +17 -0
  720. package/node_modules/@pm2/js-api/node_modules/async/cargo.js +94 -0
  721. package/node_modules/@pm2/js-api/node_modules/async/compose.js +58 -0
  722. package/node_modules/@pm2/js-api/node_modules/async/concat.js +43 -0
  723. package/node_modules/@pm2/js-api/node_modules/async/concatLimit.js +65 -0
  724. package/node_modules/@pm2/js-api/node_modules/async/concatSeries.js +36 -0
  725. package/node_modules/@pm2/js-api/node_modules/async/constant.js +66 -0
  726. package/node_modules/@pm2/js-api/node_modules/async/detect.js +61 -0
  727. package/node_modules/@pm2/js-api/node_modules/async/detectLimit.js +48 -0
  728. package/node_modules/@pm2/js-api/node_modules/async/detectSeries.js +38 -0
  729. package/node_modules/@pm2/js-api/node_modules/async/dir.js +43 -0
  730. package/node_modules/@pm2/js-api/node_modules/async/doDuring.js +66 -0
  731. package/node_modules/@pm2/js-api/node_modules/async/doUntil.js +39 -0
  732. package/node_modules/@pm2/js-api/node_modules/async/doWhilst.js +59 -0
  733. package/node_modules/@pm2/js-api/node_modules/async/during.js +76 -0
  734. package/node_modules/@pm2/js-api/node_modules/async/each.js +82 -0
  735. package/node_modules/@pm2/js-api/node_modules/async/eachLimit.js +45 -0
  736. package/node_modules/@pm2/js-api/node_modules/async/eachOf.js +111 -0
  737. package/node_modules/@pm2/js-api/node_modules/async/eachOfLimit.js +41 -0
  738. package/node_modules/@pm2/js-api/node_modules/async/eachOfSeries.js +35 -0
  739. package/node_modules/@pm2/js-api/node_modules/async/eachSeries.js +37 -0
  740. package/node_modules/@pm2/js-api/node_modules/async/ensureAsync.js +73 -0
  741. package/node_modules/@pm2/js-api/node_modules/async/every.js +50 -0
  742. package/node_modules/@pm2/js-api/node_modules/async/everyLimit.js +42 -0
  743. package/node_modules/@pm2/js-api/node_modules/async/everySeries.js +37 -0
  744. package/node_modules/@pm2/js-api/node_modules/async/filter.js +45 -0
  745. package/node_modules/@pm2/js-api/node_modules/async/filterLimit.js +37 -0
  746. package/node_modules/@pm2/js-api/node_modules/async/filterSeries.js +35 -0
  747. package/node_modules/@pm2/js-api/node_modules/async/find.js +61 -0
  748. package/node_modules/@pm2/js-api/node_modules/async/findLimit.js +48 -0
  749. package/node_modules/@pm2/js-api/node_modules/async/findSeries.js +38 -0
  750. package/node_modules/@pm2/js-api/node_modules/async/foldl.js +78 -0
  751. package/node_modules/@pm2/js-api/node_modules/async/foldr.js +44 -0
  752. package/node_modules/@pm2/js-api/node_modules/async/forEach.js +82 -0
  753. package/node_modules/@pm2/js-api/node_modules/async/forEachLimit.js +45 -0
  754. package/node_modules/@pm2/js-api/node_modules/async/forEachOf.js +111 -0
  755. package/node_modules/@pm2/js-api/node_modules/async/forEachOfLimit.js +41 -0
  756. package/node_modules/@pm2/js-api/node_modules/async/forEachOfSeries.js +35 -0
  757. package/node_modules/@pm2/js-api/node_modules/async/forEachSeries.js +37 -0
  758. package/node_modules/@pm2/js-api/node_modules/async/forever.js +65 -0
  759. package/node_modules/@pm2/js-api/node_modules/async/groupBy.js +54 -0
  760. package/node_modules/@pm2/js-api/node_modules/async/groupByLimit.js +71 -0
  761. package/node_modules/@pm2/js-api/node_modules/async/groupBySeries.js +37 -0
  762. package/node_modules/@pm2/js-api/node_modules/async/index.js +582 -0
  763. package/node_modules/@pm2/js-api/node_modules/async/inject.js +78 -0
  764. package/node_modules/@pm2/js-api/node_modules/async/internal/DoublyLinkedList.js +88 -0
  765. package/node_modules/@pm2/js-api/node_modules/async/internal/applyEach.js +38 -0
  766. package/node_modules/@pm2/js-api/node_modules/async/internal/breakLoop.js +9 -0
  767. package/node_modules/@pm2/js-api/node_modules/async/internal/consoleFunc.js +42 -0
  768. package/node_modules/@pm2/js-api/node_modules/async/internal/createTester.js +44 -0
  769. package/node_modules/@pm2/js-api/node_modules/async/internal/doLimit.js +12 -0
  770. package/node_modules/@pm2/js-api/node_modules/async/internal/doParallel.js +23 -0
  771. package/node_modules/@pm2/js-api/node_modules/async/internal/doParallelLimit.js +23 -0
  772. package/node_modules/@pm2/js-api/node_modules/async/internal/eachOfLimit.js +74 -0
  773. package/node_modules/@pm2/js-api/node_modules/async/internal/filter.js +75 -0
  774. package/node_modules/@pm2/js-api/node_modules/async/internal/findGetResult.js +10 -0
  775. package/node_modules/@pm2/js-api/node_modules/async/internal/getIterator.js +13 -0
  776. package/node_modules/@pm2/js-api/node_modules/async/internal/initialParams.js +21 -0
  777. package/node_modules/@pm2/js-api/node_modules/async/internal/iterator.js +58 -0
  778. package/node_modules/@pm2/js-api/node_modules/async/internal/map.js +35 -0
  779. package/node_modules/@pm2/js-api/node_modules/async/internal/notId.js +10 -0
  780. package/node_modules/@pm2/js-api/node_modules/async/internal/once.js +15 -0
  781. package/node_modules/@pm2/js-api/node_modules/async/internal/onlyOnce.js +15 -0
  782. package/node_modules/@pm2/js-api/node_modules/async/internal/parallel.js +42 -0
  783. package/node_modules/@pm2/js-api/node_modules/async/internal/queue.js +204 -0
  784. package/node_modules/@pm2/js-api/node_modules/async/internal/reject.js +21 -0
  785. package/node_modules/@pm2/js-api/node_modules/async/internal/setImmediate.js +42 -0
  786. package/node_modules/@pm2/js-api/node_modules/async/internal/slice.js +16 -0
  787. package/node_modules/@pm2/js-api/node_modules/async/internal/withoutIndex.js +12 -0
  788. package/node_modules/@pm2/js-api/node_modules/async/internal/wrapAsync.js +25 -0
  789. package/node_modules/@pm2/js-api/node_modules/async/log.js +41 -0
  790. package/node_modules/@pm2/js-api/node_modules/async/map.js +54 -0
  791. package/node_modules/@pm2/js-api/node_modules/async/mapLimit.js +37 -0
  792. package/node_modules/@pm2/js-api/node_modules/async/mapSeries.js +36 -0
  793. package/node_modules/@pm2/js-api/node_modules/async/mapValues.js +63 -0
  794. package/node_modules/@pm2/js-api/node_modules/async/mapValuesLimit.js +61 -0
  795. package/node_modules/@pm2/js-api/node_modules/async/mapValuesSeries.js +37 -0
  796. package/node_modules/@pm2/js-api/node_modules/async/memoize.js +101 -0
  797. package/node_modules/@pm2/js-api/node_modules/async/nextTick.js +51 -0
  798. package/node_modules/@pm2/js-api/node_modules/async/package.json +80 -0
  799. package/node_modules/@pm2/js-api/node_modules/async/parallel.js +90 -0
  800. package/node_modules/@pm2/js-api/node_modules/async/parallelLimit.js +40 -0
  801. package/node_modules/@pm2/js-api/node_modules/async/priorityQueue.js +98 -0
  802. package/node_modules/@pm2/js-api/node_modules/async/queue.js +130 -0
  803. package/node_modules/@pm2/js-api/node_modules/async/race.js +70 -0
  804. package/node_modules/@pm2/js-api/node_modules/async/reduce.js +78 -0
  805. package/node_modules/@pm2/js-api/node_modules/async/reduceRight.js +44 -0
  806. package/node_modules/@pm2/js-api/node_modules/async/reflect.js +81 -0
  807. package/node_modules/@pm2/js-api/node_modules/async/reflectAll.js +105 -0
  808. package/node_modules/@pm2/js-api/node_modules/async/reject.js +45 -0
  809. package/node_modules/@pm2/js-api/node_modules/async/rejectLimit.js +37 -0
  810. package/node_modules/@pm2/js-api/node_modules/async/rejectSeries.js +35 -0
  811. package/node_modules/@pm2/js-api/node_modules/async/retry.js +156 -0
  812. package/node_modules/@pm2/js-api/node_modules/async/retryable.js +65 -0
  813. package/node_modules/@pm2/js-api/node_modules/async/select.js +45 -0
  814. package/node_modules/@pm2/js-api/node_modules/async/selectLimit.js +37 -0
  815. package/node_modules/@pm2/js-api/node_modules/async/selectSeries.js +35 -0
  816. package/node_modules/@pm2/js-api/node_modules/async/seq.js +91 -0
  817. package/node_modules/@pm2/js-api/node_modules/async/series.js +85 -0
  818. package/node_modules/@pm2/js-api/node_modules/async/setImmediate.js +45 -0
  819. package/node_modules/@pm2/js-api/node_modules/async/some.js +52 -0
  820. package/node_modules/@pm2/js-api/node_modules/async/someLimit.js +43 -0
  821. package/node_modules/@pm2/js-api/node_modules/async/someSeries.js +38 -0
  822. package/node_modules/@pm2/js-api/node_modules/async/sortBy.js +91 -0
  823. package/node_modules/@pm2/js-api/node_modules/async/timeout.js +89 -0
  824. package/node_modules/@pm2/js-api/node_modules/async/times.js +50 -0
  825. package/node_modules/@pm2/js-api/node_modules/async/timesLimit.js +42 -0
  826. package/node_modules/@pm2/js-api/node_modules/async/timesSeries.js +32 -0
  827. package/node_modules/@pm2/js-api/node_modules/async/transform.js +87 -0
  828. package/node_modules/@pm2/js-api/node_modules/async/tryEach.js +81 -0
  829. package/node_modules/@pm2/js-api/node_modules/async/unmemoize.js +25 -0
  830. package/node_modules/@pm2/js-api/node_modules/async/until.js +41 -0
  831. package/node_modules/@pm2/js-api/node_modules/async/waterfall.js +113 -0
  832. package/node_modules/@pm2/js-api/node_modules/async/whilst.js +72 -0
  833. package/node_modules/@pm2/js-api/node_modules/async/wrapSync.js +110 -0
  834. package/node_modules/@pm2/js-api/node_modules/eventemitter2/CHANGELOG.md +122 -0
  835. package/node_modules/@pm2/js-api/node_modules/eventemitter2/LICENSE.txt +21 -0
  836. package/node_modules/@pm2/js-api/node_modules/eventemitter2/README.md +809 -0
  837. package/node_modules/@pm2/js-api/node_modules/eventemitter2/eventemitter2.d.ts +150 -0
  838. package/node_modules/@pm2/js-api/node_modules/eventemitter2/index.js +1 -0
  839. package/node_modules/@pm2/js-api/node_modules/eventemitter2/lib/eventemitter2.js +1629 -0
  840. package/node_modules/@pm2/js-api/node_modules/eventemitter2/package.json +89 -0
  841. package/node_modules/@pm2/js-api/package.json +77 -0
  842. package/node_modules/@pm2/js-api/src/api_mappings.json +1 -0
  843. package/node_modules/@pm2/js-api/src/auth_strategies/browser_strategy.js +67 -0
  844. package/node_modules/@pm2/js-api/src/auth_strategies/embed_strategy.js +138 -0
  845. package/node_modules/@pm2/js-api/src/auth_strategies/standalone_strategy.js +33 -0
  846. package/node_modules/@pm2/js-api/src/auth_strategies/strategy.js +57 -0
  847. package/node_modules/@pm2/js-api/src/endpoint.js +34 -0
  848. package/node_modules/@pm2/js-api/src/keymetrics.js +78 -0
  849. package/node_modules/@pm2/js-api/src/namespace.js +76 -0
  850. package/node_modules/@pm2/js-api/src/network.js +464 -0
  851. package/node_modules/@pm2/js-api/src/utils/validator.js +164 -0
  852. package/node_modules/@pm2/js-api/src/utils/websocket.js +181 -0
  853. package/node_modules/@pm2/pm2-version-check/README.md +8 -0
  854. package/node_modules/@pm2/pm2-version-check/index.js +54 -0
  855. package/node_modules/@pm2/pm2-version-check/package.json +11 -0
  856. package/node_modules/@tootallnate/once/package.json +45 -0
  857. package/node_modules/@types/json5/README.md +18 -0
  858. package/node_modules/@types/json5/index.d.ts +44 -0
  859. package/node_modules/@types/json5/package.json +16 -0
  860. package/node_modules/@types/json5/types-metadata.json +25 -0
  861. package/package.json +6 -6
  862. package/server-config.json +3 -0
  863. package/server.js +190 -181
@@ -0,0 +1,574 @@
1
+ <div align="center">
2
+ <a href="http://pm2.keymetrics.io">
3
+ <img width=411px src="https://raw.githubusercontent.com/keymetrics/pm2-io-apm/master/pres/io-white.png">
4
+ </a>
5
+ <br/>
6
+
7
+ <br/>
8
+ <br/>
9
+ </div>
10
+
11
+
12
+ The [@pm2/io](https://github.com/keymetrics/pm2-io-apm/tree/master/test) module comes along with PM2. It is the PM2 library responsible for gathering the metrics, reporting exceptions, exposing remote actions and every interaction with your application.
13
+
14
+ You can also use it as a standalone agent, if you want to connect your nodejs process to PM2 Enterprise but without having to launch your application with PM2.
15
+
16
+ # Table of Contents
17
+
18
+ - [**Installation**](https://github.com/keymetrics/pm2-io-apm/tree/master#installation)
19
+ - [**Expose Custom Metrics**](https://github.com/keymetrics/pm2-io-apm/tree/master#expose-custom-metrics)
20
+ - [**Expose Remote Actions**](https://github.com/keymetrics/pm2-io-apm#expose-remote-actions-trigger-functions-remotely)
21
+ - [**Report Custom Errors**](https://github.com/keymetrics/pm2-io-apm#report-user-error)
22
+ - [**Distributed Tracing**](https://github.com/keymetrics/pm2-io-apm#distributed-tracing)
23
+ - [**Configuration**](https://github.com/keymetrics/pm2-io-apm/tree/master#configuration)
24
+ - [**Migration Guide**](https://github.com/keymetrics/pm2-io-apm#migration-guides)
25
+ - [**Development**](https://github.com/keymetrics/pm2-io-apm/tree/master#development)
26
+ - [**Notes**](https://github.com/keymetrics/pm2-io-apm/tree/master#notes)
27
+
28
+
29
+ # Installation
30
+
31
+ With npm:
32
+
33
+ ```bash
34
+ npm install @pm2/io --save
35
+ ```
36
+
37
+ With yarn:
38
+
39
+ ```bash
40
+ yarn add @pm2/io
41
+ ```
42
+
43
+ ## V8 Runtime Metrics
44
+
45
+ To retrieve by default V8 Runtime metrics like:
46
+ - V8 Garbage Collector metrics
47
+ - [CPU Context Switch](https://unix.stackexchange.com/questions/442969/what-exactly-are-voluntary-context-switches)
48
+ - [Page Fault](https://en.wikipedia.org/wiki/Page_fault#Types)
49
+
50
+ Install:
51
+
52
+ ```bash
53
+ npm install @pm2/node-runtime-stats
54
+ ```
55
+
56
+ And restart the application.
57
+
58
+ ## Custom Metrics
59
+
60
+ @pm2/io allows you to gather metrics from your code to be reported in the PM2 Plus/Enterprise dashboard.
61
+
62
+ ### Create a custom metrics
63
+
64
+ You can create a new custom metrics with the method `metric()` of `@pm2/io`.
65
+
66
+ ```javascript
67
+ const io = require('@pm2/io');
68
+
69
+ const users = io.metric({
70
+ name: 'Realtime user',
71
+ });
72
+ users.set(10)
73
+ ```
74
+
75
+ This arguments are available:
76
+
77
+ - **name**: The metric name (required; string)
78
+ - **id**: The type of metric (default 'metric', string)
79
+ - **unit**: unit of the measure (default ''; string)
80
+ - **historic**: keep the history in PM2 Plus (default: true; boolean)
81
+
82
+ There are 4 different types of metrics:
83
+
84
+ - **gauge**: To expose a variable's value
85
+ - **counter**: A discrete counter to be triggered manually to count a number of occurrence
86
+ - **meter**: To measure a frequency, a number of occurrences of a repeating event per unit of time
87
+ - **histogram**: To measure a statistic, a statistic on a metric over the last 5 minutes
88
+
89
+ ### Metric: Variable Exposition
90
+
91
+ The first type of metric, called `metric`, allows to expose a variable's value. The variable can be exposed passively, with a function that gets called every second, or actively, with a method that you use to update the value.
92
+
93
+ #### Active Mode
94
+
95
+ In active mode, you need to create a probe and call the method `set()` to update the value.
96
+
97
+ ```javascript
98
+ const myMetric = io.metric({
99
+ name: 'Realtime Value'
100
+ });
101
+
102
+ myMetric.set(23);
103
+ ```
104
+
105
+ #### Passive Mode
106
+
107
+ In passive mode you hust need to return the variable to be monitored:
108
+
109
+ ```javascript
110
+ const myMetric = io.metric({
111
+ name: 'Realtime Value',
112
+ value: () => {
113
+ return variable_to_monitor
114
+ }
115
+ });
116
+ ```
117
+
118
+ ### Counter: Discrete Counter
119
+
120
+ The second type of metric, called `counter`, is a discrete counter that helps you count the number of occurrence of a particular event. The counter starts at 0 and can be incremented or decremented.
121
+
122
+ ```javascript
123
+ const io = require('@pm2/io');
124
+
125
+ const currentReq = io.counter({
126
+ name: 'Current req processed',
127
+ type: 'counter',
128
+ });
129
+
130
+ http.createServer((req, res) => {
131
+ // Increment the counter, counter will eq 1
132
+ currentReq.inc();
133
+ req.on('end', () => {
134
+ // Decrement the counter, counter will eq 0
135
+ currentReq.dec();
136
+ });
137
+ });
138
+ ```
139
+
140
+ ### Meter: Frequency
141
+
142
+ The third type of metric, called `meter`, compute the frequency of an event. Each time the event happens, you need to call the `mark()` method. By default, the frequency is the number of events per second over the last minute.
143
+
144
+ ```javascript
145
+ const io = require('@pm2/io');
146
+
147
+ const reqsec = io.meter({
148
+ name: 'req/sec',
149
+ type: 'meter',
150
+ });
151
+
152
+ http.createServer((req, res) => {
153
+ reqsec.mark();
154
+ res.end({ success: true });
155
+ });
156
+ ```
157
+
158
+ Additional options:
159
+ - **samples**: (optional)(default: 1) Rate unit. Defaults to **1** sec.
160
+ - **timeframe**: (optional)(default: 60) Timeframe over which the events will be analyzed. Defaults to **60** sec.
161
+
162
+ ### Histogram: Statistics
163
+
164
+ Collect values and provide statistic tools to explore their distribution over the last 5 minutes.
165
+
166
+ ```javascript
167
+ const io = require('@pm2/io');
168
+
169
+ const latency = io.histogram({
170
+ name: 'latency',
171
+ measurement: 'mean'
172
+ });
173
+
174
+ var latencyValue = 0;
175
+
176
+ setInterval(() => {
177
+ latencyValue = Math.round(Math.random() * 100);
178
+ latency.update(latencyValue);
179
+ }, 100);
180
+ ```
181
+
182
+ Options are:
183
+ - **measurement** : default: mean; min, max, sum, count, variance, mean, stddev, median, p75, p95, p99, p99.
184
+
185
+ ## Expose Remote Actions: Trigger Functions remotely
186
+
187
+ Remotely trigger functions from PM2 Plus or Enterprise.
188
+
189
+ ### Simple actions
190
+
191
+ The function takes a function as a parameter (cb here) and need to be called once the job is finished.
192
+
193
+ Example:
194
+
195
+ ```javascript
196
+ const io = require('@pm2/io');
197
+
198
+ io.action('db:clean', (cb) => {
199
+ clean.db(() => {
200
+ // cb must be called at the end of the action
201
+ return cb({ success: true });
202
+ });
203
+ });
204
+ ```
205
+
206
+ ## Report user error
207
+
208
+ By default, in the Issue tab, you are only alerted for uncaught exceptions. Any exception that you catch is not reported. You can manually report them with the `notifyError()` method.
209
+
210
+ ```javascript
211
+ const io = require('@pm2/io');
212
+
213
+ io.notifyError(new Error('This is an error'), {
214
+ // you can some http context that will be reported in the UI
215
+ http: {
216
+ url: req.url
217
+ },
218
+ // or anything that you can like an user id
219
+ custom: {
220
+ user: req.user.id
221
+ }
222
+ });
223
+ ```
224
+
225
+ #### Express error reporting
226
+
227
+ If you want you can configure your express middleware to automatically send you an error with the error middleware of express :
228
+
229
+ ```javascript
230
+ const io = require('@pm2/io')
231
+ const express = require('express')
232
+ const app = express()
233
+
234
+ // add the routes that you want
235
+ app.use('/toto', () => {
236
+ throw new Error('ajdoijerr')
237
+ })
238
+
239
+ // always add the middleware as the last one
240
+ app.use(io.expressErrorHandler())
241
+ ```
242
+
243
+ #### Koa error reporting
244
+
245
+ We also expose a custom koa middleware to report error with a specific koa middleware :
246
+
247
+ ```javascript
248
+ const io = require('@pm2/io')
249
+ const Koa = require('koa')
250
+ const app = new Koa()
251
+
252
+ // the order isn't important with koa
253
+ app.use(pmx.koaErrorHandler())
254
+
255
+ // add the routes that you want
256
+ app.use(async ctx => {
257
+ ctx.throw(new Error('toto'))
258
+ })
259
+ ```
260
+
261
+ ## Distributed Tracing
262
+
263
+ The Distributed Tracing allows to captures and propagates distributed traces through your system, allowing you to visualize how customer requests flow across services, rapidly perform deep root cause analysis, and better analyze latency across a highly distributed set of services.
264
+ If you want to enable it, here the simple options to enable:
265
+
266
+
267
+ ```javascript
268
+ const io = require('@pm2/io').init({
269
+ tracing: {
270
+ enabled: true,
271
+ // will add the actual queries made to database, false by default
272
+ detailedDatabasesCalls: true,
273
+ // if you want you can ignore some endpoint based on their path
274
+ ignoreIncomingPaths: [
275
+ // can be a regex
276
+ /misc/,
277
+ // or a exact string
278
+ '/api/bucket'
279
+ // or a function with the request
280
+ (url, request) => {
281
+ return true
282
+ }
283
+ ],
284
+ // same as above but used to match entire URLs
285
+ ignoreOutgoingUrls: [],
286
+ /**
287
+ * Determines the probability of a request to be traced. Ranges from 0.0 to 1.0
288
+ * default is 0.5
289
+ */
290
+ samplingRate: 0.5
291
+ }
292
+ })
293
+ ```
294
+
295
+ By default we ignore specific incoming requests (you can override this by setting `ignoreIncomingPaths: []`):
296
+ - Request with the OPTIONS or HEAD method
297
+ - Request fetching a static ressources (`*.js`, `*.css`, `*.ico`, `*.svg`, `.png` or `*webpack*`)
298
+
299
+ ### What's get traced
300
+
301
+ When your application will receive a request from either `http`, `https` or `http2` it will start a trace. After that, we will trace the following modules:
302
+ - `http` outgoing requests
303
+ - `https` outgoing requests
304
+ - `http2` outgoing requests
305
+ - `mongodb-core` version 1 - 3
306
+ - `redis` versions > 2.6
307
+ - `ioredis` versions > 2.6
308
+ - `mysql` version 1 - 3
309
+ - `mysql2` version 1 - 3
310
+ - `pg` version > 6
311
+ - `vue-server-renderer` version 2
312
+
313
+ ### Custom Tracing API
314
+
315
+ The custom tracing API can be used to create custom trace spans. A span is a particular unit of work within a trace, such as an RPC request. Spans may be nested; the outermost span is called a root span, even if there are no nested child spans. Root spans typically correspond to incoming requests, while child spans typically correspond to outgoing requests, or other work that is triggered in response to incoming requests. This means that root spans shouldn't be created in a context where a root span already exists; a child span is more suitable here. Instead, root spans should be created to track work that happens outside of the request lifecycle entirely, such as periodically scheduled work. To illustrate:
316
+
317
+ ```js
318
+ const io = require('@pm2/io').init({ tracing: true })
319
+ const tracer = io.getTracer()
320
+ // ...
321
+
322
+ app.get('/:token', function (req, res) {
323
+ const token = req.params.token
324
+ // the '2' correspond to the type of operation you want to trace
325
+ // can be 0 (UNKNOWN), 1 (SERVER) or 2 (CLIENT)
326
+ // 'verifyToken' here will be the name of the operation
327
+ const customSpan = tracer.startChildSpan('verifyToken', 2)
328
+ // note that customSpan can be null if you are not inside a request
329
+ req.Token.verifyToken(token, (err, result) => {
330
+ if (err) {
331
+ // you can add tags to the span to attach more details to the span
332
+ customSpan.addAttribute('error', err.message)
333
+ customSpan.end()
334
+ return res.status(500).send('error')
335
+ }
336
+ customSpan.addAttribute('result', result)
337
+ // be sure to always .end() the spans
338
+ customSpan.end()
339
+ // redirect the user if the token is valid
340
+ res.send('/user/me')
341
+ })
342
+ })
343
+
344
+ // For any significant work done _outside_ of the request lifecycle, use
345
+ // startRootSpan.
346
+ const traceOptions = {
347
+ name: 'my custom trace',
348
+ // the '1' correspond to the type of operation you want to trace
349
+ // can be 0 (UNKNOWN), 1 (SERVER) or 2 (CLIENT)
350
+ kind: '1'
351
+ }
352
+ plugin.tracer.startRootSpan(traceOptions, rootSpan => {
353
+ // ...
354
+ // Be sure to call rootSpan.end().
355
+ rootSpan.end()
356
+ });
357
+ ```
358
+
359
+ ## Configuration
360
+
361
+ ### Global configuration object
362
+
363
+ ```javascript
364
+ export class IOConfig {
365
+ /**
366
+ * Automatically catch unhandled errors
367
+ */
368
+ catchExceptions?: boolean = true
369
+ /**
370
+ * Configure the metrics to add automatically to your process
371
+ */
372
+ metrics?: {
373
+ eventLoop: boolean = true,
374
+ network: boolean = false,
375
+ http: boolean = true,
376
+ gc: boolean = true,
377
+ v8: boolean = true
378
+ }
379
+ /**
380
+ * Configure the default actions that you can run
381
+ */
382
+ actions?: {
383
+ eventLoopDump?: boolean = true
384
+ }
385
+ /**
386
+ * Configure availables profilers that will be exposed
387
+ */
388
+ profiling?: {
389
+ /**
390
+ * Toggle the CPU profiling actions
391
+ */
392
+ cpuJS: boolean = true
393
+ /**
394
+ * Toggle the heap snapshot actions
395
+ */
396
+ heapSnapshot: boolean = true
397
+ /**
398
+ * Toggle the heap sampling actions
399
+ */
400
+ heapSampling: boolean = true
401
+ /**
402
+ * Force a specific implementation of profiler
403
+ *
404
+ * available:
405
+ * - 'addon' (using the v8-profiler-node8 addon)
406
+ * - 'inspector' (using the "inspector" api from node core)
407
+ * - 'none' (disable the profilers)
408
+ * - 'both' (will try to use inspector and fallback on addon if available)
409
+ */
410
+ implementation: string = 'both'
411
+ }
412
+ /**
413
+ * Configure the transaction tracing options
414
+ */
415
+ tracing?: {
416
+ /**
417
+ * Enabled the distributed tracing feature.
418
+ */
419
+ enabled: boolean
420
+ /**
421
+ * If you want to report a specific service name
422
+ * the default is the same as in apmOptions
423
+ */
424
+ serviceName?: string
425
+ /**
426
+ * Generate trace for outgoing request that aren't connected to a incoming one
427
+ * default is false
428
+ */
429
+ outbound?: boolean
430
+ /**
431
+ * Determines the probability of a request to be traced. Ranges from 0.0 to 1.0
432
+ * default is 0.5
433
+ */
434
+ samplingRate?: number,
435
+ /**
436
+ * Add details about databases calls (redis, mongodb etc)
437
+ */
438
+ detailedDatabasesCalls?: boolean,
439
+ /**
440
+ * Ignore specific incoming request depending on their path
441
+ */
442
+ ignoreIncomingPaths?: Array<IgnoreMatcher<httpModule.IncomingMessage>>
443
+ /**
444
+ * Ignore specific outgoing request depending on their url
445
+ */
446
+ ignoreOutgoingUrls?: Array<IgnoreMatcher<httpModule.ClientRequest>>
447
+ /**
448
+ * Set to true when wanting to create span for raw TCP connection
449
+ * instead of new http request
450
+ */
451
+ createSpanWithNet: boolean
452
+ }
453
+ /**
454
+ * If you want to connect to PM2 Enterprise without using PM2, you should enable
455
+ * the standalone mode
456
+ *
457
+ * default is false
458
+ */
459
+ standalone?: boolean = false
460
+ /**
461
+ * Define custom options for the standalone mode
462
+ */
463
+ apmOptions?: {
464
+ /**
465
+ * public key of the bucket to which the agent need to connect
466
+ */
467
+ publicKey: string
468
+ /**
469
+ * Secret key of the bucket to which the agent need to connect
470
+ */
471
+ secretKey: string
472
+ /**
473
+ * The name of the application/service that will be reported to PM2 Enterprise
474
+ */
475
+ appName: string
476
+ /**
477
+ * The name of the server as reported in PM2 Enterprise
478
+ *
479
+ * default is os.hostname()
480
+ */
481
+ serverName?: string
482
+ /**
483
+ * Broadcast all the logs from your application to our backend
484
+ */
485
+ sendLogs?: Boolean
486
+ /**
487
+ * Avoid to broadcast any logs from your application to our backend
488
+ * Even if the sendLogs option set to false, you can still see some logs
489
+ * when going to the log interface (it automatically trigger broacasting log)
490
+ */
491
+ disableLogs?: Boolean
492
+ /**
493
+ * Since logs can be forwared to our backend you may want to ignore specific
494
+ * logs (containing sensitive data for example)
495
+ */
496
+ logFilter?: string | RegExp
497
+ /**
498
+ * Proxy URI to use when reaching internet
499
+ * Supporting socks5,http,https,pac,socks4
500
+ * see https://github.com/TooTallNate/node-proxy-agent
501
+ *
502
+ * example: socks5://username:password@some-socks-proxy.com:9050
503
+ */
504
+ proxy?: string
505
+ }
506
+ }
507
+ ```
508
+
509
+ You can pass whatever options you want to `io.init`, it will automatically update its configuration.
510
+
511
+ ## Migration Guides
512
+
513
+ ### 2.x to 3.x
514
+
515
+ Here the list of breaking changes :
516
+
517
+ - Removed `io.scopedAction` because of low user adoption
518
+ - Removed `io.notify` in favor of `io.notifyError` (droppin replacement)
519
+ - Removed support for `gc-stats` module
520
+ - Removed Heap profiling support when using the profiler addon (which wasn't possible at all)
521
+ - Removed deep-metrics support (the module that allowed to get metrics about websocket/mongo out of the box), we are working on a better solution.
522
+ - Removed `io.transpose`
523
+ - Removed `io.probe()` to init metrics
524
+ - **Changed the configuration structure**
525
+
526
+ High chance that if you used a custom configuration for `io.init`, you need to change it to reflect the new configuration.
527
+ Apart from that and the `io.notify` removal, it shouldn't break the way you instanciated metrics.
528
+ If you find something else that breaks please report it to us (tech@keymetrics.io).
529
+
530
+ ### 3.x to 4.x
531
+
532
+ The only difference with the 4.x version is the new tracing system put in place, so the only changs are related to it:
533
+
534
+ - **Dropped the support for node 4** (you can still use the 3.x if you use node 4 but you will not have access to the distributed tracing)
535
+ - **Changed the tracing configuration** (see options above)
536
+
537
+ ## Development
538
+
539
+ To auto rebuild on file change:
540
+
541
+ ```bash
542
+ $ npm install
543
+ $ npm run watch
544
+ ```
545
+
546
+ To test only one file:
547
+
548
+ ```bash
549
+ $ npm run unit <typescript-file-to-test.ts>
550
+ ```
551
+
552
+ Run transpilation + test + coverage:
553
+
554
+ ```bash
555
+ $ npm run test
556
+ ```
557
+
558
+ Run transpilation + test only:
559
+
560
+ ```bash
561
+ $ npm run unit <test>
562
+ ```
563
+
564
+ ## Notes
565
+
566
+ Curently this package isn't compatible with `amqp` if you use the `network` metrics. We recommend to disable the metrics with the following configuration in this case :
567
+
568
+ ```javascript
569
+ io.init({
570
+ metrics: {
571
+ network: false
572
+ }
573
+ })
574
+ ```
@@ -0,0 +1,8 @@
1
+ export declare const defaultConfig: {
2
+ logLevel: number;
3
+ maximumLabelValueSize: number;
4
+ plugins: {};
5
+ bufferSize: number;
6
+ bufferTimeout: number;
7
+ samplingRate: number;
8
+ };
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const constants_1 = require("../constants");
4
+ exports.defaultConfig = {
5
+ logLevel: 1,
6
+ maximumLabelValueSize: 150,
7
+ plugins: {},
8
+ bufferSize: constants_1.Constants.DEFAULT_BUFFER_SIZE,
9
+ bufferTimeout: constants_1.Constants.DEFAULT_BUFFER_TIMEOUT,
10
+ samplingRate: 1
11
+ };
12
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVmYXVsdC1jb25maWcuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvY2Vuc3VzL2NvbmZpZy9kZWZhdWx0LWNvbmZpZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQWdCQSw0Q0FBd0M7QUFTM0IsUUFBQSxhQUFhLEdBQUc7SUFDM0IsUUFBUSxFQUFFLENBQUM7SUFDWCxxQkFBcUIsRUFBRSxHQUFHO0lBQzFCLE9BQU8sRUFBRSxFQUFFO0lBQ1gsVUFBVSxFQUFFLHFCQUFTLENBQUMsbUJBQW1CO0lBQ3pDLGFBQWEsRUFBRSxxQkFBUyxDQUFDLHNCQUFzQjtJQUMvQyxZQUFZLEVBQUUsQ0FBQztDQUNoQixDQUFBIn0=
@@ -0,0 +1,9 @@
1
+ declare const constants: {
2
+ MINIMUM_TRACE_DURATION: number;
3
+ DEFAULT_BUFFER_SIZE: number;
4
+ DEFAULT_BUFFER_TIMEOUT: number;
5
+ DEFAULT_INSTRUMENTATION_MODULES: never[];
6
+ OPENCENSUS_SCOPE: string;
7
+ DEFAULT_PLUGIN_PACKAGE_NAME_PREFIX: string;
8
+ };
9
+ export { constants as Constants };
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const constants = {
4
+ MINIMUM_TRACE_DURATION: process.env.NODE_ENV === 'test' ? 0 : 1000 * 1000,
5
+ DEFAULT_BUFFER_SIZE: 0,
6
+ DEFAULT_BUFFER_TIMEOUT: 1000,
7
+ DEFAULT_INSTRUMENTATION_MODULES: [],
8
+ OPENCENSUS_SCOPE: '@opencensus',
9
+ DEFAULT_PLUGIN_PACKAGE_NAME_PREFIX: 'instrumentation'
10
+ };
11
+ exports.Constants = constants;
12
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2NlbnN1cy9jb25zdGFudHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFtQkEsTUFBTSxTQUFTLEdBQUc7SUFFaEIsc0JBQXNCLEVBQUUsT0FBTyxDQUFDLEdBQUcsQ0FBQyxRQUFRLEtBQUssTUFBTSxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLElBQUksR0FBRyxJQUFJO0lBRXpFLG1CQUFtQixFQUFFLENBQUM7SUFFdEIsc0JBQXNCLEVBQUUsSUFBSTtJQUU1QiwrQkFBK0IsRUFBRSxFQUFFO0lBRW5DLGdCQUFnQixFQUFFLGFBQWE7SUFFL0Isa0NBQWtDLEVBQUUsaUJBQWlCO0NBQ3RELENBQUE7QUFFcUIsOEJBQVMifQ==
@@ -0,0 +1,18 @@
1
+ import { TracingConfig } from 'src/features/tracing';
2
+ import { Exporter, ExporterBuffer, ExporterConfig, RootSpan } from '@opencensus/core';
3
+ export interface ZipkinExporterOptions extends ExporterConfig {
4
+ serviceName: string;
5
+ }
6
+ export declare class CustomCensusExporter implements Exporter {
7
+ private config;
8
+ private transport;
9
+ buffer: ExporterBuffer;
10
+ constructor(config: TracingConfig);
11
+ onEndSpan(root: RootSpan): void;
12
+ onStartSpan(root: RootSpan): void;
13
+ private sendTraces;
14
+ private mountSpanList;
15
+ private translateSpan;
16
+ publish(rootSpans: RootSpan[]): Promise<any>;
17
+ private getSpanKind;
18
+ }