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.99.0 to 7.100.0

2

cjs/propagator.js

@@ -61,3 +61,3 @@ var {

const { propagationContext } = utils.tracingContextFromHeaders(sentryTraceHeader, maybeBaggageHeader);
const propagationContext = utils.propagationContextFromHeaders(sentryTraceHeader, maybeBaggageHeader);

@@ -64,0 +64,0 @@ // Add propagation context to context

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

_spanKind,
_attributes,
spanAttributes,
_links,

@@ -54,2 +54,4 @@ ) {

const sampleRate = getSampleRate(options, {
name: spanName,
attributes: spanAttributes,
transactionContext: {

@@ -63,3 +65,3 @@ name: spanName,

const attributes = {
[semanticAttributes.InternalSentrySemanticAttributes.SAMPLE_RATE]: Number(sampleRate),
[core.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]: Number(sampleRate),
};

@@ -66,0 +68,0 @@

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

source,
sampleRate: span.attributes[semanticAttributes.InternalSentrySemanticAttributes.SAMPLE_RATE] ,
sampleRate: span.attributes[core$1.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE] ,
...metadata,

@@ -258,3 +258,3 @@ },

delete cleanedData[semanticAttributes.InternalSentrySemanticAttributes.SOURCE];
delete cleanedData[semanticAttributes.InternalSentrySemanticAttributes.SAMPLE_RATE];
delete cleanedData[core$1.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE];
/* eslint-enable @typescript-eslint/no-dynamic-delete */

@@ -261,0 +261,0 @@

@@ -5,3 +5,3 @@ import { _optionalChain } from '@sentry/utils';

import { getDynamicSamplingContextFromClient } from '@sentry/core';
import { SENTRY_BAGGAGE_KEY_PREFIX, generateSentryTraceHeader, tracingContextFromHeaders } from '@sentry/utils';
import { SENTRY_BAGGAGE_KEY_PREFIX, generateSentryTraceHeader, propagationContextFromHeaders } from '@sentry/utils';
import { SENTRY_TRACE_HEADER, SENTRY_BAGGAGE_HEADER } from './constants.js';

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

const { propagationContext } = tracingContextFromHeaders(sentryTraceHeader, maybeBaggageHeader);
const propagationContext = propagationContextFromHeaders(sentryTraceHeader, maybeBaggageHeader);

@@ -60,0 +60,0 @@ // Add propagation context to context

import { trace, isSpanContextValid, TraceFlags } from '@opentelemetry/api';
import { SamplingDecision } from '@opentelemetry/sdk-trace-base';
import { hasTracingEnabled } from '@sentry/core';
import { hasTracingEnabled, SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE } from '@sentry/core';
import { logger, isNaN } from '@sentry/utils';

@@ -24,3 +24,3 @@ import { DEBUG_BUILD } from './debug-build.js';

_spanKind,
_attributes,
spanAttributes,
_links,

@@ -52,2 +52,4 @@ ) {

const sampleRate = getSampleRate(options, {
name: spanName,
attributes: spanAttributes,
transactionContext: {

@@ -61,3 +63,3 @@ name: spanName,

const attributes = {
[InternalSentrySemanticAttributes.SAMPLE_RATE]: Number(sampleRate),
[SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]: Number(sampleRate),
};

@@ -64,0 +66,0 @@

import { SpanKind } from '@opentelemetry/api';
import { ExportResultCode } from '@opentelemetry/core';
import { SemanticAttributes } from '@opentelemetry/semantic-conventions';
import { flush, getCurrentScope } from '@sentry/core';
import { flush, getCurrentScope, SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE } from '@sentry/core';
import { logger } from '@sentry/utils';

@@ -169,3 +169,3 @@ import { getCurrentHub } from './custom/hub.js';

source,
sampleRate: span.attributes[InternalSentrySemanticAttributes.SAMPLE_RATE] ,
sampleRate: span.attributes[SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE] ,
...metadata,

@@ -256,3 +256,3 @@ },

delete cleanedData[InternalSentrySemanticAttributes.SOURCE];
delete cleanedData[InternalSentrySemanticAttributes.SAMPLE_RATE];
delete cleanedData[SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE];
/* eslint-enable @typescript-eslint/no-dynamic-delete */

@@ -259,0 +259,0 @@

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

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

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

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

@@ -11,3 +11,3 @@ import { Context } from '@opentelemetry/api';

/** @inheritDoc */
shouldSample(context: Context, traceId: string, spanName: string, _spanKind: unknown, _attributes: unknown, _links: unknown): SamplingResult;
shouldSample(context: Context, traceId: string, spanName: string, _spanKind: unknown, spanAttributes: unknown, _links: unknown): SamplingResult;
/** Returns the sampler name or short description with the configuration. */

@@ -14,0 +14,0 @@ toString(): string;

@@ -11,3 +11,3 @@ import type { Context } from '@opentelemetry/api';

/** @inheritDoc */
shouldSample(context: Context, traceId: string, spanName: string, _spanKind: unknown, _attributes: unknown, _links: unknown): SamplingResult;
shouldSample(context: Context, traceId: string, spanName: string, _spanKind: unknown, spanAttributes: unknown, _links: unknown): SamplingResult;
/** Returns the sampler name or short description with the configuration. */

@@ -14,0 +14,0 @@ toString(): string;

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