Socket
Socket
Sign inDemoInstall

@opencensus/propagation-b3

Package Overview
Dependencies
8
Maintainers
7
Versions
23
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.14 to 0.0.15

12

build/src/b3-format.js

@@ -42,3 +42,3 @@ "use strict";

spanId,
options: isNaN(Number(opt)) ? exports.NOT_SAMPLED_VALUE : Number(opt)
options: isNaN(Number(opt)) ? exports.NOT_SAMPLED_VALUE : Number(opt),
};

@@ -54,3 +54,4 @@ }

inject(setter, spanContext) {
if (!spanContext || !validators_1.isValidTraceId(spanContext.traceId) ||
if (!spanContext ||
!validators_1.isValidTraceId(spanContext.traceId) ||
!validators_1.isValidSpanId(spanContext.spanId)) {

@@ -73,5 +74,8 @@ return;

return {
traceId: uuid.v4().split('-').join(''),
traceId: uuid
.v4()
.split('-')
.join(''),
spanId: crypto.randomBytes(8).toString('hex'),
options: exports.SAMPLED_VALUE
options: exports.SAMPLED_VALUE,
};

@@ -78,0 +82,0 @@ }

{
"name": "@opencensus/propagation-b3",
"version": "0.0.14",
"version": "0.0.15",
"description": "Opencensus propagation package for B3 format.",

@@ -55,4 +55,4 @@ "main": "build/src/index.js",

"@types/uuid": "^3.4.3",
"codecov": "^3.4.0",
"gts": "^0.9.0",
"codecov": "^3.5.0",
"gts": "^1.0.0",
"mocha": "^6.1.0",

@@ -66,5 +66,5 @@ "nyc": "^14.0.0",

"dependencies": {
"@opencensus/core": "^0.0.14",
"@opencensus/core": "^0.0.15",
"uuid": "^3.2.1"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc