Closed trentm closed 1 year ago
Use req.originalUrl, if available, when converting req to ECS fields. This is necessary because Express, and possibly Fastify, will mutate req.url during routing in some cases.
req.originalUrl
req
Fixes: https://github.com/elastic/ecs-logging-nodejs/issues/114
Use
req.originalUrl
, if available, when convertingreq
to ECS fields. This is necessary because Express, and possibly Fastify, will mutate req.url during routing in some cases.Fixes: https://github.com/elastic/ecs-logging-nodejs/issues/114