@jaypie/express 1.2.20 → 1.2.21
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.
- package/dist/cjs/index.cjs +10 -2
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/index.js +10 -2
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -1989,7 +1989,11 @@ function expressHandler(handlerOrOptions, optionsOrHandler) {
|
|
|
1989
1989
|
// Replace UUIDs with :id for better aggregation
|
|
1990
1990
|
path = path.replace(/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/gi, ":id");
|
|
1991
1991
|
// Add request data to session report
|
|
1992
|
-
logger$1.report({
|
|
1992
|
+
logger$1.report({
|
|
1993
|
+
method: req.method,
|
|
1994
|
+
path,
|
|
1995
|
+
status: String(res.statusCode),
|
|
1996
|
+
});
|
|
1993
1997
|
// Submit metric if Datadog is configured
|
|
1994
1998
|
if (datadog.hasDatadogEnv()) {
|
|
1995
1999
|
let metricPrefix = "project";
|
|
@@ -2270,7 +2274,11 @@ function expressStreamHandler(handlerOrOptions, optionsOrHandler) {
|
|
|
2270
2274
|
}
|
|
2271
2275
|
path = path.replace(/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/gi, ":id");
|
|
2272
2276
|
// Add request data to session report
|
|
2273
|
-
logger.report({
|
|
2277
|
+
logger.report({
|
|
2278
|
+
method: req.method,
|
|
2279
|
+
path,
|
|
2280
|
+
status: String(res.statusCode),
|
|
2281
|
+
});
|
|
2274
2282
|
// Submit metric if Datadog is configured
|
|
2275
2283
|
if (datadog.hasDatadogEnv()) {
|
|
2276
2284
|
let metricPrefix = "project";
|