@opentelemetry/tracing
Advanced tools
Comparing version 0.2.0 to 0.3.0
@@ -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" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
67341
1354
+ Added@opentelemetry/base@0.3.3(transitive)
+ Added@opentelemetry/core@0.3.3(transitive)
+ Added@opentelemetry/scope-base@0.3.3(transitive)
+ Added@opentelemetry/types@0.3.3(transitive)
- Removed@opentelemetry/base@0.2.0(transitive)
- Removed@opentelemetry/core@0.2.0(transitive)
- Removed@opentelemetry/scope-base@0.2.0(transitive)
- Removed@opentelemetry/types@0.2.0(transitive)
Updated@opentelemetry/base@^0.3.0
Updated@opentelemetry/core@^0.3.0
Updated@opentelemetry/types@^0.3.0