🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@sentry/opentelemetry

Package Overview
Dependencies
Maintainers
10
Versions
206
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

to
9.0.0-alpha.0

2

build/esm/package.json

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

{"type":"module","version":"8.50.0","sideEffects":false}
{"type":"module","version":"9.0.0-alpha.0","sideEffects":false}

@@ -6,2 +6,4 @@ export declare const SENTRY_TRACE_HEADER = "sentry-trace";

export declare const SENTRY_TRACE_STATE_URL = "sentry.url";
export declare const SENTRY_TRACE_STATE_SAMPLE_RAND = "sentry.sample_rand";
export declare const SENTRY_TRACE_STATE_SAMPLE_RATE = "sentry.sample_rate";
export declare const SENTRY_SCOPES_CONTEXT_KEY: symbol;

@@ -8,0 +10,0 @@ export declare const SENTRY_FORK_ISOLATION_SCOPE_CONTEXT_KEY: symbol;

@@ -1,5 +0,6 @@

import { BaseClient, Client } from '@sentry/core';
import { Client } from '@sentry/core';
import { OpenTelemetryClient as OpenTelemetryClientInterface } from '../types';
/**
* Wrap an Client with things we need for OpenTelemetry support.
* Wrap an Client class with things we need for OpenTelemetry support.
* Make sure that the Client class passed in is non-abstract!
*

@@ -10,3 +11,3 @@ * Usage:

*/
export declare function wrapClientClass<ClassConstructor extends new (...args: any[]) => Client & BaseClient<any>, WrappedClassConstructor extends new (...args: any[]) => Client & BaseClient<any> & OpenTelemetryClientInterface>(ClientClass: ClassConstructor): WrappedClassConstructor;
export declare function wrapClientClass<ClassConstructor extends new (...args: any[]) => Client, WrappedClassConstructor extends new (...args: any[]) => Client & OpenTelemetryClientInterface>(ClientClass: ClassConstructor): WrappedClassConstructor;
//# sourceMappingURL=client.d.ts.map

@@ -11,16 +11,13 @@ export { SEMANTIC_ATTRIBUTE_SENTRY_GRAPHQL_OPERATION } from './semanticAttributes';

export { enhanceDscWithOpenTelemetryRootSpanName } from './utils/enhanceDscWithOpenTelemetryRootSpanName';
export { generateSpanContextForPropagationContext } from './utils/generateSpanContextForPropagationContext';
export { getActiveSpan } from './utils/getActiveSpan';
export { startSpan, startSpanManual, startInactiveSpan, withActiveSpan, continueTrace, getTraceContextForScope, } from './trace';
export { suppressTracing } from './utils/suppressTracing';
export { getCurrentHubShim } from '@sentry/core';
export { setupEventContextTrace } from './setupEventContextTrace';
export { setOpenTelemetryContextAsyncContextStrategy } from './asyncContextStrategy';
export { wrapContextManagerClass } from './contextManager';
export { SentryPropagator, getPropagationContextFromSpan, shouldPropagateTraceForUrl, } from './propagator';
export { SentryPropagator, shouldPropagateTraceForUrl, } from './propagator';
export { SentrySpanProcessor } from './spanProcessor';
export { SentrySampler, wrapSamplingDecision, } from './sampler';
export { openTelemetrySetupCheck } from './utils/setupCheck';
export { addOpenTelemetryInstrumentation } from './instrumentation';
export { getClient } from '@sentry/core';
//# sourceMappingURL=index.d.ts.map

@@ -1,7 +0,5 @@

