@opentelemetry/exporter-jaeger
Advanced tools
Comparing version 0.12.1-alpha.54 to 0.13.0
export * from './jaeger'; | ||
export { ExporterConfig } from './types'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -65,7 +65,7 @@ "use strict"; | ||
if (spans.length === 0) { | ||
return resultCallback(core_1.ExportResult.SUCCESS); | ||
return resultCallback({ code: core_1.ExportResultCode.SUCCESS }); | ||
} | ||
this._logger.debug('Jaeger exporter export'); | ||
this._sendSpans(spans, resultCallback).catch(err => { | ||
core_1.globalErrorHandler(err); | ||
this._sendSpans(spans, resultCallback).catch(error => { | ||
return resultCallback({ code: core_1.ExportResultCode.FAILED, error }); | ||
}); | ||
@@ -115,7 +115,6 @@ } | ||
} | ||
catch (err) { | ||
core_1.globalErrorHandler(err); | ||
catch (error) { | ||
// TODO right now we break out on first error, is that desirable? | ||
if (done) | ||
return done(core_1.ExportResult.FAILED_NOT_RETRYABLE); | ||
return done({ code: core_1.ExportResultCode.FAILED, error }); | ||
} | ||
@@ -127,3 +126,3 @@ } | ||
if (done) | ||
return done(core_1.ExportResult.SUCCESS); | ||
return done({ code: core_1.ExportResultCode.SUCCESS }); | ||
} | ||
@@ -130,0 +129,0 @@ async _append(span) { |
@@ -36,3 +36,3 @@ "use strict"; | ||
tags.push({ key: 'status.code', value: span.status.code }); | ||
tags.push({ key: 'status.name', value: api_1.CanonicalCode[span.status.code] }); | ||
tags.push({ key: 'status.name', value: api_1.StatusCode[span.status.code] }); | ||
if (span.status.message) { | ||
@@ -43,3 +43,3 @@ tags.push({ key: 'status.message', value: span.status.message }); | ||
// Jaeger span. | ||
if (span.status.code !== api_1.CanonicalCode.OK) { | ||
if (span.status.code !== api_1.StatusCode.OK) { | ||
tags.push({ key: 'error', value: true }); | ||
@@ -46,0 +46,0 @@ } |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "0.12.1-alpha.54+3f72613a"; | ||
export declare const VERSION = "0.13.0"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -20,3 +20,3 @@ "use strict"; | ||
// this is autogenerated file, see scripts/version-update.js | ||
exports.VERSION = '0.12.1-alpha.54+3f72613a'; | ||
exports.VERSION = '0.13.0'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@opentelemetry/exporter-jaeger", | ||
"version": "0.12.1-alpha.54+3f72613a", | ||
"version": "0.13.0", | ||
"description": "OpenTelemetry Exporter Jaeger allows user to send collected traces to Jaeger", | ||
@@ -45,7 +45,7 @@ "main": "build/src/index.js", | ||
"devDependencies": { | ||
"@opentelemetry/resources": "^0.12.1-alpha.54+3f72613a", | ||
"@types/mocha": "8.0.2", | ||
"@types/node": "14.0.27", | ||
"@types/sinon": "^9.0.8", | ||
"codecov": "3.7.2", | ||
"@opentelemetry/resources": "^0.13.0", | ||
"@types/mocha": "8.0.4", | ||
"@types/node": "14.14.10", | ||
"@types/sinon": "9.0.9", | ||
"codecov": "3.8.1", | ||
"gts": "2.0.2", | ||
@@ -56,4 +56,4 @@ "mocha": "7.2.0", | ||
"rimraf": "3.0.2", | ||
"sinon": "^9.2.0", | ||
"ts-mocha": "7.0.0", | ||
"sinon": "9.2.1", | ||
"ts-mocha": "8.0.0", | ||
"ts-node": "9.0.0", | ||
@@ -63,8 +63,8 @@ "typescript": "3.9.7" | ||
"dependencies": { | ||
"@opentelemetry/api": "^0.12.1-alpha.54+3f72613a", | ||
"@opentelemetry/core": "^0.12.1-alpha.54+3f72613a", | ||
"@opentelemetry/tracing": "^0.12.1-alpha.54+3f72613a", | ||
"@opentelemetry/api": "^0.13.0", | ||
"@opentelemetry/core": "^0.13.0", | ||
"@opentelemetry/tracing": "^0.13.0", | ||
"jaeger-client": "^3.15.0" | ||
}, | ||
"gitHead": "3f72613a36b6f97555a0fa7481755cf8b6cce1a7" | ||
"gitHead": "86cbd6798f9318c5920f9d9055f289a1c3f26500" | ||
} |
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
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
43994
1
+ Added@opentelemetry/api@0.13.0(transitive)
+ Added@opentelemetry/context-base@0.13.0(transitive)
+ Added@opentelemetry/core@0.13.0(transitive)
+ Added@opentelemetry/resources@0.13.0(transitive)
+ Added@opentelemetry/semantic-conventions@0.13.0(transitive)
+ Added@opentelemetry/tracing@0.13.0(transitive)
- Removed@opentelemetry/api@0.12.1-alpha.54(transitive)
- Removed@opentelemetry/context-base@0.12.1-alpha.54(transitive)
- Removed@opentelemetry/core@0.12.1-alpha.54(transitive)
- Removed@opentelemetry/resources@0.12.1-alpha.54(transitive)
- Removed@opentelemetry/semantic-conventions@0.12.1-alpha.54(transitive)
- Removed@opentelemetry/tracing@0.12.1-alpha.54(transitive)
Updated@opentelemetry/api@^0.13.0
Updated@opentelemetry/core@^0.13.0