koa-opentracing
Advanced tools
Comparing version 1.3.6 to 1.3.7
@@ -40,15 +40,17 @@ // Type definitions for koa-opentracing 1.3 | ||
declare class HTTPCarrier implements koaOpentracing.Carrier { | ||
inject(spanContext: koaOpentracing.SpanContext): koaOpentracing.spanContextCarrier | ||
extract(header: Object): koaOpentracing.spanContextCarrier | ||
} | ||
declare namespace global { | ||
class HTTPCarrier implements koaOpentracing.Carrier { | ||
inject(spanContext: koaOpentracing.SpanContext): koaOpentracing.spanContextCarrier | ||
extract(header: Object): koaOpentracing.spanContextCarrier | ||
} | ||
declare class ConstSampler implements koaOpentracing.Sampler { | ||
constructor(decision: Boolean) | ||
isSampled(ctx: Koa.Context): Boolean | ||
} | ||
class ConstSampler implements koaOpentracing.Sampler { | ||
constructor(decision: Boolean) | ||
isSampled(ctx: Koa.Context): Boolean | ||
} | ||
declare class ZipkinLogger implements koaOpentracing.Logger { | ||
constructor(opt: koaOpentracing.ZipkinLoggerOptions) | ||
log(span: koaOpentracing.Span): void | ||
class ZipkinLogger implements koaOpentracing.Logger { | ||
constructor(opt: koaOpentracing.ZipkinLoggerOptions) | ||
log(span: koaOpentracing.Span): void | ||
} | ||
} | ||
@@ -55,0 +57,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"types": "global.d.ts", | ||
"version": "1.3.6", | ||
"version": "1.3.7", | ||
"repository": "https://github.com/teambition/koa-opentracing.git", | ||
@@ -8,0 +8,0 @@ "author": "cnwangjie", |
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
187927
1333