@opentelemetry/exporter-jaeger
Advanced tools
Comparing version 0.4.0 to 0.5.0
@@ -27,4 +27,5 @@ "use strict"; | ||
function spanToThrift(span) { | ||
const traceIdHigh = span.spanContext.traceId.slice(0, 16); | ||
const traceIdLow = span.spanContext.traceId.slice(16); | ||
const traceId = span.spanContext.traceId.padStart(32, '0'); | ||
const traceIdHigh = traceId.slice(0, 16); | ||
const traceIdLow = traceId.slice(16); | ||
const parentSpan = span.parentSpanId | ||
@@ -47,2 +48,6 @@ ? types_1.Utils.encodeInt64(span.parentSpanId) | ||
} | ||
Object.keys(span.resource.labels).forEach(name => tags.push({ | ||
key: name, | ||
value: toTagValue(span.resource.labels[name]), | ||
})); | ||
const spanTags = types_1.ThriftUtils.getThriftTags(tags); | ||
@@ -77,8 +82,8 @@ const logs = span.events.map((event) => { | ||
.map((link) => { | ||
if (link.spanContext.spanId === parentSpanId) { | ||
if (link.context.spanId === parentSpanId) { | ||
const refType = types_1.ThriftReferenceType.CHILD_OF; | ||
const traceId = link.spanContext.traceId; | ||
const traceId = link.context.traceId; | ||
const traceIdHigh = types_1.Utils.encodeInt64(traceId.slice(0, 16)); | ||
const traceIdLow = types_1.Utils.encodeInt64(traceId.slice(16)); | ||
const spanId = types_1.Utils.encodeInt64(link.spanContext.spanId); | ||
const spanId = types_1.Utils.encodeInt64(link.context.spanId); | ||
return { traceIdLow, traceIdHigh, spanId, refType }; | ||
@@ -85,0 +90,0 @@ } |
@@ -16,2 +16,2 @@ /*! | ||
*/ | ||
export declare const VERSION = "0.4.0"; | ||
export declare const VERSION = "0.5.0"; |
@@ -19,3 +19,3 @@ "use strict"; | ||
// this is autogenerated file, see scripts/version-update.js | ||
exports.VERSION = '0.4.0'; | ||
exports.VERSION = '0.5.0'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@opentelemetry/exporter-jaeger", | ||
"version": "0.4.0", | ||
"version": "0.5.0", | ||
"description": "OpenTelemetry Exporter Jaeger allows user to send collected traces to Jaeger", | ||
@@ -9,11 +9,11 @@ "main": "build/src/index.js", | ||
"scripts": { | ||
"test": "nyc ts-mocha -p tsconfig.json 'test/**/*.ts'", | ||
"test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'", | ||
"tdd": "npm run test -- --watch-extensions ts --watch", | ||
"codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", | ||
"clean": "rimraf build/*", | ||
"check": "gts check", | ||
"lint": "gts check", | ||
"lint:fix": "gts fix", | ||
"precompile": "tsc --version", | ||
"version:update": "node ../../scripts/version-update.js", | ||
"compile": "npm run version:update && tsc -p .", | ||
"fix": "gts fix", | ||
"prepare": "npm run compile" | ||
@@ -44,2 +44,3 @@ }, | ||
"devDependencies": { | ||
"@opentelemetry/resources": "^0.5.0", | ||
"@types/mocha": "^5.2.7", | ||
@@ -59,8 +60,8 @@ "@types/node": "^12.6.9", | ||
"dependencies": { | ||
"@opentelemetry/api": "^0.4.0", | ||
"@opentelemetry/base": "^0.4.0", | ||
"@opentelemetry/core": "^0.4.0", | ||
"@opentelemetry/tracing": "^0.4.0", | ||
"@opentelemetry/api": "^0.5.0", | ||
"@opentelemetry/base": "^0.5.0", | ||
"@opentelemetry/core": "^0.5.0", | ||
"@opentelemetry/tracing": "^0.5.0", | ||
"jaeger-client": "^3.15.0" | ||
} | ||
} |
35170
457
13
+ Added@opentelemetry/api@0.5.2(transitive)
+ Added@opentelemetry/base@0.5.2(transitive)
+ Added@opentelemetry/context-base@0.5.2(transitive)
+ Added@opentelemetry/core@0.5.2(transitive)
+ Added@opentelemetry/resources@0.5.2(transitive)
+ Added@opentelemetry/tracing@0.5.2(transitive)
+ Addedsemver@7.6.3(transitive)
- Removed@opentelemetry/api@0.4.0(transitive)
- Removed@opentelemetry/base@0.4.0(transitive)
- Removed@opentelemetry/core@0.4.0(transitive)
- Removed@opentelemetry/scope-base@0.4.0(transitive)
- Removed@opentelemetry/tracing@0.4.0(transitive)
- Removedsemver@6.3.1(transitive)
Updated@opentelemetry/api@^0.5.0
Updated@opentelemetry/base@^0.5.0
Updated@opentelemetry/core@^0.5.0