egg-jaeger
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -21,3 +21,3 @@ 'use strict'; | ||
startSpan(name, tags = {}) { | ||
const childOf = als.get('span'); | ||
const childOf = als.getFromParent('span'); | ||
const span = this.jaeger.startSpan(name, childOf ? { childOf, tags } : { tags }); | ||
@@ -24,0 +24,0 @@ als.set('span', span); |
@@ -6,2 +6,3 @@ 'use strict'; | ||
module.exports = (options, app) => async function jaegerMiddleware(ctx, next) { | ||
als.scope() | ||
const span = app.startSpan(ctx.path); | ||
@@ -8,0 +9,0 @@ span.setTag('requestMethod', ctx.method); |
{ | ||
"name": "egg-jaeger", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "", | ||
@@ -17,5 +17,5 @@ "eggPlugin": { | ||
"dependencies": { | ||
"async-local-storage": "^2.0.0", | ||
"async-local-storage": "github:sqlwwx/async-local-storage#7a5f7d1", | ||
"jaeger-client": "^3.13.0" | ||
} | ||
} |
GitHub dependency
Supply chain riskContains a dependency which resolves to a GitHub URL. Dependencies fetched from GitHub specifiers are not immutable can be used to inject untrusted code or reduce the likelihood of a reproducible install.
Found 1 instance in 1 package
6475
97
1
- Removedasync-local-storage@2.3.1(transitive)
- Removednano-seconds@1.2.2(transitive)
Updatedasync-local-storage@github:sqlwwx/async-local-storage#7a5f7d1