1 | import type { Attachment } from './attachment';
|
2 | import type { Breadcrumb } from './breadcrumb';
|
3 | import type { Contexts } from './context';
|
4 | import type { DebugMeta } from './debugMeta';
|
5 | import type { Exception } from './exception';
|
6 | import type { Extras } from './extra';
|
7 | import type { Measurements } from './measurement';
|
8 | import type { Primitive } from './misc';
|
9 | import type { Request } from './request';
|
10 | import type { CaptureContext } from './scope';
|
11 | import type { SdkInfo } from './sdkinfo';
|
12 | import type { Severity, SeverityLevel } from './severity';
|
13 | import type { Span } from './span';
|
14 | import type { Thread } from './thread';
|
15 | import type { TransactionSource } from './transaction';
|
16 | import type { User } from './user';
|
17 |
|
18 | export interface Event {
|
19 | event_id?: string;
|
20 | message?: string;
|
21 | timestamp?: number;
|
22 | start_timestamp?: number;
|
23 | level?: Severity | SeverityLevel;
|
24 | platform?: string;
|
25 | logger?: string;
|
26 | server_name?: string;
|
27 | release?: string;
|
28 | dist?: string;
|
29 | environment?: string;
|
30 | sdk?: SdkInfo;
|
31 | request?: Request;
|
32 | transaction?: string;
|
33 | modules?: {
|
34 | [key: string]: string;
|
35 | };
|
36 | fingerprint?: string[];
|
37 | exception?: {
|
38 | values?: Exception[];
|
39 | };
|
40 | breadcrumbs?: Breadcrumb[];
|
41 | contexts?: Contexts;
|
42 | tags?: {
|
43 | [key: string]: Primitive;
|
44 | };
|
45 | extra?: Extras;
|
46 | user?: User;
|
47 | type?: EventType;
|
48 | spans?: Span[];
|
49 | measurements?: Measurements;
|
50 | debug_meta?: DebugMeta;
|
51 | sdkProcessingMetadata?: {
|
52 | [key: string]: any;
|
53 | };
|
54 | transaction_info?: {
|
55 | source: TransactionSource;
|
56 | };
|
57 | threads?: {
|
58 | values: Thread[];
|
59 | };
|
60 | }
|
61 |
|
62 |
|
63 |
|
64 |
|
65 |
|
66 | export declare type EventType = 'transaction' | 'profile' | 'replay_event' | undefined;
|
67 | export interface ErrorEvent extends Event {
|
68 | type: undefined;
|
69 | }
|
70 | export interface TransactionEvent extends Event {
|
71 | type: 'transaction';
|
72 | }
|
73 |
|
74 | export interface EventHint {
|
75 | event_id?: string;
|
76 | captureContext?: CaptureContext;
|
77 | syntheticException?: Error | null;
|
78 | originalException?: unknown;
|
79 | attachments?: Attachment[];
|
80 | data?: any;
|
81 | integrations?: string[];
|
82 | }
|
83 |
|
\ | No newline at end of file |