Socket
Socket
Sign inDemoInstall

@sentry/types

Package Overview
Dependencies
0
Maintainers
11
Versions
429
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 8.0.0-alpha.2 to 8.0.0-alpha.3

esm/package.json

17

package.json
{
"name": "@sentry/types",
"version": "8.0.0-alpha.2",
"version": "8.0.0-alpha.3",
"description": "Types for all Sentry JavaScript SDKs",

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

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

@@ -22,2 +22,15 @@ "files": [

"types": "types/index.d.ts",
"exports": {
"./package.json": "./package.json",
".": {
"import": {
"types": "./types/index.d.ts",
"default": "./esm/index.js"
},
"require": {
"types": "./types/index.d.ts",
"default": "./cjs/index.js"
}
}
},
"typesVersions": {

@@ -24,0 +37,0 @@ "<4.9": {

3

types-ts3.8/attachment.d.ts

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

export type AttachmentType = 'event.attachment' | 'event.minidump' | 'event.applecrashreport' | 'unreal.context' | 'unreal.logs';
/**

@@ -26,4 +27,4 @@ * An attachment to an event. This is used to upload arbitrary data to Sentry.

*/
attachmentType?: 'event.attachment' | 'event.minidump' | 'event.applecrashreport' | 'unreal.context' | 'unreal.logs';
attachmentType?: AttachmentType;
}
//# sourceMappingURL=attachment.d.ts.map

@@ -17,4 +17,4 @@ import { Breadcrumb, BreadcrumbHint } from './breadcrumb';

import { SeverityLevel } from './severity';
import { Span } from './span';
import { StartSpanOptions } from './startSpanOptions';
import { Transaction } from './transaction';
import { Transport, TransportMakeRequestResponse } from './transport';

@@ -150,2 +150,4 @@ /**

sendSession(session: Session | SessionAggregates): void;
/** Sends an envelope to Sentry */
sendEnvelope(envelope: Envelope): PromiseLike<TransportMakeRequestResponse>;
/**

@@ -160,12 +162,16 @@ * Record on the client that an event got dropped (ie, an event that will not be sent to sentry).

/**
* Register a callback for transaction start.
* Receives the transaction as argument.
* Register a callback for whenever a span is started.
* Receives the span as argument.
*/
on(hook: 'startTransaction', callback: (transaction: Transaction) => void): void;
on(hook: 'spanStart', callback: (span: Span) => void): void;
/**
* Register a callback for transaction finish.
* Receives the transaction as argument.
* Register a callback for whenever a span is ended.
* Receives the span as argument.
*/
on(hook: 'finishTransaction', callback: (transaction: Transaction) => void): void;
on(hook: 'spanEnd', callback: (span: Span) => void): void;
/**
* Register a callback for when an idle span is allowed to auto-finish.
*/
on(hook: 'idleSpanEnableAutoFinish', callback: (span: Span) => void): void;
/**
* Register a callback for transaction start and finish.

@@ -209,3 +215,6 @@ */

*/
on(hook: 'startPageLoadSpan', callback: (options: StartSpanOptions) => void): void;
on(hook: 'startPageLoadSpan', callback: (options: StartSpanOptions, traceOptions?: {
sentryTrace?: string | undefined;
baggage?: string | undefined;
}) => void): void;
/**

@@ -223,12 +232,10 @@ * A hook for browser tracing integrations to trigger a span for a navigation.

on(hook: 'close', callback: () => void): void;
/** Fire a hook whener a span starts. */
emit(hook: 'spanStart', span: Span): void;
/** Fire a hook whener a span ends. */
emit(hook: 'spanEnd', span: Span): void;
/**
* Fire a hook event for transaction start.
* Expects to be given a transaction as the second argument.
* Fire a hook indicating that an idle span is allowed to auto finish.
*/
emit(hook: 'startTransaction', transaction: Transaction): void;
/**
* Fire a hook event for transaction finish.
* Expects to be given a transaction as the second argument.
*/
emit(hook: 'finishTransaction', transaction: Transaction): void;
emit(hook: 'idleSpanEnableAutoFinish', span: Span): void;
emit(hook: 'beforeEnvelope', envelope: Envelope): void;

@@ -266,3 +273,6 @@ /**

*/
emit(hook: 'startPageLoadSpan', options: StartSpanOptions): void;
emit(hook: 'startPageLoadSpan', options: StartSpanOptions, traceOptions?: {
sentryTrace?: string | undefined;
baggage?: string | undefined;
}): void;
/**

@@ -269,0 +279,0 @@ * Emit a hook event for browser tracing integrations to trigger a span for a navigation.

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

import { AttachmentType } from './attachment';
import { SerializedCheckIn } from './checkin';

@@ -5,3 +6,3 @@ import { ClientReport } from './clientreport';

import { Event } from './event';
import { FeedbackEvent } from './feedback';
import { FeedbackEvent, UserFeedback } from './feedback';
import { Profile } from './profiling';

@@ -12,3 +13,2 @@ import { ReplayEvent, ReplayRecordingData } from './replay';

import { Transaction } from './transaction';
import { UserFeedback } from './user';
export type DynamicSamplingContext = {

@@ -51,3 +51,3 @@ trace_id: Transaction['traceId'];

content_type?: string;
attachment_type?: string;
attachment_type?: AttachmentType;
};

@@ -54,0 +54,0 @@ type UserFeedbackItemHeaders = {

@@ -53,3 +53,3 @@ import { Attachment } from './attachment';

type?: EventType;
spans?: Partial<SpanJSON>[];
spans?: SpanJSON[];
measurements?: Measurements;

@@ -56,0 +56,0 @@ debug_meta?: DebugMeta;

import { Event } from './event';
export interface FeedbackContext extends Record<string, unknown> {
import { User } from './user';
/**
* Crash report feedback object
*/
export interface UserFeedback {
event_id: string;
email: User['email'];
name: string;
comments: string;
}
interface FeedbackContext extends Record<string, unknown> {
message: string;

@@ -19,2 +29,3 @@ contact_email?: string;

}
export {};
//# sourceMappingURL=feedback.d.ts.map

@@ -10,3 +10,2 @@ import { Breadcrumb, BreadcrumbHint } from './breadcrumb';

import { SeverityLevel } from './severity';
import { CustomSamplingContext, Transaction, TransactionContext } from './transaction';
import { User } from './user';

@@ -193,22 +192,2 @@ /**

/**
* Starts a new `Transaction` and returns it. This is the entry point to manual tracing instrumentation.
*
* A tree structure can be built by adding child spans to the transaction, and child spans to other spans. To start a
* new child span within the transaction or any span, call the respective `.startChild()` method.
*
* Every child span must be finished before the transaction is finished, otherwise the unfinished spans are discarded.
*
* The transaction must be finished with a call to its `.end()` method, at which point the transaction with all its
* finished child spans will be sent to Sentry.
*
* @param context Properties of the new `Transaction`.
* @param customSamplingContext Information given to the transaction sampling function (along with context-dependent
* default values). See {@link Options.tracesSampler}.
*
* @returns The transaction which was just started
*
* @deprecated Use `startSpan()`, `startSpanManual()` or `startInactiveSpan()` instead.
*/
startTransaction(context: TransactionContext, customSamplingContext?: CustomSamplingContext): Transaction;
/**
* Starts a new `Session`, sets on the current scope and returns it.

@@ -215,0 +194,0 @@ *

@@ -24,3 +24,3 @@ export { Attachment } from './attachment';

export { ReplayEvent, ReplayRecordingData, ReplayRecordingMode } from './replay';
export { FeedbackEvent } from './feedback';
export { FeedbackEvent, UserFeedback } from './feedback';
export { QueryParams, Request, SanitizedRequestData } from './request';

@@ -43,3 +43,3 @@ export { Runtime } from './runtime';

export { Transport, TransportRequest, TransportMakeRequestResponse, InternalBaseTransportOptions, BaseTransportOptions, TransportRequestExecutor, } from './transport';
export { User, UserFeedback } from './user';
export { User } from './user';
export { WebFetchHeaders, WebFetchRequest } from './webfetchapi';

@@ -46,0 +46,0 @@ export { WrappedFunction } from './wrappedfunction';

@@ -46,3 +46,2 @@ import { Attachment } from './attachment';

level?: SeverityLevel;
/** @deprecated This will be removed in v8. */
transactionName?: string;

@@ -65,2 +64,7 @@ span?: Span;

getClient<C extends Client>(): C | undefined;
/**
* Add internal on change listener. Used for sub SDKs that need to store the scope.
* @hidden
*/
addScopeListener(callback: (scope: Scope) => void): void;
/** Add new event processor that will be called during event processing. */

@@ -118,4 +122,11 @@ addEventProcessor(callback: EventProcessor): this;

/**
* Sets the transaction name on the scope for future events.
* @deprecated Use extra or tags instead.
* Sets the transaction name on the scope so that the name of the transaction
* (e.g. taken server route or page location) is attached to future events.
*
* IMPORTANT: Calling this function does NOT change the name of the currently active
* span. If you want to change the name of the active span, use `span.updateName()`
* instead.
*
* By default, the SDK updates the scope's transaction name automatically on sensible
* occasions, such as a page navigation or when handling a new request on the server.
*/

@@ -122,0 +133,0 @@ setTransactionName(name?: string): this;

@@ -37,5 +37,2 @@ import { Primitive } from './misc';

status?: string;
tags?: {
[key: string]: Primitive;
};
timestamp?: number;

@@ -49,2 +46,39 @@ trace_id: string;

export type TraceFlag = TraceFlagNone | TraceFlagSampled;
export interface TraceState {
/**
* Create a new TraceState which inherits from this TraceState and has the
* given key set.
* The new entry will always be added in the front of the list of states.
*
* @param key key of the TraceState entry.
* @param value value of the TraceState entry.
*/
set(key: string, value: string): TraceState;
/**
* Return a new TraceState which inherits from this TraceState but does not
* contain the given key.
*
* @param key the key for the TraceState entry to be removed.
*/
unset(key: string): TraceState;
/**
* Returns the value to which the specified key is mapped, or `undefined` if
* this map contains no mapping for the key.
*
* @param key with which the specified value is to be associated.
* @returns the value to which the specified key is mapped, or `undefined` if
* this map contains no mapping for the key.
*/
get(key: string): string | undefined;
/**
* Serializes the TraceState to a `list` as defined below. The `list` is a
* series of `list-members` separated by commas `,`, and a list-member is a
* key/value pair separated by an equals sign `=`. Spaces and horizontal tabs
* surrounding `list-members` are ignored. There can be a maximum of 32
* `list-members` in a `list`.
*
* @returns the serialized string.
*/
serialize(): string;
}
export interface SpanContextData {

@@ -67,3 +101,3 @@ /**

*/
isRemote?: boolean;
isRemote?: boolean | undefined;
/**

@@ -76,5 +110,6 @@ * Trace flags to propagate.

* data out-of-band leaves this flag unset.
* We allow number here because otel also does, so we can't be stricter than them.
*/
traceFlags: TraceFlag | number;
/** In OpenTelemetry, this can be used to store trace state, which are basically key-value pairs. */
traceState?: TraceState | undefined;
}

@@ -111,9 +146,2 @@ /**

/**
* Tags of the Span.
* @deprecated Pass `attributes` instead.
*/
tags?: {
[key: string]: Primitive;
};
/**
* Data of the Span.

@@ -137,6 +165,2 @@ * @deprecated Pass `attributes` instead.

endTimestamp?: number | undefined;
/**
* The origin of the span, giving context about what created the span.
*/
origin?: SpanOrigin | undefined;
}

@@ -143,0 +167,0 @@ /**

@@ -10,3 +10,3 @@ import { StackFrame } from './stackframe';

}
export type StackParser = (stack: string, skipFirst?: number) => StackFrame[];
export type StackParser = (stack: string, skipFirstLines?: number, framesToPop?: number) => StackFrame[];
export type StackLineParserFn = (line: string) => StackFrame | undefined;

@@ -13,0 +13,0 @@ export type StackLineParser = [

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

import { Primitive } from './misc';
import { Scope } from './scope';
import { SpanAttributes, SpanOrigin, SpanTimeInput } from './span';
import { TransactionContext, TransactionMetadata, TransactionSource } from './transaction';
export interface StartSpanOptions extends TransactionContext {
import { SpanAttributes, SpanTimeInput } from './span';
export interface StartSpanOptions {
/** A manually specified start time for the created `Span` object. */

@@ -22,63 +20,5 @@ startTime?: SpanTimeInput;

forceTransaction?: boolean;
/**
* The origin of the span - if it comes from auto instrumentation or manual instrumentation.
*
* @deprecated Set `attributes[SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]` instead.
*/
origin?: SpanOrigin;
/** Attributes for the span. */
attributes?: SpanAttributes;
/**
* @deprecated Manually set the end timestamp instead.
*/
trimEnd?: boolean;
/**
* @deprecated This cannot be set manually anymore.
*/
parentSampled?: boolean;
/**
* @deprecated Use attributes or set data on scopes instead.
*/
metadata?: Partial<TransactionMetadata>;
/**
* @deprecated Use `scope` instead.
*/
parentSpanId?: string;
/**
* @deprecated You cannot manually set the span to sampled anymore.
*/
sampled?: boolean;
/**
* @deprecated You cannot manually set the spanId anymore.
*/
spanId?: string;
/**
* @deprecated You cannot manually set the traceId anymore.
*/
traceId?: string;
/**
* @deprecated Use an attribute instead.
*/
source?: TransactionSource;
/**
* @deprecated Use attributes or set tags on the scope instead.
*/
tags?: {
[key: string]: Primitive;
};
/**
* @deprecated Use attributes instead.
*/
data?: {
[key: string]: any;
};
/**
* @deprecated Use `startTime` instead.
*/
startTimestamp?: number;
/**
* @deprecated Use `span.end()` instead.
*/
endTimestamp?: number;
}
//# sourceMappingURL=startSpanOptions.d.ts.map
import { Context } from './context';
import { DynamicSamplingContext } from './envelope';
import { MeasurementUnit } from './measurement';
import { ExtractedNodeRequestData, Primitive, WorkerLocation } from './misc';
import { ExtractedNodeRequestData, WorkerLocation } from './misc';
import { PolymorphicRequest } from './polymorphics';

@@ -73,9 +73,2 @@ import { Span, SpanAttributes, SpanContext } from './span';

/**
* Tags for the transaction.
* @deprecated Use `getSpanAttributes(transaction)` instead.
*/
tags: {
[key: string]: Primitive;
};
/**
* Data for the transaction.

@@ -82,0 +75,0 @@ * @deprecated Use `getSpanAttributes(transaction)` instead.

@@ -11,8 +11,2 @@ /**

}
export interface UserFeedback {
event_id: string;
email: User['email'];
name: string;
comments: string;
}
//# sourceMappingURL=user.d.ts.map

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

export type AttachmentType = 'event.attachment' | 'event.minidump' | 'event.applecrashreport' | 'unreal.context' | 'unreal.logs';
/**

@@ -26,4 +27,4 @@ * An attachment to an event. This is used to upload arbitrary data to Sentry.

*/
attachmentType?: 'event.attachment' | 'event.minidump' | 'event.applecrashreport' | 'unreal.context' | 'unreal.logs';
attachmentType?: AttachmentType;
}
//# sourceMappingURL=attachment.d.ts.map

