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

@opentelemetry/tracing

Package Overview
Dependencies
Maintainers
5
Versions
143
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentelemetry/tracing - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

2

build/src/BasicTracer.d.ts

@@ -48,3 +48,3 @@ /*!

*/
getCurrentSpan(): types.Span | null;
getCurrentSpan(): types.Span | undefined;
/**

@@ -51,0 +51,0 @@ * Enters the scope of code where the given Span is in the current context.

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

if (current === null || current === undefined) {
return null;
return;
}

@@ -91,0 +91,0 @@ else {

@@ -37,4 +37,5 @@ /*!

private _addToBuffer;
private _shouldFlush;
/** Send the span data list to exporter */
private _flush;
}

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

this._timer = setInterval(() => {
if (Date.now() - this._lastSpanFlush >= this._bufferTimeout) {
if (this._shouldFlush()) {
this._flush();

@@ -63,2 +63,6 @@ }

}
_shouldFlush() {
return (this._finishedSpans.length >= 0 &&
Date.now() - this._lastSpanFlush >= this._bufferTimeout);
}
/** Send the span data list to exporter */

@@ -65,0 +69,0 @@ _flush() {

@@ -56,4 +56,4 @@ /*!

toReadableSpan(): ReadableSpan;
readonly duration: types.HrTime;
get duration(): types.HrTime;
private _isSpanEnded;
}
{
"name": "@opentelemetry/tracing",
"version": "0.2.0",
"version": "0.3.0",
"description": "OpenTelemetry Tracing",

@@ -16,2 +16,3 @@ "main": "build/src/index.js",

"codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../",
"precompile": "tsc --version",
"compile": "tsc -p .",

@@ -53,4 +54,4 @@ "fix": "gts fix",

"@types/webpack-env": "1.13.9",
"codecov": "^3.1.0",
"gts": "^1.0.0",
"codecov": "^3.6.1",
"gts": "^1.1.0",
"istanbul-instrumenter-loader": "^3.0.1",

@@ -72,11 +73,11 @@ "karma": "^4.4.1",

"tslint-microsoft-contrib": "^6.2.0",
"typescript": "^3.6.3",
"typescript": "3.7.2",
"webpack": "^4.35.2"
},
"dependencies": {
"@opentelemetry/base": "^0.2.0",
"@opentelemetry/core": "^0.2.0",
"@opentelemetry/scope-base": "^0.2.0",
"@opentelemetry/types": "^0.2.0"
"@opentelemetry/base": "^0.3.0",
"@opentelemetry/core": "^0.3.0",
"@opentelemetry/scope-base": "^0.3.0",
"@opentelemetry/types": "^0.3.0"
}
}
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