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.17 to 1.0.18

2

build/ClsManager.d.ts

@@ -1,2 +0,2 @@

import { Namespace } from 'continuation-local-storage';
import { Namespace } from 'cls-hooked';
import { Span } from './interfaces/jaegaer-span.interface';

@@ -3,0 +3,0 @@ export declare let associateNMSWithReqBeforeGoingNext: (req: any, res: any, next: Function, mainSpan: Span, interceptorMiddleware: Function) => void;

"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.getNamespace(constants_1.constants.clsNamespace);
var session = cls_hooked_1.createNamespace(constants_1.constants.clsNamespace);
exports.associateNMSWithReqBeforeGoingNext = function (req, res, next, mainSpan, interceptorMiddleware) {

@@ -7,0 +7,0 @@ session.bindEmitter(req);

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 makeSpan: import("continuation-local-storage").Func<void>;
export declare let makeSpanWithParent: import("continuation-local-storage").Func<void>;
export declare let spanMaker: import("continuation-local-storage").Func<void>;
export declare let jaegarTracerMiddleware: import("continuation-local-storage").Func<void>;
export declare let getContext: import("continuation-local-storage").Func<void>;
export declare let unirestWrapper: import("continuation-local-storage").Func<void>;
export declare let requestWrapper: import("continuation-local-storage").Func<void>;
export declare let makeSpan: (name: string) => import("./interfaces/jaegaer-span.interface").Span;
export declare let makeSpanWithParent: (name: string, parentContext: import("./interfaces/jaegaer-span.interface").SpanContext) => import("./interfaces/jaegaer-span.interface").Span;
export declare let spanMaker: (name: string, parentContext: import("./interfaces/jaegaer-span.interface").SpanContext | null, tracer: import("./interfaces/jaegar-tracer.interface").Tracer) => import("./interfaces/jaegaer-span.interface").Span;
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("cls-hooked").Namespace;
export declare let unirestWrapper: (unirest: any) => any;
export declare let requestWrapper: (request: any) => any;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var continuation_local_storage_1 = require("continuation-local-storage");
var session = continuation_local_storage_1.createNamespace(constants_1.constants.clsNamespace);
var ClsManager_1 = require("./ClsManager");
var tracer_1 = require("./tracer");
var span_1 = require("./span");
var middleware_1 = require("./middleware");
var ClsManager_1 = require("./ClsManager");
var requestWrappers_1 = require("./requestWrappers");
var constants_1 = require("./constants");
exports.initTracer = tracer_1.initTracer;
exports.makeSpan = session.bind(span_1.makeSpan);
exports.makeSpanWithParent = session.bind(span_1.makeSpanWithParent);
exports.spanMaker = session.bind(span_1.spanMaker);
exports.jaegarTracerMiddleware = session.bind(middleware_1.jaegarTracerMiddleWare);
exports.getContext = session.bind(ClsManager_1.getContext);
exports.unirestWrapper = session.bind(requestWrappers_1.unirestWrapper);
exports.requestWrapper = session.bind(requestWrappers_1.requestWrapper);
exports.makeSpan = span_1.makeSpan;
exports.makeSpanWithParent = span_1.makeSpanWithParent;
exports.spanMaker = span_1.spanMaker;
exports.jaegarTracerMiddleware = middleware_1.jaegarTracerMiddleWare;
exports.getContext = ClsManager_1.getContext;
exports.unirestWrapper = requestWrappers_1.unirestWrapper;
exports.requestWrapper = requestWrappers_1.requestWrapper;
//# sourceMappingURL=index.js.map
{
"name": "jaeger-tracer",
"version": "1.0.17",
"version": "1.0.18",
"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,5 +0,5 @@

import { createNamespace, Namespace, getNamespace } from 'continuation-local-storage';
import { createNamespace, Namespace, getNamespace } from 'cls-hooked';
import { constants } from './constants';
import { Span } from './interfaces/jaegaer-span.interface';
let session = getNamespace(constants.clsNamespace);
let session = createNamespace(constants.clsNamespace);

@@ -6,0 +6,0 @@ /**

@@ -1,10 +0,6 @@

import { createNamespace } from 'continuation-local-storage';
let session = createNamespace(constants.clsNamespace);
import { getContext as gc } from './ClsManager';
import { initTracer as tracerFunc } from "./tracer";
import { makeSpan as ms, makeSpanWithParent as msp, spanMaker as sm } from './span';
import { jaegarTracerMiddleWare as jtm } from './middleware';
import { getContext as gc } from './ClsManager';
import { requestWrapper as rw, unirestWrapper as uw } from './requestWrappers';
import { constants } from './constants';

@@ -19,5 +15,5 @@ /**

*/
export let makeSpan = session.bind(ms);
export let makeSpanWithParent = session.bind(msp);
export let spanMaker = session.bind(sm);
export let makeSpan = ms;
export let makeSpanWithParent = msp;
export let spanMaker = sm;

@@ -27,3 +23,3 @@ /**

*/
export let jaegarTracerMiddleware = session.bind(jtm);
export let jaegarTracerMiddleware = jtm;

@@ -34,3 +30,3 @@

*/
export let getContext = session.bind(gc);
export let getContext = gc;

@@ -41,3 +37,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