@@ -17,4 +17,4 @@ import type { Breadcrumb, BreadcrumbHint } from './breadcrumb';

import type { SeverityLevel } from './severity';
import type { Span } from './span';
import type { StartSpanOptions } from './startSpanOptions';
import type { Transaction } from './transaction';
import type { Transport, TransportMakeRequestResponse } from './transport';

@@ -150,2 +150,4 @@ /**

sendSession(session: Session | SessionAggregates): void;
/** Sends an envelope to Sentry */
sendEnvelope(envelope: Envelope): PromiseLike<TransportMakeRequestResponse>;
/**

@@ -160,12 +162,16 @@ * Record on the client that an event got dropped (ie, an event that will not be sent to sentry).

/**
* Register a callback for transaction start.
* Receives the transaction as argument.
* Register a callback for whenever a span is started.
* Receives the span as argument.
*/
on(hook: 'startTransaction', callback: (transaction: Transaction) => void): void;
on(hook: 'spanStart', callback: (span: Span) => void): void;
/**
* Register a callback for transaction finish.
* Receives the transaction as argument.
* Register a callback for whenever a span is ended.
* Receives the span as argument.
*/
on(hook: 'finishTransaction', callback: (transaction: Transaction) => void): void;
on(hook: 'spanEnd', callback: (span: Span) => void): void;
/**
* Register a callback for when an idle span is allowed to auto-finish.
*/
on(hook: 'idleSpanEnableAutoFinish', callback: (span: Span) => void): void;
/**
* Register a callback for transaction start and finish.

@@ -209,3 +215,6 @@ */

