New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@opentelemetry/exporter-jaeger

Package Overview
Dependencies
Maintainers
4
Versions
206
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentelemetry/exporter-jaeger - npm Package Compare versions

Comparing version 0.16.1-alpha.15 to 0.16.1-alpha.17

30

build/src/transform.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc