@sentry/opentelemetry
Advanced tools
Comparing version 8.0.0-alpha.7 to 8.0.0-alpha.8
{ | ||
"name": "@sentry/opentelemetry", | ||
"version": "8.0.0-alpha.7", | ||
"version": "8.0.0-alpha.8", | ||
"description": "Official Sentry utilities for OpenTelemetry", | ||
@@ -45,5 +45,5 @@ "repository": "git://github.com/getsentry/sentry-javascript.git", | ||
"dependencies": { | ||
"@sentry/core": "8.0.0-alpha.7", | ||
"@sentry/types": "8.0.0-alpha.7", | ||
"@sentry/utils": "8.0.0-alpha.7" | ||
"@sentry/core": "8.0.0-alpha.8", | ||
"@sentry/types": "8.0.0-alpha.8", | ||
"@sentry/utils": "8.0.0-alpha.8" | ||
}, | ||
@@ -50,0 +50,0 @@ "peerDependencies": { |
@@ -89,3 +89,4 @@ <p align="center"> | ||
A full setup example can be found in [node-experimental](./../node-experimental). | ||
A full setup example can be found in | ||
[node-experimental](https://github.com/getsentry/sentry-javascript/blob/develop/packages/node-experimental). | ||
@@ -92,0 +93,0 @@ ## Links |
@@ -1,2 +0,2 @@ | ||
import { Context, SpanContext, TextMapGetter, TextMapSetter } from '@opentelemetry/api'; | ||
import { Context, Span, TextMapGetter, TextMapSetter } from '@opentelemetry/api'; | ||
import { TraceState, W3CBaggagePropagator } from '@opentelemetry/core'; | ||
@@ -6,3 +6,3 @@ import { continueTrace } from '@sentry/core'; | ||
/** Get the Sentry propagation context from a span context. */ | ||
export declare function getPropagationContextFromSpanContext(spanContext: SpanContext): PropagationContext; | ||
export declare function getPropagationContextFromSpan(span: Span): PropagationContext; | ||
/** | ||
@@ -41,10 +41,2 @@ * Injects and extracts `sentry-trace` and `baggage` headers from carriers. | ||
export declare function continueTraceAsRemoteSpan<T>(ctx: Context, options: Parameters<typeof continueTrace>[0], callback: () => T): T; | ||
/** | ||
* OpenTelemetry only knows about SAMPLED or NONE decision, | ||
* but for us it is important to differentiate between unset and unsampled. | ||
* | ||
* Both of these are identified as `traceFlags === TracegFlags.NONE`, | ||
* but we additionally look at a special trace state to differentiate between them. | ||
*/ | ||
export declare function getSamplingDecision(spanContext: SpanContext): boolean | undefined; | ||
//# sourceMappingURL=propagator.d.ts.map |
import { Context } from '@opentelemetry/api'; | ||
import { Sampler, SamplingResult } from '@opentelemetry/sdk-trace-base'; | ||
import { Client } from '@sentry/types'; | ||
import { Client, SpanAttributes } from '@sentry/types'; | ||
/** | ||
* A custom OTEL sampler that uses Sentry sampling rates to make it's decision | ||
* A custom OTEL sampler that uses Sentry sampling rates to make its decision | ||
*/ | ||
@@ -11,3 +11,3 @@ export declare class SentrySampler implements Sampler { | ||
/** @inheritDoc */ | ||
shouldSample(context: Context, traceId: string, spanName: string, _spanKind: unknown, spanAttributes: unknown, _links: unknown): SamplingResult; | ||
shouldSample(context: Context, traceId: string, spanName: string, _spanKind: unknown, spanAttributes: SpanAttributes, _links: unknown): SamplingResult; | ||
/** Returns the sampler name or short description with the configuration. */ | ||
@@ -14,0 +14,0 @@ toString(): string; |
@@ -23,4 +23,4 @@ import { Context } from '@opentelemetry/api'; | ||
/** @inheritDoc */ | ||
onEnd(span: ReadableSpan): void; | ||
onEnd(span: Span & ReadableSpan): void; | ||
} | ||
//# sourceMappingURL=spanProcessor.d.ts.map |
@@ -28,6 +28,2 @@ import { Span } from '@opentelemetry/api'; | ||
/** | ||
* @deprecated Use {@link startSpan} instead. | ||
*/ | ||
export declare const startActiveSpan: typeof startSpan; | ||
/** | ||
* Creates a span. This span is not set as active, so will not get automatic instrumentation spans | ||
@@ -34,0 +30,0 @@ * as children or be able to be accessed via `Sentry.getActiveSpan()`. |
@@ -1,2 +0,2 @@ | ||
import type { Context, SpanContext, TextMapGetter, TextMapSetter } from '@opentelemetry/api'; | ||
import type { Context, Span, TextMapGetter, TextMapSetter } from '@opentelemetry/api'; | ||
import { TraceState, W3CBaggagePropagator } from '@opentelemetry/core'; | ||
@@ -6,3 +6,3 @@ import type { continueTrace } from '@sentry/core'; | ||
/** Get the Sentry propagation context from a span context. */ | ||
export declare function getPropagationContextFromSpanContext(spanContext: SpanContext): PropagationContext; | ||
export declare function getPropagationContextFromSpan(span: Span): PropagationContext; | ||
/** | ||
@@ -41,10 +41,2 @@ * Injects and extracts `sentry-trace` and `baggage` headers from carriers. | ||
export declare function continueTraceAsRemoteSpan<T>(ctx: Context, options: Parameters<typeof continueTrace>[0], callback: () => T): T; | ||
/** | ||
* OpenTelemetry only knows about SAMPLED or NONE decision, | ||
* but for us it is important to differentiate between unset and unsampled. | ||
* | ||
* Both of these are identified as `traceFlags === TracegFlags.NONE`, | ||
* but we additionally look at a special trace state to differentiate between them. | ||
*/ | ||
export declare function getSamplingDecision(spanContext: SpanContext): boolean | undefined; | ||
//# sourceMappingURL=propagator.d.ts.map |
import type { Context } from '@opentelemetry/api'; | ||
import type { Sampler, SamplingResult } from '@opentelemetry/sdk-trace-base'; | ||
import type { Client } from '@sentry/types'; | ||
import type { Client, SpanAttributes } from '@sentry/types'; | ||
/** | ||
* A custom OTEL sampler that uses Sentry sampling rates to make it's decision | ||
* A custom OTEL sampler that uses Sentry sampling rates to make its decision | ||
*/ | ||
@@ -11,3 +11,3 @@ export declare class SentrySampler implements Sampler { | ||
/** @inheritDoc */ | ||
shouldSample(context: Context, traceId: string, spanName: string, _spanKind: unknown, spanAttributes: unknown, _links: unknown): SamplingResult; | ||
shouldSample(context: Context, traceId: string, spanName: string, _spanKind: unknown, spanAttributes: SpanAttributes, _links: unknown): SamplingResult; | ||
/** Returns the sampler name or short description with the configuration. */ | ||
@@ -14,0 +14,0 @@ toString(): string; |
@@ -23,4 +23,4 @@ import type { Context } from '@opentelemetry/api'; | ||
/** @inheritDoc */ | ||
onEnd(span: ReadableSpan): void; | ||
onEnd(span: Span & ReadableSpan): void; | ||
} | ||
//# sourceMappingURL=spanProcessor.d.ts.map |
@@ -28,6 +28,2 @@ import type { Span } from '@opentelemetry/api'; | ||
/** | ||
* @deprecated Use {@link startSpan} instead. | ||
*/ | ||
export declare const startActiveSpan: typeof startSpan; | ||
/** | ||
* Creates a span. This span is not set as active, so will not get automatic instrumentation spans | ||
@@ -34,0 +30,0 @@ * as children or be able to be accessed via `Sentry.getActiveSpan()`. |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
101
95
859687
4385
+ Added@sentry/core@8.0.0-alpha.8(transitive)
+ Added@sentry/types@8.0.0-alpha.8(transitive)
+ Added@sentry/utils@8.0.0-alpha.8(transitive)
- Removed@sentry/core@8.0.0-alpha.7(transitive)
- Removed@sentry/types@8.0.0-alpha.7(transitive)
- Removed@sentry/utils@8.0.0-alpha.7(transitive)
Updated@sentry/core@8.0.0-alpha.8
Updated@sentry/types@8.0.0-alpha.8
Updated@sentry/utils@8.0.0-alpha.8