Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

egg-tracing

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

egg-tracing - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

6

app/middleware/tracing.js

@@ -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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc