Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sentry/opentelemetry

Package Overview
Dependencies
Maintainers
11
Versions
153
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 8.41.0 to 8.42.0

2

build/esm/package.json

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

{"type":"module","version":"8.41.0","sideEffects":false}
{"type":"module","version":"8.42.0","sideEffects":false}

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

import { BaseClient } from '@sentry/core';
import { Client } from '@sentry/types';
import { BaseClient, Client } from '@sentry/core';
import { OpenTelemetryClient as OpenTelemetryClientInterface } from '../types';

@@ -4,0 +3,0 @@ /**

@@ -19,3 +19,3 @@ export { SEMANTIC_ATTRIBUTE_SENTRY_GRAPHQL_OPERATION } from './semanticAttributes';

export { wrapContextManagerClass } from './contextManager';
export { SentryPropagator, getPropagationContextFromSpan } from './propagator';
export { SentryPropagator, getPropagationContextFromSpan, shouldPropagateTraceForUrl, } from './propagator';
export { SentrySpanProcessor } from './spanProcessor';

@@ -22,0 +22,0 @@ export { SentrySampler, wrapSamplingDecision, } from './sampler';

@@ -5,4 +5,7 @@ import { Instrumentation } from '@opentelemetry/instrumentation';

* array of instrumentations and registers them with OpenTelemetry.
*
* @deprecated This method will be removed in the next major version of the SDK.
* Use the `openTelemetryInstrumentations` option in `Sentry.init()` or your custom Sentry Client instead.
*/
export declare function addOpenTelemetryInstrumentation(...instrumentations: Instrumentation[]): void;
//# sourceMappingURL=instrumentation.d.ts.map
import { Context, Span, TextMapGetter, TextMapSetter } from '@opentelemetry/api';
import { W3CBaggagePropagator } from '@opentelemetry/core';
import { continueTrace } from '@sentry/core';
import { DynamicSamplingContext, PropagationContext } from '@sentry/types';
import { DynamicSamplingContext, Options, PropagationContext, continueTrace } from '@sentry/core';
import { LRUMap } from '@sentry/core';
/** Get the Sentry propagation context from a span context. */

@@ -26,6 +26,10 @@ export declare function getPropagationContextFromSpan(span: Span): PropagationContext;

fields(): string[];
/** If we want to inject trace data for a given URL. */
private _shouldInjectTraceData;
}
/**
* Check if a given URL should be propagated to or not.
* If no url is defined, or no trace propagation targets are defined, this will always return `true`.
* You can also optionally provide a decision map, to cache decisions and avoid repeated regex lookups.
*/
export declare function shouldPropagateTraceForUrl(url: string | undefined, tracePropagationTargets: Options['tracePropagationTargets'], decisionMap?: LRUMap<string, boolean>): boolean;
/**
* Get propagation injection data for the given context.

@@ -32,0 +36,0 @@ */

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

import { SamplingDecision } from '@opentelemetry/sdk-trace-base';
import { Client, SpanAttributes } from '@sentry/types';
import { Client, SpanAttributes } from '@sentry/core';
/**

@@ -8,0 +8,0 @@ * A custom OTEL sampler that uses Sentry sampling rates to make its decision

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

import { Client } from '@sentry/types';
import { Client } from '@sentry/core';
/** Ensure the `trace` context is set on all events. */
export declare function setupEventContextTrace(client: Client): void;
//# sourceMappingURL=setupEventContextTrace.d.ts.map
import { Span } from '@opentelemetry/api';
import { Client, DynamicSamplingContext, Scope, TraceContext } from '@sentry/core';
import { continueTrace as baseContinueTrace } from '@sentry/core';
import { Client, DynamicSamplingContext, Scope, TraceContext } from '@sentry/types';
import { OpenTelemetrySpanContext } from './types';

@@ -5,0 +5,0 @@ /**

import { Span as WriteableSpan, SpanKind, Tracer } from '@opentelemetry/api';
import { BasicTracerProvider, ReadableSpan } from '@opentelemetry/sdk-trace-base';
import { Scope, Span, StartSpanOptions } from '@sentry/types';
import { Scope, Span, StartSpanOptions } from '@sentry/core';
export interface OpenTelemetryClient {

@@ -5,0 +5,0 @@ tracer: Tracer;

import { Span } from '@opentelemetry/api';
import { SpanOrigin } from '@sentry/types';
import { SpanOrigin } from '@sentry/core';
/** Adds an origin to an OTEL Span. */
export declare function addOriginToSpan(span: Span, origin: SpanOrigin): void;
//# sourceMappingURL=addOriginToSpan.d.ts.map
import { Context } from '@opentelemetry/api';
import { Scope } from '@sentry/types';
import { Scope } from '@sentry/core';
import { CurrentScopes } from '../types';

@@ -4,0 +4,0 @@ /**

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

import { Client } from '@sentry/types';
import { Client } from '@sentry/core';
/**

@@ -3,0 +3,0 @@ * Setup a DSC handler on the passed client,

import { SpanContext } from '@opentelemetry/api';
import { PropagationContext } from '@sentry/types';
import { PropagationContext } from '@sentry/core';
/**
* Generates a SpanContext that represents a PropagationContext.
* This can be set on a `context` to make this a (virtual) active span.
*
* @deprecated This function is deprecated and will be removed in the next major version.
*/
export declare function generateSpanContextForPropagationContext(propagationContext: PropagationContext): SpanContext;
//# sourceMappingURL=generateSpanContextForPropagationContext.d.ts.map
import { Span } from '@opentelemetry/api';
import { ReadableSpan } from '@opentelemetry/sdk-trace-base';
import { SanitizedRequestData } from '@sentry/types';
import { SanitizedRequestData } from '@sentry/core';
/**

@@ -5,0 +5,0 @@ * Get sanitizied request data from an OTEL span.

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

import { SerializedTraceData, Span } from '@sentry/types';
import { SerializedTraceData, Span } from '@sentry/core';
/**

@@ -3,0 +3,0 @@ * Otel-specific implementation of `getTraceData`.

import { TraceState } from '@opentelemetry/core';
import { DynamicSamplingContext } from '@sentry/types';
import { DynamicSamplingContext } from '@sentry/core';
/**

@@ -4,0 +4,0 @@ * Generate a TraceState for the given data.

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

import { SpanStatus } from '@sentry/types';
import { SpanStatus } from '@sentry/core';
import { AbstractSpan } from '../types';

@@ -3,0 +3,0 @@ /**

import { AttributeValue, Attributes } from '@opentelemetry/api';
import { SpanKind } from '@opentelemetry/api';
import { SpanAttributes, TransactionSource } from '@sentry/types';
import { SpanAttributes, TransactionSource } from '@sentry/core';
import { AbstractSpan } from '../types';

@@ -5,0 +5,0 @@ interface SpanDescription {

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

import type { BaseClient } from '@sentry/core';
import type { Client } from '@sentry/types';
import type { BaseClient, Client } from '@sentry/core';
import type { OpenTelemetryClient as OpenTelemetryClientInterface } from '../types';

@@ -4,0 +3,0 @@ /**

@@ -19,3 +19,3 @@ export { SEMANTIC_ATTRIBUTE_SENTRY_GRAPHQL_OPERATION } from './semanticAttributes';

export { wrapContextManagerClass } from './contextManager';
export { SentryPropagator, getPropagationContextFromSpan } from './propagator';
export { SentryPropagator, getPropagationContextFromSpan, shouldPropagateTraceForUrl, } from './propagator';
export { SentrySpanProcessor } from './spanProcessor';

@@ -22,0 +22,0 @@ export { SentrySampler, wrapSamplingDecision, } from './sampler';

@@ -5,4 +5,7 @@ import type { Instrumentation } from '@opentelemetry/instrumentation';

* array of instrumentations and registers them with OpenTelemetry.
*
* @deprecated This method will be removed in the next major version of the SDK.
* Use the `openTelemetryInstrumentations` option in `Sentry.init()` or your custom Sentry Client instead.
*/
export declare function addOpenTelemetryInstrumentation(...instrumentations: Instrumentation[]): void;
//# sourceMappingURL=instrumentation.d.ts.map
import type { Context, Span, TextMapGetter, TextMapSetter } from '@opentelemetry/api';
import { W3CBaggagePropagator } from '@opentelemetry/core';
import type { continueTrace } from '@sentry/core';
import type { DynamicSamplingContext, PropagationContext } from '@sentry/types';
import type { DynamicSamplingContext, Options, PropagationContext, continueTrace } from '@sentry/core';
import { LRUMap } from '@sentry/core';
/** Get the Sentry propagation context from a span context. */

@@ -26,6 +26,10 @@ export declare function getPropagationContextFromSpan(span: Span): PropagationContext;

fields(): string[];
/** If we want to inject trace data for a given URL. */
private _shouldInjectTraceData;
}
/**
* Check if a given URL should be propagated to or not.
* If no url is defined, or no trace propagation targets are defined, this will always return `true`.
* You can also optionally provide a decision map, to cache decisions and avoid repeated regex lookups.
*/
export declare function shouldPropagateTraceForUrl(url: string | undefined, tracePropagationTargets: Options['tracePropagationTargets'], decisionMap?: LRUMap<string, boolean>): boolean;
/**
* Get propagation injection data for the given context.

@@ -32,0 +36,0 @@ */

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

import { SamplingDecision } from '@opentelemetry/sdk-trace-base';
import type { Client, SpanAttributes } from '@sentry/types';
import type { Client, SpanAttributes } from '@sentry/core';
/**

@@ -8,0 +8,0 @@ * A custom OTEL sampler that uses Sentry sampling rates to make its decision

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

import type { Client } from '@sentry/types';
import type { Client } from '@sentry/core';
/** Ensure the `trace` context is set on all events. */
export declare function setupEventContextTrace(client: Client): void;
//# sourceMappingURL=setupEventContextTrace.d.ts.map
import type { Span } from '@opentelemetry/api';
import type { Client, DynamicSamplingContext, Scope, TraceContext } from '@sentry/core';
import { continueTrace as baseContinueTrace } from '@sentry/core';
import type { Client, DynamicSamplingContext, Scope, TraceContext } from '@sentry/types';
import type { OpenTelemetrySpanContext } from './types';

@@ -5,0 +5,0 @@ /**

import type { Span as WriteableSpan, SpanKind, Tracer } from '@opentelemetry/api';
import type { BasicTracerProvider, ReadableSpan } from '@opentelemetry/sdk-trace-base';
import type { Scope, Span, StartSpanOptions } from '@sentry/types';
import type { Scope, Span, StartSpanOptions } from '@sentry/core';
export interface OpenTelemetryClient {

@@ -5,0 +5,0 @@ tracer: Tracer;

import type { Span } from '@opentelemetry/api';
import type { SpanOrigin } from '@sentry/types';
import type { SpanOrigin } from '@sentry/core';
/** Adds an origin to an OTEL Span. */
export declare function addOriginToSpan(span: Span, origin: SpanOrigin): void;
//# sourceMappingURL=addOriginToSpan.d.ts.map
import type { Context } from '@opentelemetry/api';
import type { Scope } from '@sentry/types';
import type { Scope } from '@sentry/core';
import type { CurrentScopes } from '../types';

@@ -4,0 +4,0 @@ /**

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

import type { Client } from '@sentry/types';
import type { Client } from '@sentry/core';
/**

@@ -3,0 +3,0 @@ * Setup a DSC handler on the passed client,

import type { SpanContext } from '@opentelemetry/api';
import type { PropagationContext } from '@sentry/types';
import type { PropagationContext } from '@sentry/core';
/**
* Generates a SpanContext that represents a PropagationContext.
* This can be set on a `context` to make this a (virtual) active span.
*
* @deprecated This function is deprecated and will be removed in the next major version.
*/
export declare function generateSpanContextForPropagationContext(propagationContext: PropagationContext): SpanContext;
//# sourceMappingURL=generateSpanContextForPropagationContext.d.ts.map
import type { Span } from '@opentelemetry/api';
import type { ReadableSpan } from '@opentelemetry/sdk-trace-base';
import type { SanitizedRequestData } from '@sentry/types';
import type { SanitizedRequestData } from '@sentry/core';
/**

@@ -5,0 +5,0 @@ * Get sanitizied request data from an OTEL span.

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

import type { SerializedTraceData, Span } from '@sentry/types';
import type { SerializedTraceData, Span } from '@sentry/core';
/**

@@ -3,0 +3,0 @@ * Otel-specific implementation of `getTraceData`.

import { TraceState } from '@opentelemetry/core';
import type { DynamicSamplingContext } from '@sentry/types';
import type { DynamicSamplingContext } from '@sentry/core';
/**

@@ -4,0 +4,0 @@ * Generate a TraceState for the given data.

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

import type { SpanStatus } from '@sentry/types';
import type { SpanStatus } from '@sentry/core';
import type { AbstractSpan } from '../types';

@@ -3,0 +3,0 @@ /**

import type { AttributeValue, Attributes } from '@opentelemetry/api';
import { SpanKind } from '@opentelemetry/api';
import type { SpanAttributes, TransactionSource } from '@sentry/types';
import type { SpanAttributes, TransactionSource } from '@sentry/core';
import type { AbstractSpan } from '../types';

@@ -5,0 +5,0 @@ interface SpanDescription {

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

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

"dependencies": {
"@sentry/core": "8.41.0",
"@sentry/types": "8.41.0"
"@sentry/core": "8.42.0"
},

@@ -46,0 +45,0 @@ "peerDependencies": {

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

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

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