*/
on(hook: 'startPageLoadSpan', callback: (options: StartSpanOptions) => void): void;
on(hook: 'startPageLoadSpan', callback: (options: StartSpanOptions, traceOptions?: {
sentryTrace?: string | undefined;
baggage?: string | undefined;
}) => void): void;
/**

@@ -223,12 +232,10 @@ * A hook for browser tracing integrations to trigger a span for a navigation.

on(hook: 'close', callback: () => void): void;
/** Fire a hook whener a span starts. */
emit(hook: 'spanStart', span: Span): void;
/** Fire a hook whener a span ends. */
emit(hook: 'spanEnd', span: Span): void;
/**
* Fire a hook event for transaction start.
* Expects to be given a transaction as the second argument.
* Fire a hook indicating that an idle span is allowed to auto finish.
*/
emit(hook: 'startTransaction', transaction: Transaction): void;
/**
* Fire a hook event for transaction finish.
* Expects to be given a transaction as the second argument.
*/
emit(hook: 'finishTransaction', transaction: Transaction): void;
emit(hook: 'idleSpanEnableAutoFinish', span: Span): void;
emit(hook: 'beforeEnvelope', envelope: Envelope): void;

@@ -266,3 +273,6 @@ /**

*/
emit(hook: 'startPageLoadSpan', options: StartSpanOptions): void;
emit(hook: 'startPageLoadSpan', options: StartSpanOptions, traceOptions?: {
sentryTrace?: string | undefined;
baggage?: string | undefined;
}): void;
/**

@@ -269,0 +279,0 @@ * Emit a hook event for browser tracing integrations to trigger a span for a navigation.

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

import type { AttachmentType } from './attachment';
import type { SerializedCheckIn } from './checkin';

@@ -5,3 +6,3 @@ import type { ClientReport } from './clientreport';

import type { Event } from './event';
import type { FeedbackEvent } from './feedback';
import type { FeedbackEvent, UserFeedback } from './feedback';
import type { Profile } from './profiling';

@@ -12,3 +13,2 @@ import type { ReplayEvent, ReplayRecordingData } from './replay';

import type { Transaction } from './transaction';
import type { UserFeedback } from './user';
export type DynamicSamplingContext = {

@@ -48,3 +48,3 @@ trace_id: Transaction['traceId'];

content_type?: string;
attachment_type?: string;
attachment_type?: AttachmentType;
};

@@ -51,0 +51,0 @@ type UserFeedbackItemHeaders = {

@@ -53,3 +53,3 @@ import type { Attachment } from './attachment';

type?: EventType;
spans?: Partial<SpanJSON>[];
spans?: SpanJSON[];
measurements?: Measurements;

@@ -56,0 +56,0 @@ debug_meta?: DebugMeta;

import type { Event } from './event';
export interface FeedbackContext extends Record<string, unknown> {
import type { User } from './user';
/**
* Crash report feedback object
*/
export interface UserFeedback {
event_id: string;
email: User['email'];
name: string;
comments: string;
}
interface FeedbackContext extends Record<string, unknown> {
message: string;

@@ -19,2 +29,3 @@ contact_email?: string;

}
export {};
//# sourceMappingURL=feedback.d.ts.map

