@gravity-ui/expresskit
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -25,5 +25,5 @@ "use strict"; | ||
req.ctx.setTag('http.method', req.method); | ||
req.ctx.setTag('http.url', req.url); | ||
req.ctx.setTag('path', req.path); | ||
req.ctx.setTag('referer', req.get('referer')); | ||
req.ctx.setTag('http.url', ctx.utils.redactSensitiveQueryParams(req.url)); | ||
req.ctx.setTag('path', ctx.utils.redactSensitiveQueryParams(req.path)); | ||
req.ctx.setTag('referer', ctx.utils.redactSensitiveQueryParams(req.get('referer'))); | ||
req.ctx.setTag('remote_ip', req.ip); | ||
@@ -33,8 +33,8 @@ req.ctx.setTag('request_id', req.id); | ||
const requestStartedExtra = ctx.config.appDevMode | ||
? { url: req.url } | ||
? { url: ctx.utils.redactSensitiveQueryParams(req.url) } | ||
: { | ||
id: req.id, | ||
method: req.method, | ||
url: req.url, | ||
headers: ctx.utils.redactSensitiveKeys(req.headers), | ||
url: ctx.utils.redactSensitiveQueryParams(req.url), | ||
headers: ctx.utils.redactSensitiveHeaders(req.headers), | ||
remoteAddress: req.connection && req.connection.remoteAddress, | ||
@@ -41,0 +41,0 @@ remotePort: req.connection && req.connection.remotePort, |
{ | ||
"name": "@gravity-ui/expresskit", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Express.js wrapper for NodeKit-based apps", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
41919