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