@@ -10,3 +10,2 @@ import type { Breadcrumb, BreadcrumbHint } from './breadcrumb';

import type { SeverityLevel } from './severity';
import type { CustomSamplingContext, Transaction, TransactionContext } from './transaction';
import type { User } from './user';

@@ -193,22 +192,2 @@ /**

/**
* Starts a new `Transaction` and returns it. This is the entry point to manual tracing instrumentation.
*
* A tree structure can be built by adding child spans to the transaction, and child spans to other spans. To start a
* new child span within the transaction or any span, call the respective `.startChild()` method.
*
* Every child span must be finished before the transaction is finished, otherwise the unfinished spans are discarded.
*
* The transaction must be finished with a call to its `.end()` method, at which point the transaction with all its
* finished child spans will be sent to Sentry.
*
* @param context Properties of the new `Transaction`.
* @param customSamplingContext Information given to the transaction sampling function (along with context-dependent
* default values). See {@link Options.tracesSampler}.
*
* @returns The transaction which was just started
*
* @deprecated Use `startSpan()`, `startSpanManual()` or `startInactiveSpan()` instead.
*/
startTransaction(context: TransactionContext, customSamplingContext?: CustomSamplingContext): Transaction;
/**
* Starts a new `Session`, sets on the current scope and returns it.

@@ -215,0 +194,0 @@ *

@@ -24,3 +24,3 @@ export type { Attachment } from './attachment';

export type { ReplayEvent, ReplayRecordingData, ReplayRecordingMode } from './replay';
export type { FeedbackEvent } from './feedback';
export type { FeedbackEvent, UserFeedback } from './feedback';
export type { QueryParams, Request, SanitizedRequestData } from './request';

@@ -43,3 +43,3 @@ export type { Runtime } from './runtime';

export type { Transport, TransportRequest, TransportMakeRequestResponse, InternalBaseTransportOptions, BaseTransportOptions, TransportRequestExecutor, } from './transport';
export type { User, UserFeedback } from './user';
export type { User } from './user';
export type { WebFetchHeaders, WebFetchRequest } from './webfetchapi';

@@ -46,0 +46,0 @@ export type { WrappedFunction } from './wrappedfunction';

@@ -46,3 +46,2 @@ import type { Attachment } from './attachment';

level?: SeverityLevel;
/** @deprecated This will be removed in v8. */
transactionName?: string;

