Socket
Socket
Sign inDemoInstall

@sentry/opentelemetry

Package Overview
Dependencies
Maintainers
11
Versions
123
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sentry/opentelemetry - npm Package Compare versions

Comparing version 7.98.0 to 7.99.0

4

cjs/spanExporter.js

@@ -153,5 +153,3 @@ Object.defineProperty(exports, '__esModule', { value: true });

const parentSampled = span.attributes[semanticAttributes.InternalSentrySemanticAttributes.PARENT_SAMPLED] ;
const dynamicSamplingContext = scope
? scope.getPropagationContext().dsc
: undefined;
const dynamicSamplingContext = scope ? scope.getPropagationContext().dsc : undefined;

@@ -158,0 +156,0 @@ const { op, description, tags, data, origin, source } = getSpanData(span);

Object.defineProperty(exports, '__esModule', { value: true });
const api = require('@opentelemetry/api');
const core = require('@sentry/core');
const core = require('@opentelemetry/core');
const core$1 = require('@sentry/core');
const hub = require('./custom/hub.js');

@@ -23,6 +24,10 @@ const semanticAttributes = require('./semanticAttributes.js');

return tracer.startActiveSpan(name, spanContext, span => {
const activeCtx = api.context.active();
const shouldSkipSpan = spanContext.onlyIfParent && !api.trace.getSpan(activeCtx);
const ctx = shouldSkipSpan ? core.suppressTracing(activeCtx) : activeCtx;
return tracer.startActiveSpan(name, spanContext, ctx, span => {
_applySentryAttributesToSpan(span, spanContext);
return core.handleCallbackErrors(
return core$1.handleCallbackErrors(
() => callback(span),

@@ -51,6 +56,10 @@ () => {

return tracer.startActiveSpan(name, spanContext, span => {
const activeCtx = api.context.active();
const shouldSkipSpan = spanContext.onlyIfParent && !api.trace.getSpan(activeCtx);
const ctx = shouldSkipSpan ? core.suppressTracing(activeCtx) : activeCtx;
return tracer.startActiveSpan(name, spanContext, ctx, span => {
_applySentryAttributesToSpan(span, spanContext);
return core.handleCallbackErrors(
return core$1.handleCallbackErrors(
() => callback(span),

@@ -79,4 +88,8 @@ () => {

const span = tracer.startSpan(name, spanContext);
const activeCtx = api.context.active();
const shouldSkipSpan = spanContext.onlyIfParent && !api.trace.getSpan(activeCtx);
const ctx = shouldSkipSpan ? core.suppressTracing(activeCtx) : activeCtx;
const span = tracer.startSpan(name, spanContext, ctx);
_applySentryAttributesToSpan(span, spanContext);

@@ -89,3 +102,3 @@

const client = hub.getClient();
return (client && client.tracer) || api.trace.getTracer('@sentry/opentelemetry', core.SDK_VERSION);
return (client && client.tracer) || api.trace.getTracer('@sentry/opentelemetry', core$1.SDK_VERSION);
}

@@ -92,0 +105,0 @@

@@ -151,5 +151,3 @@ import { SpanKind } from '@opentelemetry/api';

const parentSampled = span.attributes[InternalSentrySemanticAttributes.PARENT_SAMPLED] ;
const dynamicSamplingContext = scope
? scope.getPropagationContext().dsc
: undefined;
const dynamicSamplingContext = scope ? scope.getPropagationContext().dsc : undefined;

@@ -156,0 +154,0 @@ const { op, description, tags, data, origin, source } = getSpanData(span);

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

import { SpanStatusCode, trace } from '@opentelemetry/api';
import { context, trace, SpanStatusCode } from '@opentelemetry/api';
import { suppressTracing } from '@opentelemetry/core';
import { handleCallbackErrors, SDK_VERSION } from '@sentry/core';

@@ -21,3 +22,7 @@ import { getClient } from './custom/hub.js';

return tracer.startActiveSpan(name, spanContext, span => {
const activeCtx = context.active();
const shouldSkipSpan = spanContext.onlyIfParent && !trace.getSpan(activeCtx);
const ctx = shouldSkipSpan ? suppressTracing(activeCtx) : activeCtx;
return tracer.startActiveSpan(name, spanContext, ctx, span => {
_applySentryAttributesToSpan(span, spanContext);

@@ -49,3 +54,7 @@

return tracer.startActiveSpan(name, spanContext, span => {
const activeCtx = context.active();
const shouldSkipSpan = spanContext.onlyIfParent && !trace.getSpan(activeCtx);
const ctx = shouldSkipSpan ? suppressTracing(activeCtx) : activeCtx;
return tracer.startActiveSpan(name, spanContext, ctx, span => {
_applySentryAttributesToSpan(span, spanContext);

@@ -77,4 +86,8 @@

const span = tracer.startSpan(name, spanContext);
const activeCtx = context.active();
const shouldSkipSpan = spanContext.onlyIfParent && !trace.getSpan(activeCtx);
const ctx = shouldSkipSpan ? suppressTracing(activeCtx) : activeCtx;
const span = tracer.startSpan(name, spanContext, ctx);
_applySentryAttributesToSpan(span, spanContext);

@@ -81,0 +94,0 @@

{
"name": "@sentry/opentelemetry",
"version": "7.98.0",
"version": "7.99.0",
"description": "Official Sentry utilities for OpenTelemetry",

@@ -32,5 +32,5 @@ "repository": "git://github.com/getsentry/sentry-javascript.git",

"dependencies": {
"@sentry/core": "7.98.0",
"@sentry/types": "7.98.0",
"@sentry/utils": "7.98.0"
"@sentry/core": "7.99.0",
"@sentry/types": "7.99.0",
"@sentry/utils": "7.99.0"
},

@@ -37,0 +37,0 @@ "peerDependencies": {

@@ -15,2 +15,3 @@ import { Attributes, Span as WriteableSpan, SpanKind, TimeInput, Tracer } from '@opentelemetry/api';

scope?: Scope;
onlyIfParent?: boolean;
attributes?: Attributes;

@@ -17,0 +18,0 @@ kind?: SpanKind;

@@ -15,2 +15,3 @@ import type { Attributes, Span as WriteableSpan, SpanKind, TimeInput, Tracer } from '@opentelemetry/api';

scope?: Scope;
onlyIfParent?: boolean;
attributes?: Attributes;

@@ -17,0 +18,0 @@ kind?: SpanKind;

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

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