@sentry/types 8.41.0 → 8.42.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.
Files changed (177) hide show
  1. package/README.md +5 -1
  2. package/build/esm/package.json +1 -1
  3. package/build/types/index.d.ts +377 -53
  4. package/build/types/index.d.ts.map +1 -1
  5. package/build/types-ts3.8/index.d.ts +377 -53
  6. package/package.json +4 -1
  7. package/build/types/attachment.d.ts +0 -29
  8. package/build/types/attachment.d.ts.map +0 -1
  9. package/build/types/breadcrumb.d.ts +0 -96
  10. package/build/types/breadcrumb.d.ts.map +0 -1
  11. package/build/types/browseroptions.d.ts +0 -25
  12. package/build/types/browseroptions.d.ts.map +0 -1
  13. package/build/types/checkin.d.ts +0 -100
  14. package/build/types/checkin.d.ts.map +0 -1
  15. package/build/types/client.d.ts +0 -323
  16. package/build/types/client.d.ts.map +0 -1
  17. package/build/types/clientreport.d.ts +0 -12
  18. package/build/types/clientreport.d.ts.map +0 -1
  19. package/build/types/context.d.ts +0 -119
  20. package/build/types/context.d.ts.map +0 -1
  21. package/build/types/datacategory.d.ts +0 -2
  22. package/build/types/datacategory.d.ts.map +0 -1
  23. package/build/types/debugMeta.d.ts +0 -28
  24. package/build/types/debugMeta.d.ts.map +0 -1
  25. package/build/types/dsn.d.ts +0 -22
  26. package/build/types/dsn.d.ts.map +0 -1
  27. package/build/types/envelope.d.ts +0 -127
  28. package/build/types/envelope.d.ts.map +0 -1
  29. package/build/types/error.d.ts +0 -7
  30. package/build/types/error.d.ts.map +0 -1
  31. package/build/types/event.d.ts +0 -99
  32. package/build/types/event.d.ts.map +0 -1
  33. package/build/types/eventprocessor.d.ts +0 -12
  34. package/build/types/eventprocessor.d.ts.map +0 -1
  35. package/build/types/exception.d.ts +0 -12
  36. package/build/types/exception.d.ts.map +0 -1
  37. package/build/types/extra.d.ts +0 -3
  38. package/build/types/extra.d.ts.map +0 -1
  39. package/build/types/feedback/config.d.ts +0 -178
  40. package/build/types/feedback/config.d.ts.map +0 -1
  41. package/build/types/feedback/form.d.ts +0 -8
  42. package/build/types/feedback/form.d.ts.map +0 -1
  43. package/build/types/feedback/index.d.ts +0 -71
  44. package/build/types/feedback/index.d.ts.map +0 -1
  45. package/build/types/feedback/sendFeedback.d.ts +0 -49
  46. package/build/types/feedback/sendFeedback.d.ts.map +0 -1
  47. package/build/types/feedback/theme.d.ts +0 -35
  48. package/build/types/feedback/theme.d.ts.map +0 -1
  49. package/build/types/hub.d.ts +0 -195
  50. package/build/types/hub.d.ts.map +0 -1
  51. package/build/types/instrument.d.ts +0 -69
  52. package/build/types/instrument.d.ts.map +0 -1
  53. package/build/types/integration.d.ts +0 -52
  54. package/build/types/integration.d.ts.map +0 -1
  55. package/build/types/measurement.d.ts +0 -24
  56. package/build/types/measurement.d.ts.map +0 -1
  57. package/build/types/mechanism.d.ts +0 -51
  58. package/build/types/mechanism.d.ts.map +0 -1
  59. package/build/types/metrics.d.ts +0 -94
  60. package/build/types/metrics.d.ts.map +0 -1
  61. package/build/types/misc.d.ts +0 -53
  62. package/build/types/misc.d.ts.map +0 -1
  63. package/build/types/opentelemetry.d.ts +0 -14
  64. package/build/types/opentelemetry.d.ts.map +0 -1
  65. package/build/types/options.d.ts +0 -315
  66. package/build/types/options.d.ts.map +0 -1
  67. package/build/types/package.d.ts +0 -8
  68. package/build/types/package.d.ts.map +0 -1
  69. package/build/types/parameterize.d.ts +0 -5
  70. package/build/types/parameterize.d.ts.map +0 -1
  71. package/build/types/polymorphics.d.ts +0 -71
  72. package/build/types/polymorphics.d.ts.map +0 -1
  73. package/build/types/profiling.d.ts +0 -143
  74. package/build/types/profiling.d.ts.map +0 -1
  75. package/build/types/replay.d.ts +0 -25
  76. package/build/types/replay.d.ts.map +0 -1
  77. package/build/types/request.d.ts +0 -38
  78. package/build/types/request.d.ts.map +0 -1
  79. package/build/types/runtime.d.ts +0 -6
  80. package/build/types/runtime.d.ts.map +0 -1
  81. package/build/types/samplingcontext.d.ts +0 -41
  82. package/build/types/samplingcontext.d.ts.map +0 -1
  83. package/build/types/scope.d.ts +0 -241
  84. package/build/types/scope.d.ts.map +0 -1
  85. package/build/types/sdkinfo.d.ts +0 -8
  86. package/build/types/sdkinfo.d.ts.map +0 -1
  87. package/build/types/sdkmetadata.d.ts +0 -5
  88. package/build/types/sdkmetadata.d.ts.map +0 -1
  89. package/build/types/session.d.ts +0 -75
  90. package/build/types/session.d.ts.map +0 -1
  91. package/build/types/severity.d.ts +0 -2
  92. package/build/types/severity.d.ts.map +0 -1
  93. package/build/types/span.d.ts +0 -222
  94. package/build/types/span.d.ts.map +0 -1
  95. package/build/types/spanStatus.d.ts +0 -59
  96. package/build/types/spanStatus.d.ts.map +0 -1
  97. package/build/types/stackframe.d.ts +0 -22
  98. package/build/types/stackframe.d.ts.map +0 -1
  99. package/build/types/stacktrace.d.ts +0 -10
  100. package/build/types/stacktrace.d.ts.map +0 -1
  101. package/build/types/startSpanOptions.d.ts +0 -46
  102. package/build/types/startSpanOptions.d.ts.map +0 -1
  103. package/build/types/thread.d.ts +0 -10
  104. package/build/types/thread.d.ts.map +0 -1
  105. package/build/types/timedEvent.d.ts +0 -7
  106. package/build/types/timedEvent.d.ts.map +0 -1
  107. package/build/types/tracing.d.ts +0 -51
  108. package/build/types/tracing.d.ts.map +0 -1
  109. package/build/types/transaction.d.ts +0 -35
  110. package/build/types/transaction.d.ts.map +0 -1
  111. package/build/types/transport.d.ts +0 -32
  112. package/build/types/transport.d.ts.map +0 -1
  113. package/build/types/user.d.ts +0 -17
  114. package/build/types/user.d.ts.map +0 -1
  115. package/build/types/view-hierarchy.d.ts +0 -18
  116. package/build/types/view-hierarchy.d.ts.map +0 -1
  117. package/build/types/webfetchapi.d.ts +0 -15
  118. package/build/types/webfetchapi.d.ts.map +0 -1
  119. package/build/types/wrappedfunction.d.ts +0 -7
  120. package/build/types/wrappedfunction.d.ts.map +0 -1
  121. package/build/types-ts3.8/attachment.d.ts +0 -29
  122. package/build/types-ts3.8/breadcrumb.d.ts +0 -96
  123. package/build/types-ts3.8/browseroptions.d.ts +0 -25
  124. package/build/types-ts3.8/checkin.d.ts +0 -100
  125. package/build/types-ts3.8/client.d.ts +0 -323
  126. package/build/types-ts3.8/clientreport.d.ts +0 -12
  127. package/build/types-ts3.8/context.d.ts +0 -119
  128. package/build/types-ts3.8/datacategory.d.ts +0 -2
  129. package/build/types-ts3.8/debugMeta.d.ts +0 -28
  130. package/build/types-ts3.8/dsn.d.ts +0 -22
  131. package/build/types-ts3.8/envelope.d.ts +0 -136
  132. package/build/types-ts3.8/error.d.ts +0 -7
  133. package/build/types-ts3.8/event.d.ts +0 -99
  134. package/build/types-ts3.8/eventprocessor.d.ts +0 -12
  135. package/build/types-ts3.8/exception.d.ts +0 -12
  136. package/build/types-ts3.8/extra.d.ts +0 -3
  137. package/build/types-ts3.8/feedback/config.d.ts +0 -178
  138. package/build/types-ts3.8/feedback/form.d.ts +0 -8
  139. package/build/types-ts3.8/feedback/index.d.ts +0 -71
  140. package/build/types-ts3.8/feedback/sendFeedback.d.ts +0 -49
  141. package/build/types-ts3.8/feedback/theme.d.ts +0 -35
  142. package/build/types-ts3.8/hub.d.ts +0 -195
  143. package/build/types-ts3.8/instrument.d.ts +0 -69
  144. package/build/types-ts3.8/integration.d.ts +0 -52
  145. package/build/types-ts3.8/measurement.d.ts +0 -24
  146. package/build/types-ts3.8/mechanism.d.ts +0 -51
  147. package/build/types-ts3.8/metrics.d.ts +0 -94
  148. package/build/types-ts3.8/misc.d.ts +0 -53
  149. package/build/types-ts3.8/opentelemetry.d.ts +0 -17
  150. package/build/types-ts3.8/options.d.ts +0 -315
  151. package/build/types-ts3.8/package.d.ts +0 -8
  152. package/build/types-ts3.8/parameterize.d.ts +0 -5
  153. package/build/types-ts3.8/polymorphics.d.ts +0 -71
  154. package/build/types-ts3.8/profiling.d.ts +0 -143
  155. package/build/types-ts3.8/replay.d.ts +0 -25
  156. package/build/types-ts3.8/request.d.ts +0 -41
  157. package/build/types-ts3.8/runtime.d.ts +0 -6
  158. package/build/types-ts3.8/samplingcontext.d.ts +0 -41
  159. package/build/types-ts3.8/scope.d.ts +0 -241
  160. package/build/types-ts3.8/sdkinfo.d.ts +0 -8
  161. package/build/types-ts3.8/sdkmetadata.d.ts +0 -5
  162. package/build/types-ts3.8/session.d.ts +0 -75
  163. package/build/types-ts3.8/severity.d.ts +0 -2
  164. package/build/types-ts3.8/span.d.ts +0 -222
  165. package/build/types-ts3.8/spanStatus.d.ts +0 -59
  166. package/build/types-ts3.8/stackframe.d.ts +0 -22
  167. package/build/types-ts3.8/stacktrace.d.ts +0 -16
  168. package/build/types-ts3.8/startSpanOptions.d.ts +0 -46
  169. package/build/types-ts3.8/thread.d.ts +0 -10
  170. package/build/types-ts3.8/timedEvent.d.ts +0 -7
  171. package/build/types-ts3.8/tracing.d.ts +0 -51
  172. package/build/types-ts3.8/transaction.d.ts +0 -35
  173. package/build/types-ts3.8/transport.d.ts +0 -32
  174. package/build/types-ts3.8/user.d.ts +0 -17
  175. package/build/types-ts3.8/view-hierarchy.d.ts +0 -18
  176. package/build/types-ts3.8/webfetchapi.d.ts +0 -15
  177. package/build/types-ts3.8/wrappedfunction.d.ts +0 -7
@@ -1 +0,0 @@
1
- {"version":3,"file":"browseroptions.d.ts","sourceRoot":"","sources":["../../src/browseroptions.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC;;;OAGG;IACH,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAElC;;;;OAIG;IACH,wBAAwB,CAAC,EAAE,MAAM,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG;IAC1C;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B,CAAC"}
@@ -1,100 +0,0 @@
1
- import type { TraceContext } from './context';
2
- interface CrontabSchedule {
3
- type: 'crontab';
4
- /** The crontab schedule string, e.g. 0 * * * *. */
5
- value: string;
6
- }
7
- interface IntervalSchedule {
8
- type: 'interval';
9
- value: number;
10
- unit: 'year' | 'month' | 'week' | 'day' | 'hour' | 'minute';
11
- }
12
- type MonitorSchedule = CrontabSchedule | IntervalSchedule;
13
- export interface SerializedCheckIn {
14
- /** Check-In ID (unique and client generated). */
15
- check_in_id: string;
16
- /** The distinct slug of the monitor. */
17
- monitor_slug: string;
18
- /** The status of the check-in. */
19
- status: 'in_progress' | 'ok' | 'error';
20
- /** The duration of the check-in in seconds. Will only take effect if the status is ok or error. */
21
- duration?: number;
22
- release?: string;
23
- environment?: string;
24
- monitor_config?: {
25
- schedule: MonitorSchedule;
26
- /**
27
- * The allowed allowed margin of minutes after the expected check-in time that
28
- * the monitor will not be considered missed for.
29
- */
30
- checkin_margin?: number;
31
- /**
32
- * The allowed allowed duration in minutes that the monitor may be `in_progress`
33
- * for before being considered failed due to timeout.
34
- */
35
- max_runtime?: number;
36
- /**
37
- * A tz database string representing the timezone which the monitor's execution schedule is in.
38
- * See: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
39
- */
40
- timezone?: string;
41
- /** How many consecutive failed check-ins it takes to create an issue. */
42
- failure_issue_threshold?: number;
43
- /** How many consecutive OK check-ins it takes to resolve an issue. */
44
- recovery_threshold?: number;
45
- };
46
- contexts?: {
47
- trace?: TraceContext;
48
- };
49
- }
50
- export interface HeartbeatCheckIn {
51
- /** The distinct slug of the monitor. */
52
- monitorSlug: SerializedCheckIn['monitor_slug'];
53
- /** The status of the check-in. */
54
- status: 'ok' | 'error';
55
- }
56
- export interface InProgressCheckIn {
57
- /** The distinct slug of the monitor. */
58
- monitorSlug: SerializedCheckIn['monitor_slug'];
59
- /** The status of the check-in. */
60
- status: 'in_progress';
61
- }
62
- export interface FinishedCheckIn {
63
- /** The distinct slug of the monitor. */
64
- monitorSlug: SerializedCheckIn['monitor_slug'];
65
- /** The status of the check-in. */
66
- status: 'ok' | 'error';
67
- /** Check-In ID (unique and client generated). */
68
- checkInId: SerializedCheckIn['check_in_id'];
69
- /** The duration of the check-in in seconds. Will only take effect if the status is ok or error. */
70
- duration?: SerializedCheckIn['duration'];
71
- }
72
- export type CheckIn = HeartbeatCheckIn | InProgressCheckIn | FinishedCheckIn;
73
- type SerializedMonitorConfig = NonNullable<SerializedCheckIn['monitor_config']>;
74
- export interface MonitorConfig {
75
- /**
76
- * The schedule on which the monitor should run. Either a crontab schedule string or an interval.
77
- */
78
- schedule: MonitorSchedule;
79
- /**
80
- * The allowed allowed margin of minutes after the expected check-in time that
81
- * the monitor will not be considered missed for.
82
- */
83
- checkinMargin?: SerializedMonitorConfig['checkin_margin'];
84
- /**
85
- * The allowed allowed duration in minutes that the monitor may be `in_progress`
86
- * for before being considered failed due to timeout.
87
- */
88
- maxRuntime?: SerializedMonitorConfig['max_runtime'];
89
- /**
90
- * A tz database string representing the timezone which the monitor's execution schedule is in.
91
- * See: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
92
- */
93
- timezone?: SerializedMonitorConfig['timezone'];
94
- /** How many consecutive failed check-ins it takes to create an issue. */
95
- failureIssueThreshold?: SerializedMonitorConfig['failure_issue_threshold'];
96
- /** How many consecutive OK check-ins it takes to resolve an issue. */
97
- recoveryThreshold?: SerializedMonitorConfig['recovery_threshold'];
98
- }
99
- export {};
100
- //# sourceMappingURL=checkin.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"checkin.d.ts","sourceRoot":"","sources":["../../src/checkin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAE9C,UAAU,eAAe;IACvB,IAAI,EAAE,SAAS,CAAC;IAChB,mDAAmD;IACnD,KAAK,EAAE,MAAM,CAAC;CACf;AAED,UAAU,gBAAgB;IACxB,IAAI,EAAE,UAAU,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,QAAQ,CAAC;CAC7D;AAED,KAA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B,CAAC,aAAa,CAAC,CAAC;IAC5C,mGAAmG;IACnG,QAAQ,CAAC,EAAE,iBAAiB,CAAC,UAAU,CAAC,CAAC;CAC1C;AAED,MAAM,MAAM,OAAO,GAAG,gBAAgB,GAAG,iBAAiB,GAAG,eAAe,CAAC;AAE7E,KAAK,uBAAuB,GAAG,WAAW,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,CAAC,CAAC;AAEhF,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,QAAQ,EAAE,eAAe,CAAC;IAC1B;;;OAGG;IACH,aAAa,CAAC,EAAE,uBAAuB,CAAC,gBAAgB,CAAC,CAAC;IAC1D;;;OAGG;IACH,UAAU,CAAC,EAAE,uBAAuB,CAAC,aAAa,CAAC,CAAC;IACpD;;;OAGG;IACH,QAAQ,CAAC,EAAE,uBAAuB,CAAC,UAAU,CAAC,CAAC;IAC/C,yEAAyE;IACzE,qBAAqB,CAAC,EAAE,uBAAuB,CAAC,yBAAyB,CAAC,CAAC;IAC3E,sEAAsE;IACtE,iBAAiB,CAAC,EAAE,uBAAuB,CAAC,oBAAoB,CAAC,CAAC;CACnE"}
@@ -1,323 +0,0 @@
1
- import type { Breadcrumb, BreadcrumbHint } from './breadcrumb';
2
- import type { CheckIn, MonitorConfig } from './checkin';
3
- import type { EventDropReason } from './clientreport';
4
- import type { DataCategory } from './datacategory';
5
- import type { DsnComponents } from './dsn';
6
- import type { DynamicSamplingContext, Envelope } from './envelope';
7
- import type { Event, EventHint } from './event';
8
- import type { EventProcessor } from './eventprocessor';
9
- import type { FeedbackEvent } from './feedback';
10
- import type { Integration } from './integration';
11
- import type { ClientOptions } from './options';
12
- import type { ParameterizedString } from './parameterize';
13
- import type { Scope } from './scope';
14
- import type { SdkMetadata } from './sdkmetadata';
15
- import type { Session, SessionAggregates } from './session';
16
- import type { SeverityLevel } from './severity';
17
- import type { Span, SpanAttributes, SpanContextData } from './span';
18
- import type { StartSpanOptions } from './startSpanOptions';
19
- import type { Transport, TransportMakeRequestResponse } from './transport';
20
- /**
21
- * User-Facing Sentry SDK Client.
22
- *
23
- * This interface contains all methods to interface with the SDK once it has
24
- * been installed. It allows to send events to Sentry, record breadcrumbs and
25
- * set a context included in every event. Since the SDK mutates its environment,
26
- * there will only be one instance during runtime.
27
- *
28
- */
29
- export interface Client<O extends ClientOptions = ClientOptions> {
30
- /**
31
- * Captures an exception event and sends it to Sentry.
32
- *
33
- * Unlike `captureException` exported from every SDK, this method requires that you pass it the current scope.
34
- *
35
- * @param exception An exception-like object.
36
- * @param hint May contain additional information about the original exception.
37
- * @param currentScope An optional scope containing event metadata.
38
- * @returns The event id
39
- */
40
- captureException(exception: any, hint?: EventHint, currentScope?: Scope): string;
41
- /**
42
- * Captures a message event and sends it to Sentry.
43
- *
44
- * Unlike `captureMessage` exported from every SDK, this method requires that you pass it the current scope.
45
- *
46
- * @param message The message to send to Sentry.
47
- * @param level Define the level of the message.
48
- * @param hint May contain additional information about the original exception.
49
- * @param currentScope An optional scope containing event metadata.
50
- * @returns The event id
51
- */
52
- captureMessage(message: string, level?: SeverityLevel, hint?: EventHint, currentScope?: Scope): string;
53
- /**
54
- * Captures a manually created event and sends it to Sentry.
55
- *
56
- * Unlike `captureEvent` exported from every SDK, this method requires that you pass it the current scope.
57
- *
58
- * @param event The event to send to Sentry.
59
- * @param hint May contain additional information about the original exception.
60
- * @param currentScope An optional scope containing event metadata.
61
- * @returns The event id
62
- */
63
- captureEvent(event: Event, hint?: EventHint, currentScope?: Scope): string;
64
- /**
65
- * Captures a session
66
- *
67
- * @param session Session to be delivered
68
- */
69
- captureSession(session: Session): void;
70
- /**
71
- * Create a cron monitor check in and send it to Sentry. This method is not available on all clients.
72
- *
73
- * @param checkIn An object that describes a check in.
74
- * @param upsertMonitorConfig An optional object that describes a monitor config. Use this if you want
75
- * to create a monitor automatically when sending a check in.
76
- * @param scope An optional scope containing event metadata.
77
- * @returns A string representing the id of the check in.
78
- */
79
- captureCheckIn?(checkIn: CheckIn, monitorConfig?: MonitorConfig, scope?: Scope): string;
80
- /** Returns the current Dsn. */
81
- getDsn(): DsnComponents | undefined;
82
- /** Returns the current options. */
83
- getOptions(): O;
84
- /**
85
- * @inheritdoc
86
- *
87
- */
88
- getSdkMetadata(): SdkMetadata | undefined;
89
- /**
90
- * Returns the transport that is used by the client.
91
- * Please note that the transport gets lazy initialized so it will only be there once the first event has been sent.
92
- *
93
- * @returns The transport.
94
- */
95
- getTransport(): Transport | undefined;
96
- /**
97
- * Flush the event queue and set the client to `enabled = false`. See {@link Client.flush}.
98
- *
99
- * @param timeout Maximum time in ms the client should wait before shutting down. Omitting this parameter will cause
100
- * the client to wait until all events are sent before disabling itself.
101
- * @returns A promise which resolves to `true` if the flush completes successfully before the timeout, or `false` if
102
- * it doesn't.
103
- */
104
- close(timeout?: number): PromiseLike<boolean>;
105
- /**
106
- * Wait for all events to be sent or the timeout to expire, whichever comes first.
107
- *
108
- * @param timeout Maximum time in ms the client should wait for events to be flushed. Omitting this parameter will
109
- * cause the client to wait until all events are sent before resolving the promise.
110
- * @returns A promise that will resolve with `true` if all events are sent before the timeout, or `false` if there are
111
- * still events in the queue when the timeout is reached.
112
- */
113
- flush(timeout?: number): PromiseLike<boolean>;
114
- /**
115
- * Adds an event processor that applies to any event processed by this client.
116
- */
117
- addEventProcessor(eventProcessor: EventProcessor): void;
118
- /**
119
- * Get all added event processors for this client.
120
- */
121
- getEventProcessors(): EventProcessor[];
122
- /** Get the instance of the integration with the given name on the client, if it was added. */
123
- getIntegrationByName<T extends Integration = Integration>(name: string): T | undefined;
124
- /**
125
- * Add an integration to the client.
126
- * This can be used to e.g. lazy load integrations.
127
- * In most cases, this should not be necessary, and you're better off just passing the integrations via `integrations: []` at initialization time.
128
- * However, if you find the need to conditionally load & add an integration, you can use `addIntegration` to do so.
129
- *
130
- * */
131
- addIntegration(integration: Integration): void;
132
- /**
133
- * Initialize this client.
134
- * Call this after the client was set on a scope.
135
- */
136
- init(): void;
137
- /** Creates an {@link Event} from all inputs to `captureException` and non-primitive inputs to `captureMessage`. */
138
- eventFromException(exception: any, hint?: EventHint): PromiseLike<Event>;
139
- /** Creates an {@link Event} from primitive inputs to `captureMessage`. */
140
- eventFromMessage(message: ParameterizedString, level?: SeverityLevel, hint?: EventHint): PromiseLike<Event>;
141
- /** Submits the event to Sentry */
142
- sendEvent(event: Event, hint?: EventHint): void;
143
- /** Submits the session to Sentry */
144
- sendSession(session: Session | SessionAggregates): void;
145
- /** Sends an envelope to Sentry */
146
- sendEnvelope(envelope: Envelope): PromiseLike<TransportMakeRequestResponse>;
147
- /**
148
- * Record on the client that an event got dropped (ie, an event that will not be sent to sentry).
149
- *
150
- * @param reason The reason why the event got dropped.
151
- * @param category The data category of the dropped event.
152
- * @param event The dropped event.
153
- */
154
- recordDroppedEvent(reason: EventDropReason, dataCategory: DataCategory, event?: Event): void;
155
- /**
156
- * Register a callback for whenever a span is started.
157
- * Receives the span as argument.
158
- * @returns A function that, when executed, removes the registered callback.
159
- */
160
- on(hook: 'spanStart', callback: (span: Span) => void): () => void;
161
- /**
162
- * Register a callback before span sampling runs. Receives a `samplingDecision` object argument with a `decision`
163
- * property that can be used to make a sampling decision that will be enforced, before any span sampling runs.
164
- * @returns A function that, when executed, removes the registered callback.
165
- */
166
- on(hook: 'beforeSampling', callback: (samplingData: {
167
- spanAttributes: SpanAttributes;
168
- spanName: string;
169
- parentSampled?: boolean;
170
- parentContext?: SpanContextData;
171
- }, samplingDecision: {
172
- decision: boolean;
173
- }) => void): void;
174
- /**
175
- * Register a callback for whenever a span is ended.
176
- * Receives the span as argument.
177
- * @returns A function that, when executed, removes the registered callback.
178
- */
179
- on(hook: 'spanEnd', callback: (span: Span) => void): () => void;
180
- /**
181
- * Register a callback for when an idle span is allowed to auto-finish.
182
- * @returns A function that, when executed, removes the registered callback.
183
- */
184
- on(hook: 'idleSpanEnableAutoFinish', callback: (span: Span) => void): () => void;
185
- /**
186
- * Register a callback for transaction start and finish.
187
- * @returns A function that, when executed, removes the registered callback.
188
- */
189
- on(hook: 'beforeEnvelope', callback: (envelope: Envelope) => void): () => void;
190
- /**
191
- * Register a callback that runs when stack frame metadata should be applied to an event.
192
- * @returns A function that, when executed, removes the registered callback.
193
- */
194
- on(hook: 'applyFrameMetadata', callback: (event: Event) => void): () => void;
195
- /**
196
- * Register a callback for before sending an event.
197
- * This is called right before an event is sent and should not be used to mutate the event.
198
- * Receives an Event & EventHint as arguments.
199
- * @returns A function that, when executed, removes the registered callback.
200
- */
201
- on(hook: 'beforeSendEvent', callback: (event: Event, hint?: EventHint | undefined) => void): () => void;
202
- /**
203
- * Register a callback for preprocessing an event,
204
- * before it is passed to (global) event processors.
205
- * Receives an Event & EventHint as arguments.
206
- * @returns A function that, when executed, removes the registered callback.
207
- */
208
- on(hook: 'preprocessEvent', callback: (event: Event, hint?: EventHint | undefined) => void): () => void;
209
- /**
210
- * Register a callback for when an event has been sent.
211
- * @returns A function that, when executed, removes the registered callback.
212
- */
213
- on(hook: 'afterSendEvent', callback: (event: Event, sendResponse: TransportMakeRequestResponse) => void): () => void;
214
- /**
215
- * Register a callback before a breadcrumb is added.
216
- * @returns A function that, when executed, removes the registered callback.
217
- */
218
- on(hook: 'beforeAddBreadcrumb', callback: (breadcrumb: Breadcrumb, hint?: BreadcrumbHint) => void): () => void;
219
- /**
220
- * Register a callback when a DSC (Dynamic Sampling Context) is created.
221
- * @returns A function that, when executed, removes the registered callback.
222
- */
223
- on(hook: 'createDsc', callback: (dsc: DynamicSamplingContext, rootSpan?: Span) => void): () => void;
224
- /**
225
- * Register a callback when a Feedback event has been prepared.
226
- * This should be used to mutate the event. The options argument can hint
227
- * about what kind of mutation it expects.
228
- * @returns A function that, when executed, removes the registered callback.
229
- */
230
- on(hook: 'beforeSendFeedback', callback: (feedback: FeedbackEvent, options?: {
231
- includeReplay?: boolean;
232
- }) => void): () => void;
233
- /**
234
- * A hook for the browser tracing integrations to trigger a span start for a page load.
235
- * @returns A function that, when executed, removes the registered callback.
236
- */
237
- on(hook: 'startPageLoadSpan', callback: (options: StartSpanOptions, traceOptions?: {
238
- sentryTrace?: string | undefined;
239
- baggage?: string | undefined;
240
- }) => void): () => void;
241
- /**
242
- * A hook for browser tracing integrations to trigger a span for a navigation.
243
- * @returns A function that, when executed, removes the registered callback.
244
- */
245
- on(hook: 'startNavigationSpan', callback: (options: StartSpanOptions) => void): () => void;
246
- /**
247
- * A hook that is called when the client is flushing
248
- * @returns A function that, when executed, removes the registered callback.
249
- */
250
- on(hook: 'flush', callback: () => void): () => void;
251
- /**
252
- * A hook that is called when the client is closing
253
- * @returns A function that, when executed, removes the registered callback.
254
- */
255
- on(hook: 'close', callback: () => void): () => void;
256
- /** Fire a hook whenever a span starts. */
257
- emit(hook: 'spanStart', span: Span): void;
258
- /** A hook that is called every time before a span is sampled. */
259
- emit(hook: 'beforeSampling', samplingData: {
260
- spanAttributes: SpanAttributes;
261
- spanName: string;
262
- parentSampled?: boolean;
263
- parentContext?: SpanContextData;
264
- }, samplingDecision: {
265
- decision: boolean;
266
- }): void;
267
- /** Fire a hook whenever a span ends. */
268
- emit(hook: 'spanEnd', span: Span): void;
269
- /**
270
- * Fire a hook indicating that an idle span is allowed to auto finish.
271
- */
272
- emit(hook: 'idleSpanEnableAutoFinish', span: Span): void;
273
- emit(hook: 'beforeEnvelope', envelope: Envelope): void;
274
- emit(hook: 'applyFrameMetadata', event: Event): void;
275
- /**
276
- * Fire a hook event before sending an event.
277
- * This is called right before an event is sent and should not be used to mutate the event.
278
- * Expects to be given an Event & EventHint as the second/third argument.
279
- */
280
- emit(hook: 'beforeSendEvent', event: Event, hint?: EventHint): void;
281
- /**
282
- * Fire a hook event to process events before they are passed to (global) event processors.
283
- * Expects to be given an Event & EventHint as the second/third argument.
284
- */
285
- emit(hook: 'preprocessEvent', event: Event, hint?: EventHint): void;
286
- emit(hook: 'afterSendEvent', event: Event, sendResponse: TransportMakeRequestResponse): void;
287
- /**
288
- * Fire a hook for when a breadcrumb is added. Expects the breadcrumb as second argument.
289
- */
290
- emit(hook: 'beforeAddBreadcrumb', breadcrumb: Breadcrumb, hint?: BreadcrumbHint): void;
291
- /**
292
- * Fire a hook for when a DSC (Dynamic Sampling Context) is created. Expects the DSC as second argument.
293
- */
294
- emit(hook: 'createDsc', dsc: DynamicSamplingContext, rootSpan?: Span): void;
295
- /**
296
- * Fire a hook event for after preparing a feedback event. Events to be given
297
- * a feedback event as the second argument, and an optional options object as
298
- * third argument.
299
- */
300
- emit(hook: 'beforeSendFeedback', feedback: FeedbackEvent, options?: {
301
- includeReplay?: boolean;
302
- }): void;
303
- /**
304
- * Emit a hook event for browser tracing integrations to trigger a span start for a page load.
305
- */
306
- emit(hook: 'startPageLoadSpan', options: StartSpanOptions, traceOptions?: {
307
- sentryTrace?: string | undefined;
308
- baggage?: string | undefined;
309
- }): void;
310
- /**
311
- * Emit a hook event for browser tracing integrations to trigger a span for a navigation.
312
- */
313
- emit(hook: 'startNavigationSpan', options: StartSpanOptions): void;
314
- /**
315
- * Emit a hook event for client flush
316
- */
317
- emit(hook: 'flush'): void;
318
- /**
319
- * Emit a hook event for client close
320
- */
321
- emit(hook: 'close'): void;
322
- }
323
- //# sourceMappingURL=client.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC/D,OAAO,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AACxD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,sBAAsB,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACnE,OAAO,KAAK,EAAE,KAAK,EAAE,SA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AAI,EAAE,OAAO,GAAG,IAAI,CAAC;IAE1B;;OAEG;IACH,IAAI,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAAC;CAG3B"}
@@ -1,12 +0,0 @@
1
- import type { DataCategory } from './datacategory';
2
- export type EventDropReason = 'before_send' | 'event_processor' | 'network_error' | 'queue_overflow' | 'ratelimit_backoff' | 'sample_rate' | 'send_error' | 'internal_sdk_error';
3
- export type Outcome = {
4
- reason: EventDropReason;
5
- category: DataCategory;
6
- quantity: number;
7
- };
8
- export type ClientReport = {
9
- timestamp: number;
10
- discarded_events: Outcome[];
11
- };
12
- //# sourceMappingURL=clientreport.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"clientreport.d.ts","sourceRoot":"","sources":["../../src/clientreport.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,MAAM,MAAM,eAAe,GACvB,aAAa,GACb,iBAAiB,GACjB,eAAe,GACf,gBAAgB,GAChB,mBAAmB,GACnB,aAAa,GACb,YAAY,GACZ,oBAAoB,CAAC;AAEzB,MAAM,MAAM,OAAO,GAAG;IACpB,MAAM,EAAE,eAAe,CAAC;IACxB,QAAQ,EAAE,YAAY,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,OAAO,EAAE,CAAC;CAC7B,CAAC"}
@@ -1,119 +0,0 @@
1
- import type { Primitive } from './misc';
2
- import type { SpanOrigin } from './span';
3
- export type Context = Record<string, unknown>;
4
- export interface Contexts extends Record<string, Context | undefined> {
5
- app?: AppContext;
6
- device?: DeviceContext;
7
- os?: OsContext;
8
- culture?: CultureContext;
9
- response?: ResponseContext;
10
- trace?: TraceContext;
11
- cloud_resource?: CloudResourceContext;
12
- state?: StateContext;
13
- profile?: ProfileContext;
14
- }
15
- export interface StateContext extends Record<string, unknown> {
16
- state: {
17
- type: string;
18
- value: Record<string, unknown>;
19
- };
20
- }
21
- export interface AppContext extends Record<string, unknown> {
22
- app_name?: string;
23
- app_start_time?: string;
24
- app_version?: string;
25
- app_identifier?: string;
26
- build_type?: string;
27
- app_memory?: number;
28
- free_memory?: number;
29
- }
30
- export interface DeviceContext extends Record<string, unknown> {
31
- name?: string;
32
- family?: string;
33
- model?: string;
34
- model_id?: string;
35
- arch?: string;
36
- battery_level?: number;
37
- orientation?: 'portrait' | 'landscape';
38
- manufacturer?: string;
39
- brand?: string;
40
- screen_resolution?: string;
41
- screen_height_pixels?: number;
42
- screen_width_pixels?: number;
43
- screen_density?: number;
44
- screen_dpi?: number;
45
- online?: boolean;
46
- charging?: boolean;
47
- low_memory?: boolean;
48
- simulator?: boolean;
49
- memory_size?: number;
50
- free_memory?: number;
51
- usable_memory?: number;
52
- storage_size?: number;
53
- free_storage?: number;
54
- external_storage_size?: number;
55
- external_free_storage?: number;
56
- boot_time?: string;
57
- processor_count?: number;
58
- cpu_description?: string;
59
- processor_frequency?: number;
60
- device_type?: string;
61
- battery_status?: string;
62
- device_unique_identifier?: string;
63
- supports_vibration?: boolean;
64
- supports_accelerometer?: boolean;
65
- supports_gyroscope?: boolean;
66
- supports_audio?: boolean;
67
- supports_location_service?: boolean;
68
- }
69
- export interface OsContext extends Record<string, unknown> {
70
- name?: string;
71
- version?: string;
72
- build?: string;
73
- kernel_version?: string;
74
- }
75
- export interface CultureContext extends Record<string, unknown> {
76
- calendar?: string;
77
- display_name?: string;
78
- locale?: string;
79
- is_24_hour_format?: boolean;
80
- timezone?: string;
81
- }
82
- export interface ResponseContext extends Record<string, unknown> {
83
- type?: string;
84
- cookies?: string[][] | Record<string, string>;
85
- headers?: Record<string, string>;
86
- status_code?: number;
87
- body_size?: number;
88
- }
89
- export interface TraceContext extends Record<string, unknown> {
90
- data?: {
91
- [key: string]: any;
92
- };
93
- op?: string;
94
- parent_span_id?: string;
95
- span_id: string;
96
- status?: string;
97
- tags?: {
98
- [key: string]: Primitive;
99
- };
100
- trace_id: string;
101
- origin?: SpanOrigin;
102
- }
103
- export interface CloudResourceContext extends Record<string, unknown> {
104
- ['cloud.provider']?: string;
105
- ['cloud.account.id']?: string;
106
- ['cloud.region']?: string;
107
- ['cloud.availability_zone']?: string;
108
- ['cloud.platform']?: string;
109
- ['host.id']?: string;
110
- ['host.type']?: string;
111
- }
112
- export interface ProfileContext extends Record<string, unknown> {
113
- profile_id: string;
114
- }
115
- export interface MissingInstrumentationContext extends Record<string, unknown> {
116
- package: string;
117
- ['javascript.is_cjs']?: boolean;
118
- }
119
- //# sourceMappingURL=context.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAEzC,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAE9C,MAAM,WAAW,QAAS,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,SAAS,CAAC;IACnE,GAAG,CAAC,EAAE,UAAU,CAAC;IACjB,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,EAAE,CAAC,EAAE,SAAS,CAAC;IACf,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,QAAQ,CAAC,EAAE,eAAe,CAAC;IAC3B,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,cAAc,CAAC,EAAE,oBAAoB,CAAC;IACtC,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,OAAO,CAAC,EAAE,cAAc,CAAC;CAC1B;AAED,MAAM,WAAW,YAAa,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAC3D,KAAK,EAAE;QACL,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAA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,OAAO,EAAE,MAAM,CAAC;IAChB,CAAC,mBAAmB,CAAC,CAAC,EAAE,OAAO,CAAC;CACjC"}
@@ -1,2 +0,0 @@
1
- export type DataCategory = 'default' | 'error' | 'transaction' | 'replay' | 'security' | 'attachment' | 'session' | 'internal' | 'profile' | 'monitor' | 'feedback' | 'metric_bucket' | 'span' | 'unknown';
2
- //# sourceMappingURL=datacategory.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"datacategory.d.ts","sourceRoot":"","sources":["../../src/datacategory.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,YAAY,GAEpB,SAAS,GAET,OAAO,GAEP,aAAa,GAEb,QAAQ,GAER,UAAU,GAEV,YAAY,GAEZ,SAAS,GAET,UAAU,GAEV,SAAS,GAET,SAAS,GAET,UAAU,GAEV,eAAe,GAEf,MAAM,GAEN,SAAS,CAAC"}
@@ -1,28 +0,0 @@
1
- /**
2
- * Holds meta information to customize the behavior of Sentry's server-side event processing.
3
- **/
4
- export interface DebugMeta {
5
- images?: Array<DebugImage>;
6
- }
7
- export type DebugImage = WasmDebugImage | SourceMapDebugImage | MachoDebugImage;
8
- interface WasmDebugImage {
9
- type: 'wasm';
10
- debug_id: string;
11
- code_id?: string | null;
12
- code_file: string;
13
- debug_file?: string | null;
14
- }
15
- interface SourceMapDebugImage {
16
- type: 'sourcemap';
17
- code_file: string;
18
- debug_id: string;
19
- }
20
- interface MachoDebugImage {
21
- type: 'macho';
22
- debug_id: string;
23
- image_addr: string;
24
- image_size?: number;
25
- code_file?: string;
26
- }
27
- export {};
28
- //# sourceMappingURL=debugMeta.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"debugMeta.d.ts","sourceRoot":"","sources":["../../src/debugMeta.ts"],"names":[],"mappings":"AAAA;;IAEI;AACJ,MAAM,WAAW,SAAS;IACxB,MAAM,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;CAC5B;AAED,MAAM,MAAM,UAAU,GAAG,cAAc,GAAG,mBAAmB,GAAG,eAAe,CAAC;AAEhF,UAAU,cAAc;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,UAAU,mBAAmB;IAC3B,IAAI,EAAE,WAAW,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,UAAU,eAAe;IACvB,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
@@ -1,22 +0,0 @@
1
- /** Supported Sentry transport protocols in a Dsn. */
2
- export type DsnProtocol = 'http' | 'https';
3
- /** Primitive components of a Dsn. */
4
- export interface DsnComponents {
5
- /** Protocol used to connect to Sentry. */
6
- protocol: DsnProtocol;
7
- /** Public authorization key. */
8
- publicKey?: string;
9
- /** Private authorization key (deprecated, optional). */
10
- pass?: string;
11
- /** Hostname of the Sentry instance. */
12
- host: string;
13
- /** Port of the Sentry instance. */
14
- port?: string;
15
- /** Sub path/ */
16
- path?: string;
17
- /** Project ID */
18
- projectId: string;
19
- }
20
- /** Anything that can be parsed into a Dsn. */
21
- export type DsnLike = string | DsnComponents;
22
- //# sourceMappingURL=dsn.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dsn.d.ts","sourceRoot":"","sources":["../../src/dsn.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,OAAO,CAAC;AAE3C,qCAAqC;AACrC,MAAM,WAAW,aAAa;IAC5B,0CAA0C;IAC1C,QAAQ,EAAE,WAAW,CAAC;IACtB,gCAAgC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wDAAwD;IACxD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,uCAAuC;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,mCAAmC;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,gBAAgB;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iBAAiB;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,8CAA8C;AAC9C,MAAM,MAAM,OAAO,GAAG,MAAM,GAAG,aAAa,CAAC"}