@@ -65,2 +64,7 @@ span?: Span;

getClient<C extends Client>(): C | undefined;
/**
* Add internal on change listener. Used for sub SDKs that need to store the scope.
* @hidden
*/
addScopeListener(callback: (scope: Scope) => void): void;
/** Add new event processor that will be called during event processing. */

@@ -118,4 +122,11 @@ addEventProcessor(callback: EventProcessor): this;

/**
* Sets the transaction name on the scope for future events.
* @deprecated Use extra or tags instead.
* Sets the transaction name on the scope so that the name of the transaction
* (e.g. taken server route or page location) is attached to future events.
*
* IMPORTANT: Calling this function does NOT change the name of the currently active
* span. If you want to change the name of the active span, use `span.updateName()`
* instead.
*
* By default, the SDK updates the scope's transaction name automatically on sensible
* occasions, such as a page navigation or when handling a new request on the server.
*/

@@ -122,0 +133,0 @@ setTransactionName(name?: string): this;

@@ -37,5 +37,2 @@ import type { Primitive } from './misc';

status?: string;
tags?: {
[key: string]: Primitive;
};
timestamp?: number;

@@ -49,2 +46,39 @@ trace_id: string;

export type TraceFlag = TraceFlagNone | TraceFlagSampled;
export interface TraceState {
/**
* Create a new TraceState which inherits from this TraceState and has the
* given key set.
* The new entry will always be added in the front of the list of states.
*
* @param key key of the TraceState entry.
* @param value value of the TraceState entry.
*/
set(key: string, value: string): TraceState;
/**
* Return a new TraceState which inherits from this TraceState but does not
* contain the given key.
*
* @param key the key for the TraceState entry to be removed.
*/
unset(key: string): TraceState;
/**
* Returns the value to which the specified key is mapped, or `undefined` if
* this map contains no mapping for the key.
*
* @param key with which the specified value is to be associated.
* @returns the value to which the specified key is mapped, or `undefined` if
* this map contains no mapping for the key.
*/
get(key: string): string | undefined;
/**
* Serializes the TraceState to a `list` as defined below. The `list` is a
* series of `list-members` separated by commas `,`, and a list-member is a
* key/value pair separated by an equals sign `=`. Spaces and horizontal tabs
* surrounding `list-members` are ignored. There can be a maximum of 32
* `list-members` in a `list`.
*
* @returns the serialized string.
*/
serialize(): string;
}
export interface SpanContextData {

@@ -67,3 +101,3 @@ /**

*/
isRemote?: boolean;
isRemote?: boolean | undefined;
/**

@@ -76,5 +110,6 @@ * Trace flags to propagate.

* data out-of-band leaves this flag unset.
* We allow number here because otel also does, so we can't be stricter than them.
*/
traceFlags: TraceFlag | number;
/** In OpenTelemetry, this can be used to store trace state, which are basically key-value pairs. */
traceState?: TraceState | undefined;
}

