@sentry/types 8.41.0 → 8.43.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -1
- package/build/esm/package.json +1 -1
- package/build/types/index.d.ts +377 -53
- package/build/types/index.d.ts.map +1 -1
- package/build/types-ts3.8/index.d.ts +377 -53
- package/package.json +4 -1
- package/build/types/attachment.d.ts +0 -29
- package/build/types/attachment.d.ts.map +0 -1
- package/build/types/breadcrumb.d.ts +0 -96
- package/build/types/breadcrumb.d.ts.map +0 -1
- package/build/types/browseroptions.d.ts +0 -25
- package/build/types/browseroptions.d.ts.map +0 -1
- package/build/types/checkin.d.ts +0 -100
- package/build/types/checkin.d.ts.map +0 -1
- package/build/types/client.d.ts +0 -323
- package/build/types/client.d.ts.map +0 -1
- package/build/types/clientreport.d.ts +0 -12
- package/build/types/clientreport.d.ts.map +0 -1
- package/build/types/context.d.ts +0 -119
- package/build/types/context.d.ts.map +0 -1
- package/build/types/datacategory.d.ts +0 -2
- package/build/types/datacategory.d.ts.map +0 -1
- package/build/types/debugMeta.d.ts +0 -28
- package/build/types/debugMeta.d.ts.map +0 -1
- package/build/types/dsn.d.ts +0 -22
- package/build/types/dsn.d.ts.map +0 -1
- package/build/types/envelope.d.ts +0 -127
- package/build/types/envelope.d.ts.map +0 -1
- package/build/types/error.d.ts +0 -7
- package/build/types/error.d.ts.map +0 -1
- package/build/types/event.d.ts +0 -99
- package/build/types/event.d.ts.map +0 -1
- package/build/types/eventprocessor.d.ts +0 -12
- package/build/types/eventprocessor.d.ts.map +0 -1
- package/build/types/exception.d.ts +0 -12
- package/build/types/exception.d.ts.map +0 -1
- package/build/types/extra.d.ts +0 -3
- package/build/types/extra.d.ts.map +0 -1
- package/build/types/feedback/config.d.ts +0 -178
- package/build/types/feedback/config.d.ts.map +0 -1
- package/build/types/feedback/form.d.ts +0 -8
- package/build/types/feedback/form.d.ts.map +0 -1
- package/build/types/feedback/index.d.ts +0 -71
- package/build/types/feedback/index.d.ts.map +0 -1
- package/build/types/feedback/sendFeedback.d.ts +0 -49
- package/build/types/feedback/sendFeedback.d.ts.map +0 -1
- package/build/types/feedback/theme.d.ts +0 -35
- package/build/types/feedback/theme.d.ts.map +0 -1
- package/build/types/hub.d.ts +0 -195
- package/build/types/hub.d.ts.map +0 -1
- package/build/types/instrument.d.ts +0 -69
- package/build/types/instrument.d.ts.map +0 -1
- package/build/types/integration.d.ts +0 -52
- package/build/types/integration.d.ts.map +0 -1
- package/build/types/measurement.d.ts +0 -24
- package/build/types/measurement.d.ts.map +0 -1
- package/build/types/mechanism.d.ts +0 -51
- package/build/types/mechanism.d.ts.map +0 -1
- package/build/types/metrics.d.ts +0 -94
- package/build/types/metrics.d.ts.map +0 -1
- package/build/types/misc.d.ts +0 -53
- package/build/types/misc.d.ts.map +0 -1
- package/build/types/opentelemetry.d.ts +0 -14
- package/build/types/opentelemetry.d.ts.map +0 -1
- package/build/types/options.d.ts +0 -315
- package/build/types/options.d.ts.map +0 -1
- package/build/types/package.d.ts +0 -8
- package/build/types/package.d.ts.map +0 -1
- package/build/types/parameterize.d.ts +0 -5
- package/build/types/parameterize.d.ts.map +0 -1
- package/build/types/polymorphics.d.ts +0 -71
- package/build/types/polymorphics.d.ts.map +0 -1
- package/build/types/profiling.d.ts +0 -143
- package/build/types/profiling.d.ts.map +0 -1
- package/build/types/replay.d.ts +0 -25
- package/build/types/replay.d.ts.map +0 -1
- package/build/types/request.d.ts +0 -38
- package/build/types/request.d.ts.map +0 -1
- package/build/types/runtime.d.ts +0 -6
- package/build/types/runtime.d.ts.map +0 -1
- package/build/types/samplingcontext.d.ts +0 -41
- package/build/types/samplingcontext.d.ts.map +0 -1
- package/build/types/scope.d.ts +0 -241
- package/build/types/scope.d.ts.map +0 -1
- package/build/types/sdkinfo.d.ts +0 -8
- package/build/types/sdkinfo.d.ts.map +0 -1
- package/build/types/sdkmetadata.d.ts +0 -5
- package/build/types/sdkmetadata.d.ts.map +0 -1
- package/build/types/session.d.ts +0 -75
- package/build/types/session.d.ts.map +0 -1
- package/build/types/severity.d.ts +0 -2
- package/build/types/severity.d.ts.map +0 -1
- package/build/types/span.d.ts +0 -222
- package/build/types/span.d.ts.map +0 -1
- package/build/types/spanStatus.d.ts +0 -59
- package/build/types/spanStatus.d.ts.map +0 -1
- package/build/types/stackframe.d.ts +0 -22
- package/build/types/stackframe.d.ts.map +0 -1
- package/build/types/stacktrace.d.ts +0 -10
- package/build/types/stacktrace.d.ts.map +0 -1
- package/build/types/startSpanOptions.d.ts +0 -46
- package/build/types/startSpanOptions.d.ts.map +0 -1
- package/build/types/thread.d.ts +0 -10
- package/build/types/thread.d.ts.map +0 -1
- package/build/types/timedEvent.d.ts +0 -7
- package/build/types/timedEvent.d.ts.map +0 -1
- package/build/types/tracing.d.ts +0 -51
- package/build/types/tracing.d.ts.map +0 -1
- package/build/types/transaction.d.ts +0 -35
- package/build/types/transaction.d.ts.map +0 -1
- package/build/types/transport.d.ts +0 -32
- package/build/types/transport.d.ts.map +0 -1
- package/build/types/user.d.ts +0 -17
- package/build/types/user.d.ts.map +0 -1
- package/build/types/view-hierarchy.d.ts +0 -18
- package/build/types/view-hierarchy.d.ts.map +0 -1
- package/build/types/webfetchapi.d.ts +0 -15
- package/build/types/webfetchapi.d.ts.map +0 -1
- package/build/types/wrappedfunction.d.ts +0 -7
- package/build/types/wrappedfunction.d.ts.map +0 -1
- package/build/types-ts3.8/attachment.d.ts +0 -29
- package/build/types-ts3.8/breadcrumb.d.ts +0 -96
- package/build/types-ts3.8/browseroptions.d.ts +0 -25
- package/build/types-ts3.8/checkin.d.ts +0 -100
- package/build/types-ts3.8/client.d.ts +0 -323
- package/build/types-ts3.8/clientreport.d.ts +0 -12
- package/build/types-ts3.8/context.d.ts +0 -119
- package/build/types-ts3.8/datacategory.d.ts +0 -2
- package/build/types-ts3.8/debugMeta.d.ts +0 -28
- package/build/types-ts3.8/dsn.d.ts +0 -22
- package/build/types-ts3.8/envelope.d.ts +0 -136
- package/build/types-ts3.8/error.d.ts +0 -7
- package/build/types-ts3.8/event.d.ts +0 -99
- package/build/types-ts3.8/eventprocessor.d.ts +0 -12
- package/build/types-ts3.8/exception.d.ts +0 -12
- package/build/types-ts3.8/extra.d.ts +0 -3
- package/build/types-ts3.8/feedback/config.d.ts +0 -178
- package/build/types-ts3.8/feedback/form.d.ts +0 -8
- package/build/types-ts3.8/feedback/index.d.ts +0 -71
- package/build/types-ts3.8/feedback/sendFeedback.d.ts +0 -49
- package/build/types-ts3.8/feedback/theme.d.ts +0 -35
- package/build/types-ts3.8/hub.d.ts +0 -195
- package/build/types-ts3.8/instrument.d.ts +0 -69
- package/build/types-ts3.8/integration.d.ts +0 -52
- package/build/types-ts3.8/measurement.d.ts +0 -24
- package/build/types-ts3.8/mechanism.d.ts +0 -51
- package/build/types-ts3.8/metrics.d.ts +0 -94
- package/build/types-ts3.8/misc.d.ts +0 -53
- package/build/types-ts3.8/opentelemetry.d.ts +0 -17
- package/build/types-ts3.8/options.d.ts +0 -315
- package/build/types-ts3.8/package.d.ts +0 -8
- package/build/types-ts3.8/parameterize.d.ts +0 -5
- package/build/types-ts3.8/polymorphics.d.ts +0 -71
- package/build/types-ts3.8/profiling.d.ts +0 -143
- package/build/types-ts3.8/replay.d.ts +0 -25
- package/build/types-ts3.8/request.d.ts +0 -41
- package/build/types-ts3.8/runtime.d.ts +0 -6
- package/build/types-ts3.8/samplingcontext.d.ts +0 -41
- package/build/types-ts3.8/scope.d.ts +0 -241
- package/build/types-ts3.8/sdkinfo.d.ts +0 -8
- package/build/types-ts3.8/sdkmetadata.d.ts +0 -5
- package/build/types-ts3.8/session.d.ts +0 -75
- package/build/types-ts3.8/severity.d.ts +0 -2
- package/build/types-ts3.8/span.d.ts +0 -222
- package/build/types-ts3.8/spanStatus.d.ts +0 -59
- package/build/types-ts3.8/stackframe.d.ts +0 -22
- package/build/types-ts3.8/stacktrace.d.ts +0 -16
- package/build/types-ts3.8/startSpanOptions.d.ts +0 -46
- package/build/types-ts3.8/thread.d.ts +0 -10
- package/build/types-ts3.8/timedEvent.d.ts +0 -7
- package/build/types-ts3.8/tracing.d.ts +0 -51
- package/build/types-ts3.8/transaction.d.ts +0 -35
- package/build/types-ts3.8/transport.d.ts +0 -32
- package/build/types-ts3.8/user.d.ts +0 -17
- package/build/types-ts3.8/view-hierarchy.d.ts +0 -18
- package/build/types-ts3.8/webfetchapi.d.ts +0 -15
- package/build/types-ts3.8/wrappedfunction.d.ts +0 -7
|
@@ -1,222 +0,0 @@
|
|
|
1
|
-
import { Measurements } from './measurement';
|
|
2
|
-
import { Primitive } from './misc';
|
|
3
|
-
import { HrTime } from './opentelemetry';
|
|
4
|
-
import { SpanStatus } from './spanStatus';
|
|
5
|
-
import { TransactionSource } from './transaction';
|
|
6
|
-
type SpanOriginType = 'manual' | 'auto';
|
|
7
|
-
type SpanOriginCategory = string;
|
|
8
|
-
type SpanOriginIntegrationName = string;
|
|
9
|
-
type SpanOriginIntegrationPart = string;
|
|
10
|
-
export type SpanOrigin = SpanOriginType | string | string | string;
|
|
11
|
-
export type SpanAttributeValue = string | number | boolean | Array<null | undefined | string> | Array<null | undefined | number> | Array<null | undefined | boolean>;
|
|
12
|
-
export type SpanAttributes = Partial<{
|
|
13
|
-
'sentry.origin': string;
|
|
14
|
-
'sentry.op': string;
|
|
15
|
-
'sentry.source': TransactionSource;
|
|
16
|
-
'sentry.sample_rate': number;
|
|
17
|
-
}> & Record<string, SpanAttributeValue | undefined>;
|
|
18
|
-
export type MetricSummary = {
|
|
19
|
-
min: number;
|
|
20
|
-
max: number;
|
|
21
|
-
count: number;
|
|
22
|
-
sum: number;
|
|
23
|
-
tags?: Record<string, Primitive> | undefined;
|
|
24
|
-
};
|
|
25
|
-
/** This type is aligned with the OpenTelemetry TimeInput type. */
|
|
26
|
-
export type SpanTimeInput = HrTime | number | Date;
|
|
27
|
-
/** A JSON representation of a span. */
|
|
28
|
-
export interface SpanJSON {
|
|
29
|
-
data?: {
|
|
30
|
-
[key: string]: any;
|
|
31
|
-
};
|
|
32
|
-
description?: string;
|
|
33
|
-
op?: string;
|
|
34
|
-
parent_span_id?: string;
|
|
35
|
-
span_id: string;
|
|
36
|
-
start_timestamp: number;
|
|
37
|
-
status?: string;
|
|
38
|
-
timestamp?: number;
|
|
39
|
-
trace_id: string;
|
|
40
|
-
origin?: SpanOrigin;
|
|
41
|
-
_metrics_summary?: Record<string, Array<MetricSummary>>;
|
|
42
|
-
profile_id?: string;
|
|
43
|
-
exclusive_time?: number;
|
|
44
|
-
measurements?: Measurements;
|
|
45
|
-
is_segment?: boolean;
|
|
46
|
-
segment_id?: string;
|
|
47
|
-
}
|
|
48
|
-
type TraceFlagNone = 0;
|
|
49
|
-
type TraceFlagSampled = 1;
|
|
50
|
-
export type TraceFlag = TraceFlagNone | TraceFlagSampled;
|
|
51
|
-
export interface TraceState {
|
|
52
|
-
/**
|
|
53
|
-
* Create a new TraceState which inherits from this TraceState and has the
|
|
54
|
-
* given key set.
|
|
55
|
-
* The new entry will always be added in the front of the list of states.
|
|
56
|
-
*
|
|
57
|
-
* @param key key of the TraceState entry.
|
|
58
|
-
* @param value value of the TraceState entry.
|
|
59
|
-
*/
|
|
60
|
-
set(key: string, value: string): TraceState;
|
|
61
|
-
/**
|
|
62
|
-
* Return a new TraceState which inherits from this TraceState but does not
|
|
63
|
-
* contain the given key.
|
|
64
|
-
*
|
|
65
|
-
* @param key the key for the TraceState entry to be removed.
|
|
66
|
-
*/
|
|
67
|
-
unset(key: string): TraceState;
|
|
68
|
-
/**
|
|
69
|
-
* Returns the value to which the specified key is mapped, or `undefined` if
|
|
70
|
-
* this map contains no mapping for the key.
|
|
71
|
-
*
|
|
72
|
-
* @param key with which the specified value is to be associated.
|
|
73
|
-
* @returns the value to which the specified key is mapped, or `undefined` if
|
|
74
|
-
* this map contains no mapping for the key.
|
|
75
|
-
*/
|
|
76
|
-
get(key: string): string | undefined;
|
|
77
|
-
/**
|
|
78
|
-
* Serializes the TraceState to a `list` as defined below. The `list` is a
|
|
79
|
-
* series of `list-members` separated by commas `,`, and a list-member is a
|
|
80
|
-
* key/value pair separated by an equals sign `=`. Spaces and horizontal tabs
|
|
81
|
-
* surrounding `list-members` are ignored. There can be a maximum of 32
|
|
82
|
-
* `list-members` in a `list`.
|
|
83
|
-
*
|
|
84
|
-
* @returns the serialized string.
|
|
85
|
-
*/
|
|
86
|
-
serialize(): string;
|
|
87
|
-
}
|
|
88
|
-
export interface SpanContextData {
|
|
89
|
-
/**
|
|
90
|
-
* The ID of the trace that this span belongs to. It is worldwide unique
|
|
91
|
-
* with practically sufficient probability by being made as 16 randomly
|
|
92
|
-
* generated bytes, encoded as a 32 lowercase hex characters corresponding to
|
|
93
|
-
* 128 bits.
|
|
94
|
-
*/
|
|
95
|
-
traceId: string;
|
|
96
|
-
/**
|
|
97
|
-
* The ID of the Span. It is globally unique with practically sufficient
|
|
98
|
-
* probability by being made as 8 randomly generated bytes, encoded as a 16
|
|
99
|
-
* lowercase hex characters corresponding to 64 bits.
|
|
100
|
-
*/
|
|
101
|
-
spanId: string;
|
|
102
|
-
/**
|
|
103
|
-
* Only true if the SentrySpanArguments was propagated from a remote parent.
|
|
104
|
-
*/
|
|
105
|
-
isRemote?: boolean | undefined;
|
|
106
|
-
/**
|
|
107
|
-
* Trace flags to propagate.
|
|
108
|
-
*
|
|
109
|
-
* It is represented as 1 byte (bitmap). Bit to represent whether trace is
|
|
110
|
-
* sampled or not. When set, the least significant bit documents that the
|
|
111
|
-
* caller may have recorded trace data. A caller who does not record trace
|
|
112
|
-
* data out-of-band leaves this flag unset.
|
|
113
|
-
*/
|
|
114
|
-
traceFlags: TraceFlag | number;
|
|
115
|
-
/** In OpenTelemetry, this can be used to store trace state, which are basically key-value pairs. */
|
|
116
|
-
traceState?: TraceState | undefined;
|
|
117
|
-
}
|
|
118
|
-
/**
|
|
119
|
-
* Interface holding all properties that can be set on a Span on creation.
|
|
120
|
-
* This is only used for the legacy span/transaction creation and will go away in v8.
|
|
121
|
-
*/
|
|
122
|
-
export interface SentrySpanArguments {
|
|
123
|
-
/**
|
|
124
|
-
* Human-readable identifier for the span.
|
|
125
|
-
*/
|
|
126
|
-
name?: string | undefined;
|
|
127
|
-
/**
|
|
128
|
-
* Operation of the Span.
|
|
129
|
-
*/
|
|
130
|
-
op?: string | undefined;
|
|
131
|
-
/**
|
|
132
|
-
* Parent Span ID
|
|
133
|
-
*/
|
|
134
|
-
parentSpanId?: string | undefined;
|
|
135
|
-
/**
|
|
136
|
-
* Was this span chosen to be sent as part of the sample?
|
|
137
|
-
*/
|
|
138
|
-
sampled?: boolean | undefined;
|
|
139
|
-
/**
|
|
140
|
-
* Span ID
|
|
141
|
-
*/
|
|
142
|
-
spanId?: string | undefined;
|
|
143
|
-
/**
|
|
144
|
-
* Trace ID
|
|
145
|
-
*/
|
|
146
|
-
traceId?: string | undefined;
|
|
147
|
-
/**
|
|
148
|
-
* Attributes of the Span.
|
|
149
|
-
*/
|
|
150
|
-
attributes?: SpanAttributes;
|
|
151
|
-
/**
|
|
152
|
-
* Timestamp in seconds (epoch time) indicating when the span started.
|
|
153
|
-
*/
|
|
154
|
-
startTimestamp?: number | undefined;
|
|
155
|
-
/**
|
|
156
|
-
* Timestamp in seconds (epoch time) indicating when the span ended.
|
|
157
|
-
*/
|
|
158
|
-
endTimestamp?: number | undefined;
|
|
159
|
-
/**
|
|
160
|
-
* Set to `true` if this span should be sent as a standalone segment span
|
|
161
|
-
* as opposed to a transaction.
|
|
162
|
-
*
|
|
163
|
-
* @experimental this option is currently experimental and should only be
|
|
164
|
-
* used within SDK code. It might be removed or changed in the future.
|
|
165
|
-
*/
|
|
166
|
-
isStandalone?: boolean | undefined;
|
|
167
|
-
}
|
|
168
|
-
/**
|
|
169
|
-
* A generic Span which holds trace data.
|
|
170
|
-
*/
|
|
171
|
-
export interface Span {
|
|
172
|
-
/**
|
|
173
|
-
* Get context data for this span.
|
|
174
|
-
* This includes the spanId & the traceId.
|
|
175
|
-
*/
|
|
176
|
-
spanContext(): SpanContextData;
|
|
177
|
-
/**
|
|
178
|
-
* End the current span.
|
|
179
|
-
*/
|
|
180
|
-
end(endTimestamp?: SpanTimeInput): void;
|
|
181
|
-
/**
|
|
182
|
-
* Set a single attribute on the span.
|
|
183
|
-
* Set it to `undefined` to remove the attribute.
|
|
184
|
-
*/
|
|
185
|
-
setAttribute(key: string, value: SpanAttributeValue | undefined): this;
|
|
186
|
-
/**
|
|
187
|
-
* Set multiple attributes on the span.
|
|
188
|
-
* Any attribute set to `undefined` will be removed.
|
|
189
|
-
*/
|
|
190
|
-
setAttributes(attributes: SpanAttributes): this;
|
|
191
|
-
/**
|
|
192
|
-
* Sets the status attribute on the current span.
|
|
193
|
-
*/
|
|
194
|
-
setStatus(status: SpanStatus): this;
|
|
195
|
-
/**
|
|
196
|
-
* Update the name of the span.
|
|
197
|
-
*/
|
|
198
|
-
updateName(name: string): this;
|
|
199
|
-
/**
|
|
200
|
-
* If this is span is actually recording data.
|
|
201
|
-
* This will return false if tracing is disabled, this span was not sampled or if the span is already finished.
|
|
202
|
-
*/
|
|
203
|
-
isRecording(): boolean;
|
|
204
|
-
/**
|
|
205
|
-
* Adds an event to the Span.
|
|
206
|
-
*/
|
|
207
|
-
addEvent(name: string, attributesOrStartTime?: SpanAttributes | SpanTimeInput, startTime?: SpanTimeInput): this;
|
|
208
|
-
/**
|
|
209
|
-
* NOT USED IN SENTRY, only added for compliance with OTEL Span interface
|
|
210
|
-
*/
|
|
211
|
-
addLink(link: unknown): this;
|
|
212
|
-
/**
|
|
213
|
-
* NOT USED IN SENTRY, only added for compliance with OTEL Span interface
|
|
214
|
-
*/
|
|
215
|
-
addLinks(links: unknown): this;
|
|
216
|
-
/**
|
|
217
|
-
* NOT USED IN SENTRY, only added for compliance with OTEL Span interface
|
|
218
|
-
*/
|
|
219
|
-
recordException(exception: unknown, time?: number): void;
|
|
220
|
-
}
|
|
221
|
-
export {};
|
|
222
|
-
//# sourceMappingURL=span.d.ts.map
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
type SpanStatusType =
|
|
2
|
-
/** The operation completed successfully. */
|
|
3
|
-
'ok'
|
|
4
|
-
/** Deadline expired before operation could complete. */
|
|
5
|
-
| 'deadline_exceeded'
|
|
6
|
-
/** 401 Unauthorized (actually does mean unauthenticated according to RFC 7235) */
|
|
7
|
-
| 'unauthenticated'
|
|
8
|
-
/** 403 Forbidden */
|
|
9
|
-
| 'permission_denied'
|
|
10
|
-
/** 404 Not Found. Some requested entity (file or directory) was not found. */
|
|
11
|
-
| 'not_found'
|
|
12
|
-
/** 429 Too Many Requests */
|
|
13
|
-
| 'resource_exhausted'
|
|
14
|
-
/** Client specified an invalid argument. 4xx. */
|
|
15
|
-
| 'invalid_argument'
|
|
16
|
-
/** 501 Not Implemented */
|
|
17
|
-
| 'unimplemented'
|
|
18
|
-
/** 503 Service Unavailable */
|
|
19
|
-
| 'unavailable'
|
|
20
|
-
/** Other/generic 5xx. */
|
|
21
|
-
| 'internal_error'
|
|
22
|
-
/** Unknown. Any non-standard HTTP status code. */
|
|
23
|
-
| 'unknown_error'
|
|
24
|
-
/** The operation was cancelled (typically by the user). */
|
|
25
|
-
| 'cancelled'
|
|
26
|
-
/** Already exists (409) */
|
|
27
|
-
| 'already_exists'
|
|
28
|
-
/** Operation was rejected because the system is not in a state required for the operation's */
|
|
29
|
-
| 'failed_precondition'
|
|
30
|
-
/** The operation was aborted, typically due to a concurrency issue. */
|
|
31
|
-
| 'aborted'
|
|
32
|
-
/** Operation was attempted past the valid range. */
|
|
33
|
-
| 'out_of_range'
|
|
34
|
-
/** Unrecoverable data loss or corruption */
|
|
35
|
-
| 'data_loss';
|
|
36
|
-
declare const SPAN_STATUS_UNSET = 0;
|
|
37
|
-
declare const SPAN_STATUS_OK = 1;
|
|
38
|
-
declare const SPAN_STATUS_ERROR = 2;
|
|
39
|
-
/** The status code of a span. */
|
|
40
|
-
export type SpanStatusCode = typeof SPAN_STATUS_UNSET | typeof SPAN_STATUS_OK | typeof SPAN_STATUS_ERROR;
|
|
41
|
-
/**
|
|
42
|
-
* The status of a span.
|
|
43
|
-
* This can optionally contain a human-readable message.
|
|
44
|
-
*/
|
|
45
|
-
export interface SpanStatus {
|
|
46
|
-
/**
|
|
47
|
-
* The status code of this message.
|
|
48
|
-
* 0 = UNSET
|
|
49
|
-
* 1 = OK
|
|
50
|
-
* 2 = ERROR
|
|
51
|
-
*/
|
|
52
|
-
code: SpanStatusCode;
|
|
53
|
-
/**
|
|
54
|
-
* A developer-facing error message.
|
|
55
|
-
*/
|
|
56
|
-
message?: SpanStatusType | string;
|
|
57
|
-
}
|
|
58
|
-
export {};
|
|
59
|
-
//# sourceMappingURL=spanStatus.d.ts.map
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/** JSDoc */
|
|
2
|
-
export interface StackFrame {
|
|
3
|
-
filename?: string;
|
|
4
|
-
function?: string;
|
|
5
|
-
module?: string;
|
|
6
|
-
platform?: string;
|
|
7
|
-
lineno?: number;
|
|
8
|
-
colno?: number;
|
|
9
|
-
abs_path?: string;
|
|
10
|
-
context_line?: string;
|
|
11
|
-
pre_context?: string[];
|
|
12
|
-
post_context?: string[];
|
|
13
|
-
in_app?: boolean;
|
|
14
|
-
instruction_addr?: string;
|
|
15
|
-
addr_mode?: string;
|
|
16
|
-
vars?: {
|
|
17
|
-
[key: string]: any;
|
|
18
|
-
};
|
|
19
|
-
debug_id?: string;
|
|
20
|
-
module_metadata?: any;
|
|
21
|
-
}
|
|
22
|
-
//# sourceMappingURL=stackframe.d.ts.map
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { StackFrame } from './stackframe';
|
|
2
|
-
/** JSDoc */
|
|
3
|
-
export interface Stacktrace {
|
|
4
|
-
frames?: StackFrame[];
|
|
5
|
-
frames_omitted?: [
|
|
6
|
-
number,
|
|
7
|
-
number
|
|
8
|
-
];
|
|
9
|
-
}
|
|
10
|
-
export type StackParser = (stack: string, skipFirstLines?: number, framesToPop?: number) => StackFrame[];
|
|
11
|
-
export type StackLineParserFn = (line: string) => StackFrame | undefined;
|
|
12
|
-
export type StackLineParser = [
|
|
13
|
-
number,
|
|
14
|
-
StackLineParserFn
|
|
15
|
-
];
|
|
16
|
-
//# sourceMappingURL=stacktrace.d.ts.map
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { Scope } from './scope';
|
|
2
|
-
import { Span, SpanAttributes, SpanTimeInput } from './span';
|
|
3
|
-
export interface StartSpanOptions {
|
|
4
|
-
/** A manually specified start time for the created `Span` object. */
|
|
5
|
-
startTime?: SpanTimeInput;
|
|
6
|
-
/** If defined, start this span off this scope instead off the current scope. */
|
|
7
|
-
scope?: Scope;
|
|
8
|
-
/** The name of the span. */
|
|
9
|
-
name: string;
|
|
10
|
-
/** If set to true, only start a span if a parent span exists. */
|
|
11
|
-
onlyIfParent?: boolean;
|
|
12
|
-
/** An op for the span. This is a categorization for spans. */
|
|
13
|
-
op?: string;
|
|
14
|
-
/**
|
|
15
|
-
* If provided, make the new span a child of this span.
|
|
16
|
-
* If this is not provided, the new span will be a child of the currently active span.
|
|
17
|
-
* If this is set to `null`, the new span will have no parent span.
|
|
18
|
-
*/
|
|
19
|
-
parentSpan?: Span | null;
|
|
20
|
-
/**
|
|
21
|
-
* If set to true, this span will be forced to be treated as a transaction in the Sentry UI, if possible and applicable.
|
|
22
|
-
* Note that it is up to the SDK to decide how exactly the span will be sent, which may change in future SDK versions.
|
|
23
|
-
* It is not guaranteed that a span started with this flag set to `true` will be sent as a transaction.
|
|
24
|
-
*/
|
|
25
|
-
forceTransaction?: boolean;
|
|
26
|
-
/** Attributes for the span. */
|
|
27
|
-
attributes?: SpanAttributes;
|
|
28
|
-
/**
|
|
29
|
-
* Experimental options without any stability guarantees. Use with caution!
|
|
30
|
-
*/
|
|
31
|
-
experimental?: {
|
|
32
|
-
/**
|
|
33
|
-
* If set to true, always start a standalone span which will be sent as a
|
|
34
|
-
* standalone segment span envelope instead of a transaction envelope.
|
|
35
|
-
*
|
|
36
|
-
* @internal this option is currently experimental and should only be
|
|
37
|
-
* used within SDK code. It might be removed or changed in the future.
|
|
38
|
-
* The payload ("envelope") of the resulting request sending the span to
|
|
39
|
-
* Sentry might change at any time.
|
|
40
|
-
*
|
|
41
|
-
* @hidden
|
|
42
|
-
*/
|
|
43
|
-
standalone?: boolean;
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
//# sourceMappingURL=startSpanOptions.d.ts.map
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { DynamicSamplingContext } from './envelope';
|
|
2
|
-
export type TracePropagationTargets = (string | RegExp)[];
|
|
3
|
-
/**
|
|
4
|
-
* `PropagationContext` represents the data from an incoming trace. It should be constructed from incoming trace data,
|
|
5
|
-
* usually represented by `sentry-trace` and `baggage` HTTP headers.
|
|
6
|
-
*
|
|
7
|
-
* There is always a propagation context present in the SDK (or rather on Scopes), holding at least a `traceId`. This is
|
|
8
|
-
* to ensure that there is always a trace we can attach events onto, even if performance monitoring is disabled. If
|
|
9
|
-
* there was no incoming `traceId`, the `traceId` will be generated by the current SDK.
|
|
10
|
-
*/
|
|
11
|
-
export interface PropagationContext {
|
|
12
|
-
/**
|
|
13
|
-
* Either represents the incoming `traceId` or the `traceId` generated by the current SDK, if there was no incoming trace.
|
|
14
|
-
*/
|
|
15
|
-
traceId: string;
|
|
16
|
-
/**
|
|
17
|
-
* Represents the execution context of the current SDK. This acts as a fallback value to associate events with a
|
|
18
|
-
* particular execution context when performance monitoring is disabled.
|
|
19
|
-
*
|
|
20
|
-
* The ID of a current span (if one exists) should have precedence over this value when propagating trace data.
|
|
21
|
-
*/
|
|
22
|
-
spanId: string;
|
|
23
|
-
/**
|
|
24
|
-
* Represents the sampling decision of the incoming trace.
|
|
25
|
-
*
|
|
26
|
-
* The current SDK should not modify this value!
|
|
27
|
-
*/
|
|
28
|
-
sampled?: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* The `parentSpanId` denotes the ID of the incoming client span. If there is no `parentSpanId` on the propagation
|
|
31
|
-
* context, it means that the the incoming trace didn't come from a span.
|
|
32
|
-
*
|
|
33
|
-
* The current SDK should not modify this value!
|
|
34
|
-
*/
|
|
35
|
-
parentSpanId?: string;
|
|
36
|
-
/**
|
|
37
|
-
* An undefined dsc in the propagation context means that the current SDK invocation is the head of trace and still free to modify and set the DSC for outgoing requests.
|
|
38
|
-
*
|
|
39
|
-
* The current SDK should not modify this value!
|
|
40
|
-
*/
|
|
41
|
-
dsc?: Partial<DynamicSamplingContext>;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* An object holding trace data, like span and trace ids, sampling decision, and dynamic sampling context
|
|
45
|
-
* in a serialized form. Both keys are expected to be used as Http headers or Html meta tags.
|
|
46
|
-
*/
|
|
47
|
-
export interface SerializedTraceData {
|
|
48
|
-
'sentry-trace'?: string;
|
|
49
|
-
baggage?: string;
|
|
50
|
-
}
|
|
51
|
-
//# sourceMappingURL=tracing.d.ts.map
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Data pulled from a `sentry-trace` header
|
|
3
|
-
*/
|
|
4
|
-
export interface TraceparentData {
|
|
5
|
-
/**
|
|
6
|
-
* Trace ID
|
|
7
|
-
*/
|
|
8
|
-
traceId?: string | undefined;
|
|
9
|
-
/**
|
|
10
|
-
* Parent Span ID
|
|
11
|
-
*/
|
|
12
|
-
parentSpanId?: string | undefined;
|
|
13
|
-
/**
|
|
14
|
-
* If this transaction has a parent, the parent's sampling decision
|
|
15
|
-
*/
|
|
16
|
-
parentSampled?: boolean | undefined;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Contains information about how the name of the transaction was determined. This will be used by the server to decide
|
|
20
|
-
* whether or not to scrub identifiers from the transaction name, or replace the entire name with a placeholder.
|
|
21
|
-
*/
|
|
22
|
-
export type TransactionSource =
|
|
23
|
-
/** User-defined name */
|
|
24
|
-
'custom'
|
|
25
|
-
/** Raw URL, potentially containing identifiers */
|
|
26
|
-
| 'url'
|
|
27
|
-
/** Parametrized URL / route */
|
|
28
|
-
| 'route'
|
|
29
|
-
/** Name of the view handling the request */
|
|
30
|
-
| 'view'
|
|
31
|
-
/** Named after a software component, such as a function or class name. */
|
|
32
|
-
| 'component'
|
|
33
|
-
/** Name of a background task (e.g. a Celery task) */
|
|
34
|
-
| 'task';
|
|
35
|
-
//# sourceMappingURL=transaction.d.ts.map
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { Client } from './client';
|
|
2
|
-
import { Envelope } from './envelope';
|
|
3
|
-
export type TransportRequest = {
|
|
4
|
-
body: string | Uint8Array;
|
|
5
|
-
};
|
|
6
|
-
export type TransportMakeRequestResponse = {
|
|
7
|
-
statusCode?: number;
|
|
8
|
-
headers?: {
|
|
9
|
-
[key: string]: string | null;
|
|
10
|
-
'x-sentry-rate-limits': string | null;
|
|
11
|
-
'retry-after': string | null;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
export interface InternalBaseTransportOptions {
|
|
15
|
-
/**
|
|
16
|
-
* @ignore
|
|
17
|
-
* Users should pass the tunnel property via the init/client options.
|
|
18
|
-
* This is only used by the SDK to pass the tunnel to the transport.
|
|
19
|
-
*/
|
|
20
|
-
tunnel?: string;
|
|
21
|
-
bufferSize?: number;
|
|
22
|
-
recordDroppedEvent: Client['recordDroppedEvent'];
|
|
23
|
-
}
|
|
24
|
-
export interface BaseTransportOptions extends InternalBaseTransportOptions {
|
|
25
|
-
url: string;
|
|
26
|
-
}
|
|
27
|
-
export interface Transport {
|
|
28
|
-
send(request: Envelope): PromiseLike<TransportMakeRequestResponse>;
|
|
29
|
-
flush(timeout?: number): PromiseLike<boolean>;
|
|
30
|
-
}
|
|
31
|
-
export type TransportRequestExecutor = (request: TransportRequest) => PromiseLike<TransportMakeRequestResponse>;
|
|
32
|
-
//# sourceMappingURL=transport.d.ts.map
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* An interface describing a user of an application or a handled request.
|
|
3
|
-
*/
|
|
4
|
-
export interface User {
|
|
5
|
-
[key: string]: any;
|
|
6
|
-
id?: string | number;
|
|
7
|
-
ip_address?: string;
|
|
8
|
-
email?: string;
|
|
9
|
-
username?: string;
|
|
10
|
-
geo?: GeoLocation;
|
|
11
|
-
}
|
|
12
|
-
export interface GeoLocation {
|
|
13
|
-
country_code?: string;
|
|
14
|
-
region?: string;
|
|
15
|
-
city?: string;
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=user.d.ts.map
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export type ViewHierarchyWindow = {
|
|
2
|
-
alpha: number;
|
|
3
|
-
height: number;
|
|
4
|
-
type: string;
|
|
5
|
-
visible: boolean;
|
|
6
|
-
width: number;
|
|
7
|
-
x: number;
|
|
8
|
-
y: number;
|
|
9
|
-
z?: number;
|
|
10
|
-
children?: ViewHierarchyWindow[];
|
|
11
|
-
depth?: number;
|
|
12
|
-
identifier?: string;
|
|
13
|
-
} & Record<string, string | number | boolean>;
|
|
14
|
-
export type ViewHierarchyData = {
|
|
15
|
-
rendering_system: string;
|
|
16
|
-
windows: ViewHierarchyWindow[];
|
|
17
|
-
};
|
|
18
|
-
//# sourceMappingURL=view-hierarchy.d.ts.map
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export interface WebFetchHeaders {
|
|
2
|
-
append(name: string, value: string): void;
|
|
3
|
-
delete(name: string): void;
|
|
4
|
-
get(name: string): string | null;
|
|
5
|
-
has(name: string): boolean;
|
|
6
|
-
set(name: string, value: string): void;
|
|
7
|
-
forEach(callbackfn: (value: string, key: string, parent: WebFetchHeaders) => void): void;
|
|
8
|
-
}
|
|
9
|
-
export interface WebFetchRequest {
|
|
10
|
-
readonly headers: WebFetchHeaders;
|
|
11
|
-
readonly method: string;
|
|
12
|
-
readonly url: string;
|
|
13
|
-
clone(): WebFetchRequest;
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=webfetchapi.d.ts.map
|