import { Context, Span, TextMapGetter, TextMapSetter } from '@opentelemetry/api';
import { Context, TextMapGetter, TextMapSetter } from '@opentelemetry/api';
import { W3CBaggagePropagator } from '@opentelemetry/core';
import { DynamicSamplingContext, Options, PropagationContext, continueTrace } from '@sentry/core';
import { DynamicSamplingContext, Options, continueTrace } from '@sentry/core';
import { LRUMap } from '@sentry/core';
/** Get the Sentry propagation context from a span context. */
export declare function getPropagationContextFromSpan(span: Span): PropagationContext;
/**

@@ -8,0 +6,0 @@ * Injects and extracts `sentry-trace` and `baggage` headers from carriers.

@@ -22,7 +22,9 @@ import { Context } from '@opentelemetry/api';

*/
export declare function wrapSamplingDecision({ decision, context, spanAttributes, }: {
export declare function wrapSamplingDecision({ decision, context, spanAttributes, sampleRand, downstreamTraceSampleRate, }: {
decision: SamplingDecision | undefined;
context: Context;
spanAttributes: SpanAttributes;
sampleRand?: number;
downstreamTraceSampleRate?: number;
}): SamplingResult;
//# sourceMappingURL=sampler.d.ts.map

@@ -21,5 +21,4 @@ import { Context } from '@opentelemetry/api';

* Get the context related to a scope.
* TODO v8: Use this for the `trace` functions.
* */
*/
export declare function getContextFromScope(scope: Scope): Context | undefined;
//# sourceMappingURL=contextData.d.ts.map

@@ -6,2 +6,4 @@ export declare const SENTRY_TRACE_HEADER = "sentry-trace";

export declare const SENTRY_TRACE_STATE_URL = "sentry.url";
export declare const SENTRY_TRACE_STATE_SAMPLE_RAND = "sentry.sample_rand";
export declare const SENTRY_TRACE_STATE_SAMPLE_RATE = "sentry.sample_rate";
export declare const SENTRY_SCOPES_CONTEXT_KEY: symbol;

@@ -8,0 +10,0 @@ export declare const SENTRY_FORK_ISOLATION_SCOPE_CONTEXT_KEY: symbol;

@@ -1,5 +0,6 @@

import type { BaseClient, Client } from '@sentry/core';
import type { Client } from '@sentry/core';
import type { OpenTelemetryClient as OpenTelemetryClientInterface } from '../types';
/**
* Wrap an Client with things we need for OpenTelemetry support.
* Wrap an Client class with things we need for OpenTelemetry support.
* Make sure that the Client class passed in is non-abstract!
*

@@ -10,3 +11,3 @@ * Usage:

*/
export declare function wrapClientClass<ClassConstructor extends new (...args: any[]) => Client & BaseClient<any>, WrappedClassConstructor extends new (...args: any[]) => Client & BaseClient<any> & OpenTelemetryClientInterface>(ClientClass: ClassConstructor): WrappedClassConstructor;
export declare function wrapClientClass<ClassConstructor extends new (...args: any[]) => Client, WrappedClassConstructor extends new (...args: any[]) => Client & OpenTelemetryClientInterface>(ClientClass: ClassConstructor): WrappedClassConstructor;
//# sourceMappingURL=client.d.ts.map

@@ -11,16 +11,13 @@ export { SEMANTIC_ATTRIBUTE_SENTRY_GRAPHQL_OPERATION } from './semanticAttributes';

export { enhanceDscWithOpenTelemetryRootSpanName } from './utils/enhanceDscWithOpenTelemetryRootSpanName';
export { generateSpanContextForPropagationContext } from './utils/generateSpanContextForPropagationContext';
export { getActiveSpan } from './utils/getActiveSpan';
export { startSpan, startSpanManual, startInactiveSpan, withActiveSpan, continueTrace, getTraceContextForScope, } from './trace';
export { suppressTracing } from './utils/suppressTracing';
export { getCurrentHubShim } from '@sentry/core';
export { setupEventContextTrace } from './setupEventContextTrace';
export { setOpenTelemetryContextAsyncContextStrategy } from './asyncContextStrategy';
export { wrapContextManagerClass } from './contextManager';
export { SentryPropagator, getPropagationContextFromSpan, shouldPropagateTraceForUrl, } from './propagator';
export { SentryPropagator, shouldPropagateTraceForUrl, } from './propagator';
export { SentrySpanProcessor } from './spanProcessor';
export { SentrySampler, wrapSamplingDecision, } from './sampler';
export { openTelemetrySetupCheck } from './utils/setupCheck';
export { addOpenTelemetryInstrumentation } from './instrumentation';
export { getClient } from '@sentry/core';
//# sourceMappingURL=index.d.ts.map

@@ -1,7 +0,5 @@

import type { Context, Span, TextMapGetter, TextMapSetter } from '@opentelemetry/api';
import type { Context, TextMapGetter, TextMapSetter } from '@opentelemetry/api';
import { W3CBaggagePropagator } from '@opentelemetry/core';
import type { DynamicSamplingContext, Options, PropagationContext, continueTrace } from '@sentry/core';
import type { DynamicSamplingContext, Options, continueTrace } from '@sentry/core';
import { LRUMap } from '@sentry/core';
/** Get the Sentry propagation context from a span context. */
export declare function getPropagationContextFromSpan(span: Span): PropagationContext;
/**

@@ -8,0 +6,0 @@ * Injects and extracts `sentry-trace` and `baggage` headers from carriers.

@@ -22,7 +22,9 @@ import type { Context } from '@opentelemetry/api';

*/
export declare function wrapSamplingDecision({ decision, context, spanAttributes, }: {
export declare function wrapSamplingDecision({ decision, context, spanAttributes, sampleRand, downstreamTraceSampleRate, }: {
decision: SamplingDecision | undefined;
context: Context;
spanAttributes: SpanAttributes;
sampleRand?: number;
downstreamTraceSampleRate?: number;
}): SamplingResult;
//# sourceMappingURL=sampler.d.ts.map

@@ -21,5 +21,4 @@ import type { Context } from '@opentelemetry/api';

* Get the context related to a scope.
* TODO v8: Use this for the `trace` functions.
* */
*/
export declare function getContextFromScope(scope: Scope): Context | undefined;
//# sourceMappingURL=contextData.d.ts.map
{
"name": "@sentry/opentelemetry",
"version": "8.50.0",
"version": "9.0.0-alpha.0",
"description": "Official Sentry utilities for OpenTelemetry",

@@ -10,3 +10,3 @@ "repository": "git://github.com/getsentry/sentry-javascript.git",

"engines": {
"node": ">=14.18"
"node": ">=18"
},

@@ -33,3 +33,3 @@ "files": [

"typesVersions": {
"<4.9": {
"<5.0": {
"build/types/index.d.ts": [

@@ -44,9 +44,10 @@ "build/types-ts3.8/index.d.ts"

"dependencies": {
"@sentry/core": "8.50.0"
"@sentry/core": "9.0.0-alpha.0"
},
"peerDependencies": {
"@opentelemetry/api": "^1.9.0",
"@opentelemetry/core": "^1.29.0",
"@opentelemetry/instrumentation": "^0.56.0",
"@opentelemetry/sdk-trace-base": "^1.29.0",
"@opentelemetry/context-async-hooks": "^1.30.1",
"@opentelemetry/core": "^1.30.1",
"@opentelemetry/instrumentation": "^0.57.1",
"@opentelemetry/sdk-trace-base": "^1.30.1",
"@opentelemetry/semantic-conventions": "^1.28.0"

@@ -56,5 +57,6 @@ },

"@opentelemetry/api": "^1.9.0",
"@opentelemetry/context-async-hooks": "^1.29.0",
"@opentelemetry/core": "^1.29.0",
"@opentelemetry/sdk-trace-base": "^1.29.0",
"@opentelemetry/context-async-hooks": "^1.30.1",
"@opentelemetry/core": "^1.30.1",
"@opentelemetry/instrumentation": "^0.57.1",
"@opentelemetry/sdk-trace-base": "^1.30.1",
"@opentelemetry/semantic-conventions": "^1.28.0"

@@ -61,0 +63,0 @@ },

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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