@@ -111,9 +146,2 @@ /**

/**
* Tags of the Span.
* @deprecated Pass `attributes` instead.
*/
tags?: {
[key: string]: Primitive;
};
/**
* Data of the Span.

@@ -137,6 +165,2 @@ * @deprecated Pass `attributes` instead.

endTimestamp?: number | undefined;
/**
* The origin of the span, giving context about what created the span.
*/
origin?: SpanOrigin | undefined;
}

@@ -143,0 +167,0 @@ /**

@@ -7,5 +7,5 @@ import type { StackFrame } from './stackframe';

}
export type StackParser = (stack: string, skipFirst?: number) => StackFrame[];
export type StackParser = (stack: string, skipFirstLines?: number, framesToPop?: number) => StackFrame[];
export type StackLineParserFn = (line: string) => StackFrame | undefined;
export type StackLineParser = [number, StackLineParserFn];
//# sourceMappingURL=stacktrace.d.ts.map

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

import type { Primitive } from './misc';
import type { Scope } from './scope';
import type { SpanAttributes, SpanOrigin, SpanTimeInput } from './span';
import type { TransactionContext, TransactionMetadata, TransactionSource } from './transaction';
export interface StartSpanOptions extends TransactionContext {
import type { SpanAttributes, SpanTimeInput } from './span';
export interface StartSpanOptions {
/** A manually specified start time for the created `Span` object. */

