@opentelemetry/exporter-jaeger
Advanced tools
Comparing version 0.16.1-alpha.15 to 0.16.1-alpha.17
@@ -35,6 +35,10 @@ "use strict"; | ||
const tags = Object.keys(span.attributes).map((name) => ({ key: name, value: toTagValue(span.attributes[name]) })); | ||
tags.push({ key: 'status.code', value: span.status.code }); | ||
tags.push({ key: 'status.name', value: api_1.SpanStatusCode[span.status.code] }); | ||
if (span.status.message) { | ||
tags.push({ key: 'status.message', value: span.status.message }); | ||
if (span.status.code !== api_1.SpanStatusCode.UNSET) { | ||
tags.push({ | ||
key: 'otel.status_code', | ||
value: api_1.SpanStatusCode[span.status.code], | ||
}); | ||
if (span.status.message) { | ||
tags.push({ key: 'otel.status_description', value: span.status.message }); | ||
} | ||
} | ||
@@ -46,4 +50,4 @@ // Ensure that if SpanStatus.Code is ERROR, that we set the "error" tag on the | ||
} | ||
if (span.kind !== undefined) { | ||
tags.push({ key: 'span.kind', value: api_1.SpanKind[span.kind] }); | ||
if (span.kind !== undefined && span.kind !== api_1.SpanKind.INTERNAL) { | ||
tags.push({ key: 'span.kind', value: api_1.SpanKind[span.kind].toLowerCase() }); | ||
} | ||
@@ -54,5 +58,15 @@ Object.keys(span.resource.attributes).forEach(name => tags.push({ | ||
})); | ||
if (span.instrumentationLibrary) { | ||
tags.push({ | ||
key: 'otel.library.name', | ||
value: toTagValue(span.instrumentationLibrary.name), | ||
}); | ||
tags.push({ | ||
key: 'otel.library.version', | ||
value: toTagValue(span.instrumentationLibrary.version), | ||
}); | ||
} | ||
const spanTags = types_1.ThriftUtils.getThriftTags(tags); | ||
const logs = span.events.map((event) => { | ||
const fields = [{ key: 'message.id', value: event.name }]; | ||
const fields = [{ key: 'event', value: event.name }]; | ||
const attrs = event.attributes; | ||
@@ -85,3 +99,3 @@ if (attrs) { | ||
if (link.context.spanId === parentSpanId) { | ||
const refType = types_1.ThriftReferenceType.CHILD_OF; | ||
const refType = types_1.ThriftReferenceType.FOLLOWS_FROM; | ||
const traceId = link.context.traceId; | ||
@@ -88,0 +102,0 @@ const traceIdHigh = types_1.Utils.encodeInt64(traceId.slice(0, 16)); |
{ | ||
"name": "@opentelemetry/exporter-jaeger", | ||
"version": "0.16.1-alpha.15+1d682c2f", | ||
"version": "0.16.1-alpha.17+06c7ec7d", | ||
"description": "OpenTelemetry Exporter Jaeger allows user to send collected traces to Jaeger", | ||
@@ -43,3 +43,3 @@ "main": "build/src/index.js", | ||
"devDependencies": { | ||
"@opentelemetry/resources": "^0.16.1-alpha.15+1d682c2f", | ||
"@opentelemetry/resources": "^0.16.0", | ||
"@types/mocha": "8.2.0", | ||
@@ -60,8 +60,8 @@ "@types/node": "14.14.20", | ||
"dependencies": { | ||
"@opentelemetry/api": "^0.16.1-alpha.15+1d682c2f", | ||
"@opentelemetry/core": "^0.16.1-alpha.15+1d682c2f", | ||
"@opentelemetry/tracing": "^0.16.1-alpha.15+1d682c2f", | ||
"@opentelemetry/api": "^0.16.0", | ||
"@opentelemetry/core": "^0.16.0", | ||
"@opentelemetry/tracing": "^0.16.0", | ||
"jaeger-client": "^3.15.0" | ||
}, | ||
"gitHead": "1d682c2f75f9d11265cfc1692fa822174594d4b0" | ||
"gitHead": "06c7ec7def3c250660684d57973547044bbee753" | ||
} |
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
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
44956
453
+ Added@opentelemetry/api@0.16.0(transitive)
+ Added@opentelemetry/core@0.16.0(transitive)
+ Added@opentelemetry/resources@0.16.0(transitive)
+ Added@opentelemetry/tracing@0.16.0(transitive)
- Removed@opentelemetry/api@0.16.1-alpha.20(transitive)
- Removed@opentelemetry/core@0.16.1-alpha.20(transitive)
- Removed@opentelemetry/resources@0.16.1-alpha.20(transitive)
- Removed@opentelemetry/tracing@0.16.1-alpha.20(transitive)
Updated@opentelemetry/api@^0.16.0
Updated@opentelemetry/core@^0.16.0