@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/esm/index.js CHANGED
@@ -1987,7 +1987,11 @@ function expressHandler(handlerOrOptions, optionsOrHandler) {
1987
1987
  // Replace UUIDs with :id for better aggregation
1988
1988
  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");
1989
1989
  // Add request data to session report
1990
- logger$1.report({ path, status: String(res.statusCode) });
1990
+ logger$1.report({
1991
+ method: req.method,
1992
+ path,
1993
+ status: String(res.statusCode),
1994
+ });
1991
1995
  // Submit metric if Datadog is configured
1992
1996
  if (hasDatadogEnv()) {
1993
1997
  let metricPrefix = "project";
@@ -2268,7 +2272,11 @@ function expressStreamHandler(handlerOrOptions, optionsOrHandler) {
2268
2272
  }
2269
2273
  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");
2270
2274
  // Add request data to session report
2271
- logger.report({ path, status: String(res.statusCode) });
2275
+ logger.report({
2276
+ method: req.method,
2277
+ path,
2278
+ status: String(res.statusCode),
2279
+ });
2272
2280
  // Submit metric if Datadog is configured
2273
2281
  if (hasDatadogEnv()) {
2274
2282
  let metricPrefix = "project";