@@ -22,63 +20,5 @@ startTime?: SpanTimeInput;

forceTransaction?: boolean;
/**
* The origin of the span - if it comes from auto instrumentation or manual instrumentation.
*
* @deprecated Set `attributes[SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]` instead.
*/
origin?: SpanOrigin;
/** Attributes for the span. */
attributes?: SpanAttributes;
/**
* @deprecated Manually set the end timestamp instead.
*/
trimEnd?: boolean;
/**
* @deprecated This cannot be set manually anymore.
*/
parentSampled?: boolean;
/**
* @deprecated Use attributes or set data on scopes instead.
*/
metadata?: Partial<TransactionMetadata>;
/**
* @deprecated Use `scope` instead.
*/
parentSpanId?: string;
/**
* @deprecated You cannot manually set the span to sampled anymore.
*/
sampled?: boolean;
/**
* @deprecated You cannot manually set the spanId anymore.
*/
spanId?: string;
/**
* @deprecated You cannot manually set the traceId anymore.
*/
traceId?: string;
/**
* @deprecated Use an attribute instead.
*/
source?: TransactionSource;
/**
* @deprecated Use attributes or set tags on the scope instead.
*/
tags?: {
[key: string]: Primitive;
};
/**
* @deprecated Use attributes instead.
*/
data?: {
[key: string]: any;
};
/**
* @deprecated Use `startTime` instead.
*/
startTimestamp?: number;
/**
* @deprecated Use `span.end()` instead.
*/
endTimestamp?: number;
}
//# sourceMappingURL=startSpanOptions.d.ts.map
import type { Context } from './context';
import type { DynamicSamplingContext } from './envelope';
import type { MeasurementUnit } from './measurement';
import type { ExtractedNodeRequestData, Primitive, WorkerLocation } from './misc';
import type { ExtractedNodeRequestData, WorkerLocation } from './misc';
import type { PolymorphicRequest } from './polymorphics';

@@ -73,9 +73,2 @@ import type { Span, SpanAttributes, SpanContext } from './span';

/**
* Tags for the transaction.
* @deprecated Use `getSpanAttributes(transaction)` instead.
*/
tags: {
[key: string]: Primitive;
};
/**
* Data for the transaction.

@@ -82,0 +75,0 @@ * @deprecated Use `getSpanAttributes(transaction)` instead.

@@ -11,8 +11,2 @@ /**

}
export interface UserFeedback {
event_id: string;
email: User['email'];
name: string;
comments: string;
}
//# sourceMappingURL=user.d.ts.map

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc