jaeger-tracer
Advanced tools
Comparing version 1.0.22 to 1.0.23
@@ -1,4 +0,6 @@ | ||
export declare let associateNMSWithReqBeforeGoingNext: import("continuation-local-storage").Func<void>; | ||
export declare let saveToCls: import("continuation-local-storage").Func<void>; | ||
export declare let getFromCls: import("continuation-local-storage").Func<void>; | ||
export declare let getContext: import("continuation-local-storage").Func<void>; | ||
import { Namespace } from 'cls-hooked'; | ||
import { Span } from './interfaces/jaegaer-span.interface'; | ||
export declare let associateNMSWithReqBeforeGoingNext: (req: any, res: any, next: Function, mainSpan: Span, interceptorMiddleware: Function) => void; | ||
export declare let saveToCls: (key: string, value: any) => any; | ||
export declare let getFromCls: (key: string) => any; | ||
export declare let getContext: () => Namespace; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var continuation_local_storage_1 = require("continuation-local-storage"); | ||
var cls_hooked_1 = require("cls-hooked"); | ||
var constants_1 = require("./constants"); | ||
var session = continuation_local_storage_1.createNamespace(constants_1.constants.clsNamespace); | ||
var session = cls_hooked_1.createNamespace(constants_1.constants.clsNamespace); | ||
exports.associateNMSWithReqBeforeGoingNext = session.bind(function (req, res, next, mainSpan, interceptorMiddleware) { | ||
@@ -7,0 +7,0 @@ session.bindEmitter(req); |
@@ -6,4 +6,4 @@ export declare let initTracer: (serviceName: string, config?: import("./interfaces/jaeger-client-config.interface").Config, options?: import("./interfaces/jaeger-client-config.interface").Options) => import("./interfaces/jaegar-tracer.interface").Tracer; | ||
export declare let jaegarTracerMiddleware: (serviceName: string, config?: import("./interfaces/jaeger-client-config.interface").Config | undefined, options?: import("./interfaces/jaeger-client-config.interface").Options | undefined) => (req: import("express-serve-static-core").Request, res: import("express-serve-static-core").Response, next: Function) => void; | ||
export declare let getContext: import("continuation-local-storage").Func<void>; | ||
export declare let unirestWrapper: any; | ||
export declare let requestWrapper: any; | ||
export declare let getContext: () => import("cls-hooked").Namespace; | ||
export declare let unirestWrapper: (unirest: any) => any; | ||
export declare let requestWrapper: (request: any) => any; |
@@ -8,3 +8,2 @@ "use strict"; | ||
var requestWrappers_1 = require("./requestWrappers"); | ||
var session = ClsManager_1.getContext(); | ||
exports.initTracer = tracer_1.initTracer; | ||
@@ -16,4 +15,4 @@ exports.makeSpan = span_1.makeSpan; | ||
exports.getContext = ClsManager_1.getContext; | ||
exports.unirestWrapper = session.bind(requestWrappers_1.unirestWrapper); | ||
exports.requestWrapper = session.bind(requestWrappers_1.requestWrapper); | ||
exports.unirestWrapper = requestWrappers_1.unirestWrapper; | ||
exports.requestWrapper = requestWrappers_1.requestWrapper; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "jaeger-tracer", | ||
"version": "1.0.22", | ||
"version": "1.0.23", | ||
"description": "client library for jaegar to ease out the instrumenting in express and any other backend application based on express in nodejs", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
@@ -1,2 +0,2 @@ | ||
import { createNamespace, Namespace, getNamespace } from 'continuation-local-storage'; | ||
import { createNamespace, Namespace, getNamespace } from 'cls-hooked'; | ||
import { constants } from './constants'; | ||
@@ -3,0 +3,0 @@ import { Span } from './interfaces/jaegaer-span.interface'; |
@@ -7,3 +7,2 @@ import { getContext as gc } from './ClsManager'; | ||
let session: any = gc(); | ||
@@ -37,3 +36,3 @@ /** | ||
*/ | ||
export let unirestWrapper = session.bind(uw); | ||
export let requestWrapper = session.bind(rw); | ||
export let unirestWrapper = uw; | ||
export let requestWrapper = rw; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
69058