Socket
Socket
Sign inDemoInstall

@opentelemetry/exporter-zipkin

Package Overview
Dependencies
Maintainers
2
Versions
206
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentelemetry/exporter-zipkin - npm Package Compare versions

Comparing version 1.9.1 to 1.10.0

6

build/esm/transform.d.ts

@@ -1,5 +0,3 @@

import * as api from '@opentelemetry/api';
import { ReadableSpan, TimedEvent } from '@opentelemetry/sdk-trace-base';
import * as zipkinTypes from './types';
import { Resource } from '@opentelemetry/resources';
export declare const defaultStatusCodeTagName = "otel.status_code";

@@ -12,4 +10,4 @@ export declare const defaultStatusErrorTagName = "error";

export declare function toZipkinSpan(span: ReadableSpan, serviceName: string, statusCodeTagName: string, statusErrorTagName: string): zipkinTypes.Span;
/** Converts OpenTelemetry SpanAttributes and SpanStatus to Zipkin Tags format. */
export declare function _toZipkinTags(attributes: api.SpanAttributes, status: api.SpanStatus, statusCodeTagName: string, statusErrorTagName: string, resource: Resource): zipkinTypes.Tags;
/** Converts OpenTelemetry Span properties to Zipkin Tags format. */
export declare function _toZipkinTags({ attributes, resource, status, droppedAttributesCount, droppedEventsCount, droppedLinksCount, }: ReadableSpan, statusCodeTagName: string, statusErrorTagName: string): zipkinTypes.Tags;
/**

@@ -16,0 +14,0 @@ * Converts OpenTelemetry Events to Zipkin Annotations format.

@@ -55,3 +55,3 @@ /*

localEndpoint: { serviceName: serviceName },
tags: _toZipkinTags(span.attributes, span.status, statusCodeTagName, statusErrorTagName, span.resource),
tags: _toZipkinTags(span, statusCodeTagName, statusErrorTagName),
annotations: span.events.length

@@ -63,9 +63,10 @@ ? _toZipkinAnnotations(span.events)

}
/** Converts OpenTelemetry SpanAttributes and SpanStatus to Zipkin Tags format. */
export function _toZipkinTags(attributes, status, statusCodeTagName, statusErrorTagName, resource) {
var e_1, _a;
/** Converts OpenTelemetry Span properties to Zipkin Tags format. */
export function _toZipkinTags(_a, statusCodeTagName, statusErrorTagName) {
var e_1, _b;
var attributes = _a.attributes, resource = _a.resource, status = _a.status, droppedAttributesCount = _a.droppedAttributesCount, droppedEventsCount = _a.droppedEventsCount, droppedLinksCount = _a.droppedLinksCount;
var tags = {};
try {
for (var _b = __values(Object.keys(attributes)), _c = _b.next(); !_c.done; _c = _b.next()) {
var key = _c.value;
for (var _c = __values(Object.keys(attributes)), _d = _c.next(); !_d.done; _d = _c.next()) {
var key = _d.value;
tags[key] = String(attributes[key]);

@@ -77,3 +78,3 @@ }

try {
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
if (_d && !_d.done && (_b = _c.return)) _b.call(_c);
}

@@ -88,2 +89,14 @@ finally { if (e_1) throw e_1.error; }

}
/* Add droppedAttributesCount as a tag */
if (droppedAttributesCount) {
tags['otel.dropped_attributes_count'] = String(droppedAttributesCount);
}
/* Add droppedEventsCount as a tag */
if (droppedEventsCount) {
tags['otel.dropped_events_count'] = String(droppedEventsCount);
}
/* Add droppedLinksCount as a tag */
if (droppedLinksCount) {
tags['otel.dropped_links_count'] = String(droppedLinksCount);
}
Object.keys(resource.attributes).forEach(function (name) { return (tags[name] = String(resource.attributes[name])); });

@@ -90,0 +103,0 @@ return tags;

@@ -1,2 +0,2 @@

export declare const VERSION = "1.9.1";
export declare const VERSION = "1.10.0";
//# sourceMappingURL=version.d.ts.map

@@ -17,3 +17,3 @@ /*

// this is autogenerated file, see scripts/version-update.js
export var VERSION = '1.9.1';
export var VERSION = '1.10.0';
//# sourceMappingURL=version.js.map

@@ -1,5 +0,3 @@

import * as api from '@opentelemetry/api';
import { ReadableSpan, TimedEvent } from '@opentelemetry/sdk-trace-base';
import * as zipkinTypes from './types';
import { Resource } from '@opentelemetry/resources';
export declare const defaultStatusCodeTagName = "otel.status_code";

@@ -12,4 +10,4 @@ export declare const defaultStatusErrorTagName = "error";

export declare function toZipkinSpan(span: ReadableSpan, serviceName: string, statusCodeTagName: string, statusErrorTagName: string): zipkinTypes.Span;
/** Converts OpenTelemetry SpanAttributes and SpanStatus to Zipkin Tags format. */
export declare function _toZipkinTags(attributes: api.SpanAttributes, status: api.SpanStatus, statusCodeTagName: string, statusErrorTagName: string, resource: Resource): zipkinTypes.Tags;
/** Converts OpenTelemetry Span properties to Zipkin Tags format. */
export declare function _toZipkinTags({ attributes, resource, status, droppedAttributesCount, droppedEventsCount, droppedLinksCount, }: ReadableSpan, statusCodeTagName: string, statusErrorTagName: string): zipkinTypes.Tags;
/**

@@ -16,0 +14,0 @@ * Converts OpenTelemetry Events to Zipkin Annotations format.

@@ -43,3 +43,3 @@ /*

localEndpoint: { serviceName },
tags: _toZipkinTags(span.attributes, span.status, statusCodeTagName, statusErrorTagName, span.resource),
tags: _toZipkinTags(span, statusCodeTagName, statusErrorTagName),
annotations: span.events.length

@@ -51,4 +51,4 @@ ? _toZipkinAnnotations(span.events)

}
/** Converts OpenTelemetry SpanAttributes and SpanStatus to Zipkin Tags format. */
export function _toZipkinTags(attributes, status, statusCodeTagName, statusErrorTagName, resource) {
/** Converts OpenTelemetry Span properties to Zipkin Tags format. */
export function _toZipkinTags({ attributes, resource, status, droppedAttributesCount, droppedEventsCount, droppedLinksCount, }, statusCodeTagName, statusErrorTagName) {
const tags = {};

@@ -64,2 +64,14 @@ for (const key of Object.keys(attributes)) {

}
/* Add droppedAttributesCount as a tag */
if (droppedAttributesCount) {
tags['otel.dropped_attributes_count'] = String(droppedAttributesCount);
}
/* Add droppedEventsCount as a tag */
if (droppedEventsCount) {
tags['otel.dropped_events_count'] = String(droppedEventsCount);
}
/* Add droppedLinksCount as a tag */
if (droppedLinksCount) {
tags['otel.dropped_links_count'] = String(droppedLinksCount);
}
Object.keys(resource.attributes).forEach(name => (tags[name] = String(resource.attributes[name])));

@@ -66,0 +78,0 @@ return tags;

@@ -1,2 +0,2 @@

export declare const VERSION = "1.9.1";
export declare const VERSION = "1.10.0";
//# sourceMappingURL=version.d.ts.map

@@ -17,3 +17,3 @@ /*

// this is autogenerated file, see scripts/version-update.js
export const VERSION = '1.9.1';
export const VERSION = '1.10.0';
//# sourceMappingURL=version.js.map

@@ -1,5 +0,3 @@

import * as api from '@opentelemetry/api';
import { ReadableSpan, TimedEvent } from '@opentelemetry/sdk-trace-base';
import * as zipkinTypes from './types';
import { Resource } from '@opentelemetry/resources';
export declare const defaultStatusCodeTagName = "otel.status_code";

@@ -12,4 +10,4 @@ export declare const defaultStatusErrorTagName = "error";

export declare function toZipkinSpan(span: ReadableSpan, serviceName: string, statusCodeTagName: string, statusErrorTagName: string): zipkinTypes.Span;
/** Converts OpenTelemetry SpanAttributes and SpanStatus to Zipkin Tags format. */
export declare function _toZipkinTags(attributes: api.SpanAttributes, status: api.SpanStatus, statusCodeTagName: string, statusErrorTagName: string, resource: Resource): zipkinTypes.Tags;
/** Converts OpenTelemetry Span properties to Zipkin Tags format. */
export declare function _toZipkinTags({ attributes, resource, status, droppedAttributesCount, droppedEventsCount, droppedLinksCount, }: ReadableSpan, statusCodeTagName: string, statusErrorTagName: string): zipkinTypes.Tags;
/**

@@ -16,0 +14,0 @@ * Converts OpenTelemetry Events to Zipkin Annotations format.

@@ -46,3 +46,3 @@ "use strict";

localEndpoint: { serviceName },
tags: _toZipkinTags(span.attributes, span.status, statusCodeTagName, statusErrorTagName, span.resource),
tags: _toZipkinTags(span, statusCodeTagName, statusErrorTagName),
annotations: span.events.length

@@ -55,4 +55,4 @@ ? _toZipkinAnnotations(span.events)

exports.toZipkinSpan = toZipkinSpan;
/** Converts OpenTelemetry SpanAttributes and SpanStatus to Zipkin Tags format. */
function _toZipkinTags(attributes, status, statusCodeTagName, statusErrorTagName, resource) {
/** Converts OpenTelemetry Span properties to Zipkin Tags format. */
function _toZipkinTags({ attributes, resource, status, droppedAttributesCount, droppedEventsCount, droppedLinksCount, }, statusCodeTagName, statusErrorTagName) {
const tags = {};

@@ -68,2 +68,14 @@ for (const key of Object.keys(attributes)) {

}
/* Add droppedAttributesCount as a tag */
if (droppedAttributesCount) {
tags['otel.dropped_attributes_count'] = String(droppedAttributesCount);
}
/* Add droppedEventsCount as a tag */
if (droppedEventsCount) {
tags['otel.dropped_events_count'] = String(droppedEventsCount);
}
/* Add droppedLinksCount as a tag */
if (droppedLinksCount) {
tags['otel.dropped_links_count'] = String(droppedLinksCount);
}
Object.keys(resource.attributes).forEach(name => (tags[name] = String(resource.attributes[name])));

@@ -70,0 +82,0 @@ return tags;

@@ -1,2 +0,2 @@

export declare const VERSION = "1.9.1";
export declare const VERSION = "1.10.0";
//# sourceMappingURL=version.d.ts.map

@@ -20,3 +20,3 @@ "use strict";

// this is autogenerated file, see scripts/version-update.js
exports.VERSION = '1.9.1';
exports.VERSION = '1.10.0';
//# sourceMappingURL=version.js.map
{
"name": "@opentelemetry/exporter-zipkin",
"version": "1.9.1",
"version": "1.10.0",
"description": "OpenTelemetry Zipkin Exporter allows the user to send collected traces to Zipkin.",

@@ -94,10 +94,10 @@ "main": "build/src/index.js",

"dependencies": {
"@opentelemetry/core": "1.9.1",
"@opentelemetry/resources": "1.9.1",
"@opentelemetry/sdk-trace-base": "1.9.1",
"@opentelemetry/semantic-conventions": "1.9.1"
"@opentelemetry/core": "1.10.0",
"@opentelemetry/resources": "1.10.0",
"@opentelemetry/sdk-trace-base": "1.10.0",
"@opentelemetry/semantic-conventions": "1.10.0"
},
"homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-exporter-zipkin",
"sideEffects": false,
"gitHead": "279458e7ddf16f7ddca5fe60c78672e05fafce66"
"gitHead": "56e6b1bb890f844b8963a146780d0b9cfa8abd0d"
}

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

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

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