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

jaeger-tracer

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jaeger-tracer - npm Package Compare versions

Comparing version 1.0.22 to 1.0.23

10

build/ClsManager.d.ts

@@ -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;

4

build/ClsManager.js
"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

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