Socket
Socket
Sign inDemoInstall

@sentry/opentelemetry

Package Overview
Dependencies
Maintainers
11
Versions
124
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.0.0-alpha.7 to 8.0.0-alpha.8

types-ts3.8/utils/getSamplingDecision.d.ts

8

package.json
{
"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

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