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

@opentelemetry/exporter-zipkin

Package Overview
Dependencies
Maintainers
4
Versions
211
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 0.19.1-alpha.39 to 0.19.1-alpha.41

4

build/esm/transform.d.ts
import * as api from '@opentelemetry/api';
import { ReadableSpan } from '@opentelemetry/tracing';
import { ReadableSpan, TimedEvent } from '@opentelemetry/tracing';
import * as zipkinTypes from './types';

@@ -17,3 +17,3 @@ import { Resource } from '@opentelemetry/resources';

*/
export declare function _toZipkinAnnotations(events: api.TimedEvent[]): zipkinTypes.Annotation[];
export declare function _toZipkinAnnotations(events: TimedEvent[]): zipkinTypes.Annotation[];
//# sourceMappingURL=transform.d.ts.map

@@ -36,6 +36,6 @@ /*

var zipkinSpan = {
traceId: span.spanContext.traceId,
traceId: span.spanContext().traceId,
parentId: span.parentSpanId,
name: span.name,
id: span.spanContext.spanId,
id: span.spanContext().spanId,
kind: ZIPKIN_SPAN_KIND_MAPPING[span.kind],

@@ -42,0 +42,0 @@ timestamp: hrTimeToMicroseconds(span.startTime),

@@ -20,3 +20,3 @@ /*

import { toZipkinSpan, statusCodeTagName, statusDescriptionTagName, } from './transform';
import { SERVICE_RESOURCE } from '@opentelemetry/resources';
import { ResourceAttributes } from '@opentelemetry/semantic-conventions';
import { prepareGetHeaders } from './utils';

@@ -52,3 +52,3 @@ /**

if (typeof this._serviceName !== 'string') {
this._serviceName = String(spans[0].resource.attributes[SERVICE_RESOURCE.NAME] ||
this._serviceName = String(spans[0].resource.attributes[ResourceAttributes.SERVICE_NAME] ||
this.DEFAULT_SERVICE_NAME);

@@ -106,4 +106,4 @@ }

var zipkinSpans = spans.map(function (span) {
return toZipkinSpan(span, String(span.attributes[SERVICE_RESOURCE.NAME] ||
span.resource.attributes[SERVICE_RESOURCE.NAME] ||
return toZipkinSpan(span, String(span.attributes[ResourceAttributes.SERVICE_NAME] ||
span.resource.attributes[ResourceAttributes.SERVICE_NAME] ||
serviceName), _this._statusCodeTagName, _this._statusDescriptionTagName);

@@ -110,0 +110,0 @@ });

import * as api from '@opentelemetry/api';
import { ReadableSpan } from '@opentelemetry/tracing';
import { ReadableSpan, TimedEvent } from '@opentelemetry/tracing';
import * as zipkinTypes from './types';

@@ -17,3 +17,3 @@ import { Resource } from '@opentelemetry/resources';

*/
export declare function _toZipkinAnnotations(events: api.TimedEvent[]): zipkinTypes.Annotation[];
export declare function _toZipkinAnnotations(events: TimedEvent[]): zipkinTypes.Annotation[];
//# sourceMappingURL=transform.d.ts.map

@@ -38,6 +38,6 @@ "use strict";

const zipkinSpan = {
traceId: span.spanContext.traceId,
traceId: span.spanContext().traceId,
parentId: span.parentSpanId,
name: span.name,
id: span.spanContext.spanId,
id: span.spanContext().spanId,
kind: ZIPKIN_SPAN_KIND_MAPPING[span.kind],

@@ -44,0 +44,0 @@ timestamp: core_1.hrTimeToMicroseconds(span.startTime),

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

const transform_1 = require("./transform");
const resources_1 = require("@opentelemetry/resources");
const semantic_conventions_1 = require("@opentelemetry/semantic-conventions");
const utils_1 = require("./utils");

@@ -53,3 +53,3 @@ /**

if (typeof this._serviceName !== 'string') {
this._serviceName = String(spans[0].resource.attributes[resources_1.SERVICE_RESOURCE.NAME] ||
this._serviceName = String(spans[0].resource.attributes[semantic_conventions_1.ResourceAttributes.SERVICE_NAME] ||
this.DEFAULT_SERVICE_NAME);

@@ -102,4 +102,4 @@ }

_sendSpans(spans, serviceName, done) {
const zipkinSpans = spans.map(span => transform_1.toZipkinSpan(span, String(span.attributes[resources_1.SERVICE_RESOURCE.NAME] ||
span.resource.attributes[resources_1.SERVICE_RESOURCE.NAME] ||
const zipkinSpans = spans.map(span => transform_1.toZipkinSpan(span, String(span.attributes[semantic_conventions_1.ResourceAttributes.SERVICE_NAME] ||
span.resource.attributes[semantic_conventions_1.ResourceAttributes.SERVICE_NAME] ||
serviceName), this._statusCodeTagName, this._statusDescriptionTagName));

@@ -106,0 +106,0 @@ this._beforeSend();

{
"name": "@opentelemetry/exporter-zipkin",
"version": "0.19.1-alpha.39+23ba4bfd",
"version": "0.19.1-alpha.41+7fa4ff70",
"description": "OpenTelemetry Zipkin Exporter allows the user to send collected traces to Zipkin.",

@@ -54,6 +54,6 @@ "main": "build/src/index.js",

"devDependencies": {
"@babel/core": "7.13.16",
"@opentelemetry/api": "^1.0.0-rc.0",
"@babel/core": "7.14.0",
"@opentelemetry/api": "^0.20.0",
"@types/mocha": "8.2.2",
"@types/node": "14.14.41",
"@types/node": "14.14.43",
"@types/sinon": "9.0.11",

@@ -63,3 +63,2 @@ "@types/webpack-env": "1.16.0",

"codecov": "3.8.1",
"gts": "3.1.0",
"istanbul-instrumenter-loader": "3.0.1",

@@ -71,3 +70,3 @@ "karma": "5.2.3",

"karma-spec-reporter": "0.0.32",
"karma-webpack": "5.0.0",
"karma-webpack": "4.0.2",
"mocha": "7.2.0",

@@ -78,3 +77,3 @@ "nock": "12.0.3",

"sinon": "10.0.0",
"ts-loader": "8.1.0",
"ts-loader": "8.2.0",
"ts-mocha": "8.0.0",

@@ -88,10 +87,11 @@ "ts-node": "9.1.1",

"peerDependencies": {
"@opentelemetry/api": "^1.0.0-rc.0"
"@opentelemetry/api": "^0.20.0"
},
"dependencies": {
"@opentelemetry/core": "^0.19.1-alpha.39+23ba4bfd",
"@opentelemetry/resources": "^0.19.1-alpha.39+23ba4bfd",
"@opentelemetry/tracing": "^0.19.1-alpha.39+23ba4bfd"
"@opentelemetry/core": "^0.19.0",
"@opentelemetry/resources": "^0.19.0",
"@opentelemetry/semantic-conventions": "^0.19.0",
"@opentelemetry/tracing": "^0.19.1-alpha.41+7fa4ff70"
},
"gitHead": "23ba4bfdc77c8bf594bf0c817320a31f59ca0bd4"
"gitHead": "7fa4ff70d1aad5875cb14c6bff99c838228447bb"
}

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