Socket
Socket
Sign inDemoInstall

@opentelemetry/tracing

Package Overview
Dependencies
Maintainers
4
Versions
143
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentelemetry/tracing - npm Package Compare versions

Comparing version 0.19.1-alpha.31 to 0.19.1-alpha.33

6

build/esm/export/BatchSpanProcessor.js

@@ -16,4 +16,4 @@ /*

*/
import { context, suppressInstrumentation } from '@opentelemetry/api';
import { ExportResultCode, globalErrorHandler, unrefTimer, getEnv, } from '@opentelemetry/core';
import { context } from '@opentelemetry/api';
import { ExportResultCode, getEnv, globalErrorHandler, suppressTracing, unrefTimer, } from '@opentelemetry/core';
/**

@@ -124,3 +124,3 @@ * Implementation of the {@link SpanProcessor} that batches spans exported by

// prevent downstream exporter calls from generating spans
context.with(suppressInstrumentation(context.active()), function () {
context.with(suppressTracing(context.active()), function () {
// Reset the finished spans buffer here because the next invocations of the _flush method

@@ -127,0 +127,0 @@ // could pass the same finished spans to the exporter if the buffer is cleared

import { Span } from '../Span';
import { SpanExporter } from './SpanExporter';
import { SpanProcessor } from '../SpanProcessor';
import { ReadableSpan } from './ReadableSpan';
import { SpanExporter } from './SpanExporter';
/**

@@ -6,0 +6,0 @@ * An implementation of the {@link SpanProcessor} that converts the {@link Span}

@@ -16,4 +16,4 @@ /*

*/
import { context, suppressInstrumentation } from '@opentelemetry/api';
import { ExportResultCode, globalErrorHandler } from '@opentelemetry/core';
import { context } from '@opentelemetry/api';
import { ExportResultCode, globalErrorHandler, suppressTracing, } from '@opentelemetry/core';
/**

@@ -43,3 +43,3 @@ * An implementation of the {@link SpanProcessor} that converts the {@link Span}

// prevent downstream exporter calls from generating spans
context.with(suppressInstrumentation(context.active()), function () {
context.with(suppressTracing(context.active()), function () {
_this._exporter.export([span], function (result) {

@@ -46,0 +46,0 @@ var _a;

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

import * as api from '@opentelemetry/api';
import { RandomIdGenerator, sanitizeAttributes, } from '@opentelemetry/core';
import { RandomIdGenerator, sanitizeAttributes, isTracingSuppressed, } from '@opentelemetry/core';
import { Span } from './Span';

@@ -45,3 +45,3 @@ import { mergeConfig } from './utility';

if (context === void 0) { context = api.context.active(); }
if (api.isInstrumentationSuppressed(context)) {
if (isTracingSuppressed(context)) {
api.diag.debug('Instrumentation suppressed, returning Noop Span');

@@ -48,0 +48,0 @@ return api.NOOP_TRACER.startSpan(name, options, context);

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

// prevent downstream exporter calls from generating spans
api_1.context.with(api_1.suppressInstrumentation(api_1.context.active()), () => {
api_1.context.with(core_1.suppressTracing(api_1.context.active()), () => {
// Reset the finished spans buffer here because the next invocations of the _flush method

@@ -126,0 +126,0 @@ // could pass the same finished spans to the exporter if the buffer is cleared

import { Span } from '../Span';
import { SpanExporter } from './SpanExporter';
import { SpanProcessor } from '../SpanProcessor';
import { ReadableSpan } from './ReadableSpan';
import { SpanExporter } from './SpanExporter';
/**

@@ -6,0 +6,0 @@ * An implementation of the {@link SpanProcessor} that converts the {@link Span}

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

// prevent downstream exporter calls from generating spans
api_1.context.with(api_1.suppressInstrumentation(api_1.context.active()), () => {
api_1.context.with(core_1.suppressTracing(api_1.context.active()), () => {
this._exporter.export([span], result => {

@@ -47,0 +47,0 @@ var _a;

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

var _a, _b;
if (api.isInstrumentationSuppressed(context)) {
if (core_1.isTracingSuppressed(context)) {
api.diag.debug('Instrumentation suppressed, returning Noop Span');

@@ -48,0 +48,0 @@ return api.NOOP_TRACER.startSpan(name, options, context);

{
"name": "@opentelemetry/tracing",
"version": "0.19.1-alpha.31+24adbd61",
"version": "0.19.1-alpha.33+c85fbe66",
"description": "OpenTelemetry Tracing",

@@ -84,8 +84,8 @@ "main": "build/src/index.js",

"dependencies": {
"@opentelemetry/core": "^0.19.1-alpha.31+24adbd61",
"@opentelemetry/resources": "^0.19.1-alpha.31+24adbd61",
"@opentelemetry/semantic-conventions": "^0.19.1-alpha.31+24adbd61",
"@opentelemetry/core": "^0.19.1-alpha.33+c85fbe66",
"@opentelemetry/resources": "^0.19.1-alpha.33+c85fbe66",
"@opentelemetry/semantic-conventions": "^0.19.0",
"lodash.merge": "^4.6.2"
},
"gitHead": "24adbd61062759f9d9d57420fd97e50f4d8c3b16"
"gitHead": "c85fbe6682b9a8fd52e4b99bdbb079833b04e845"
}

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