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

zipkin-javascript-opentracing

Package Overview
Dependencies
Maintainers
2
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zipkin-javascript-opentracing - npm Package Compare versions

Comparing version 0.1.3 to 0.2.0

11

__tests__/index.js

@@ -574,13 +574,6 @@ const opentracing = require('opentracing');

it('should return a valid without http headers', () => {
it('should return null without http headers', () => {
expect(() => {
const span = tracer.extract(Tracer.FORMAT_HTTP_HEADERS, {});
expect(zipkinTracer.scoped).toHaveBeenCalled();
zipkinTracer.scoped.mock.calls[0][0]();
expect(span.id.traceId).toBeDefined();
expect(span.id.spanId).toBeDefined();
expect(span.id.sampled).toBeDefined();
expect(span.log).toBeInstanceOf(Function);
expect(span.finish).toBeInstanceOf(Function);
expect(span).toBe(null);
}).not.toThrowError();

@@ -587,0 +580,0 @@ });

4

index.js

@@ -247,2 +247,6 @@ const {

if (!carrier[HttpHeaders.TraceId]) {
return null;
}
// XXX: no empty string here v

@@ -249,0 +253,0 @@ // We should send the span name too

{
"name": "zipkin-javascript-opentracing",
"version": "0.1.3",
"version": "0.2.0",
"description": "An opentracing implementation for zipkin",

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

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