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

zipkin

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zipkin - npm Package Compare versions

Comparing version 0.14.0 to 0.14.1

29

index.d.ts

@@ -38,3 +38,3 @@ // TypeScript type definitions

local<V>(name: string, callback: () => V): V;
createRootId(isSampled?: option.IOption, isDebug?: boolean): TraceId;
createRootId(isSampled?: option.IOption<boolean>, isDebug?: boolean): TraceId;
createChildId(): TraceId;

@@ -44,5 +44,5 @@ letId<V>(traceId: TraceId, callback: () => V): V;

recordAnnotation(annotation: IAnnotation): void;
recordMessage(message: any): void;
recordServiceName(serviceName: any): void;
recordRpc(name: any): void;
recordMessage(message: string): void;
recordServiceName(serviceName: string): void;
recordRpc(name: string): void;
recordClientAddr(inetAddress: InetAddress): void;

@@ -56,8 +56,2 @@ recordServerAddr(inetAddress: InetAddress): void;

class TraceId {
_traceId: option.IOption<string>;
_parentId: option.IOption<string>;
_spanId: string;
_sampled: option.IOption<boolean>;
_flags: number;
readonly traceId: string;

@@ -75,3 +69,3 @@ readonly parentId: string;

spanId?: string,
sampled?: option.IOption<string>,
sampled?: option.IOption<boolean>,
flags?: number

@@ -84,2 +78,3 @@ });

const createNoopTracer: () => void;
const randomTraceId: () => string;

@@ -123,2 +118,6 @@ namespace option {

}
function isOptional(data: any): boolean;
function verifyIsOptional(data: any): void; // Throw error is not a valid option
function fromNullable<V>(nullable: V): IOption<V>;
}

@@ -198,2 +197,10 @@

}
class LocalOperationStart implements IAnnotation {
constructor(name: string);
readonly annotationType: string;
name: string;
}
class LocalOperationStop implements IAnnotation {
readonly annotationType: string;
}

@@ -200,0 +207,0 @@ class Message implements IAnnotation {

@@ -8,2 +8,3 @@ 'use strict';

var createNoopTracer = require('./tracer/noop');
var randomTraceId = require('./tracer/randomTraceId');
var TraceId = require('./tracer/TraceId');

@@ -30,2 +31,3 @@ var sampler = require('./tracer/sampler');

createNoopTracer: createNoopTracer,
randomTraceId: randomTraceId,
TraceId: TraceId,

@@ -32,0 +34,0 @@ option: option,

@@ -125,4 +125,5 @@ 'use strict';

module.exports.None = None;
module.exports.isOptional = isOptional;
module.exports.verifyIsOptional = verifyIsOptional;
module.exports.verifyIsNotOptional = verifyIsNotOptional;
module.exports.fromNullable = fromNullable;
{
"name": "zipkin",
"version": "0.14.0",
"version": "0.14.1",
"description": "The core tracer for zipkin.js",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -6,2 +6,3 @@ const option = require('./option');

const createNoopTracer = require('./tracer/noop');
const randomTraceId = require('./tracer/randomTraceId');
const TraceId = require('./tracer/TraceId');

@@ -28,2 +29,3 @@ const sampler = require('./tracer/sampler');

createNoopTracer,
randomTraceId,
TraceId,

@@ -30,0 +32,0 @@ option,

@@ -100,4 +100,5 @@ const None = {

module.exports.None = None;
module.exports.isOptional = isOptional;
module.exports.verifyIsOptional = verifyIsOptional;
module.exports.verifyIsNotOptional = verifyIsNotOptional;
module.exports.fromNullable = fromNullable;
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