egg-tracing
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -7,5 +7,7 @@ 'use strict'; | ||
return async (ctx, next) => { | ||
const requestId = ctx.request.headers['x-request-id'] ? ctx.request.headers['x-request-id'] : uuid.v4(); | ||
if (!ctx.request.headers['x-request-id']) { | ||
ctx.request.headers['x-request-id'] = uuid.v4(); | ||
}; | ||
ctx.tracer = { | ||
traceId: requestId, | ||
traceId: ctx.request.headers['x-request-id'], | ||
}; | ||
@@ -12,0 +14,0 @@ await next(); |
{ | ||
"name": "egg-tracing", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "", | ||
@@ -48,12 +48,4 @@ "eggPlugin": { | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/eggjs/egg-tracing.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/eggjs/egg/issues" | ||
}, | ||
"homepage": "https://github.com/eggjs/egg-tracing#readme", | ||
"author": "", | ||
"license": "MIT" | ||
} |
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
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
75
7532
3
1