@opentelemetry/tracing
Advanced tools
Comparing version 0.10.2 to 0.10.3-alpha.28
@@ -13,2 +13,3 @@ import * as api from '@opentelemetry/api'; | ||
private readonly _tracers; | ||
private _cleanNotifyOnGlobalShutdown; | ||
activeSpanProcessor: NoopSpanProcessor; | ||
@@ -33,3 +34,5 @@ readonly logger: api.Logger; | ||
register(config?: SDKRegistrationConfig): void; | ||
shutdown(cb?: () => void): void; | ||
private _shutdownActiveProcessor; | ||
} | ||
//# sourceMappingURL=BasicTracerProvider.d.ts.map |
@@ -41,2 +41,5 @@ "use strict"; | ||
}); | ||
if (this._config.gracefulShutdown) { | ||
this._cleanNotifyOnGlobalShutdown = core_1.notifyOnGlobalShutdown(this._shutdownActiveProcessor.bind(this)); | ||
} | ||
} | ||
@@ -82,4 +85,14 @@ getTracer(name, version = '*', config) { | ||
} | ||
shutdown(cb = () => { }) { | ||
this.activeSpanProcessor.shutdown(cb); | ||
if (this._cleanNotifyOnGlobalShutdown) { | ||
this._cleanNotifyOnGlobalShutdown(); | ||
this._cleanNotifyOnGlobalShutdown = undefined; | ||
} | ||
} | ||
_shutdownActiveProcessor() { | ||
this.activeSpanProcessor.shutdown(); | ||
} | ||
} | ||
exports.BasicTracerProvider = BasicTracerProvider; | ||
//# sourceMappingURL=BasicTracerProvider.js.map |
@@ -22,3 +22,4 @@ import { AlwaysOnSampler } from '@opentelemetry/core'; | ||
}; | ||
gracefulShutdown: boolean; | ||
}; | ||
//# sourceMappingURL=config.d.ts.map |
@@ -40,3 +40,4 @@ "use strict"; | ||
}, | ||
gracefulShutdown: true, | ||
}; | ||
//# sourceMappingURL=config.js.map |
@@ -23,2 +23,4 @@ import { HttpTextPropagator, Logger, Sampler } from '@opentelemetry/api'; | ||
resource?: Resource; | ||
/** Bool for whether or not graceful shutdown is enabled. If disabled spans will not be exported when SIGTERM is recieved */ | ||
gracefulShutdown?: boolean; | ||
/** | ||
@@ -25,0 +27,0 @@ * Generator of trace and span IDs |
@@ -15,2 +15,3 @@ import { TracerConfig } from './types'; | ||
}; | ||
gracefulShutdown: boolean; | ||
} & { | ||
@@ -17,0 +18,0 @@ sampler: ParentOrElseSampler; |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "0.10.2"; | ||
export declare const VERSION = "0.10.3-alpha.28+d68ff0f"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -20,3 +20,3 @@ "use strict"; | ||
// this is autogenerated file, see scripts/version-update.js | ||
exports.VERSION = '0.10.2'; | ||
exports.VERSION = '0.10.3-alpha.28+d68ff0f'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@opentelemetry/tracing", | ||
"version": "0.10.2", | ||
"version": "0.10.3-alpha.28+d68ff0f", | ||
"description": "OpenTelemetry Tracing", | ||
@@ -53,3 +53,3 @@ "main": "build/src/index.js", | ||
"devDependencies": { | ||
"@types/mocha": "8.0.0", | ||
"@types/mocha": "8.0.2", | ||
"@types/node": "14.0.27", | ||
@@ -70,4 +70,4 @@ "@types/sinon": "9.0.4", | ||
"rimraf": "3.0.2", | ||
"sinon": "9.0.2", | ||
"ts-loader": "8.0.1", | ||
"sinon": "9.0.3", | ||
"ts-loader": "8.0.2", | ||
"ts-mocha": "7.0.0", | ||
@@ -82,5 +82,5 @@ "ts-node": "8.10.2", | ||
"@opentelemetry/core": "^0.10.2", | ||
"@opentelemetry/resources": "^0.10.2" | ||
"@opentelemetry/resources": "^0.10.3-alpha.28+d68ff0f" | ||
}, | ||
"gitHead": "b247e69034a7888a842fe75e0a5ff06f8bea44a8" | ||
"gitHead": "d68ff0fb7594f6a367cb7a5057cfb2875e8c082f" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
86649
1348
1
+ Added@opentelemetry/api@0.10.3-canary.0(transitive)
+ Added@opentelemetry/context-base@0.10.3-canary.0(transitive)
+ Added@opentelemetry/core@0.10.3-canary.0(transitive)
+ Added@opentelemetry/resources@0.10.3-canary.0(transitive)
- Removed@opentelemetry/resources@0.10.2(transitive)