-
Notifications
You must be signed in to change notification settings - Fork 0
/
type.go
87 lines (75 loc) · 2.46 KB
/
type.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
package main
type SentryHeaderSdk struct {
Name string `json:"name"`
Version string `json:"version"`
}
type SentryHeaderTrace struct {
Environment string `json:"environment"`
Release string `json:"release"`
Public_key string `json:"public_key"`
Trace_id string `json:"trace_id"`
}
type SentryHeader struct {
Event_id string `json:"event_id"`
Sent_at string `json:"sent_at"`
Sdk SentryHeaderSdk `json:"sdk"`
Trace SentryHeaderTrace `json:"trace"`
}
type SentryEnvelope struct {
Type string `json:"type"`
}
type SentryBreadcrumb struct {
Category string `json:"category"`
Level string `json:"level"`
Message string `json:"message"`
Type string `json:"type"`
Timestamp string `json:"timestamp"`
}
type SentryBreadcrumbContainer struct {
Values []SentryBreadcrumb `json:"values"`
}
type SentryRequest struct {
Url string `json:"url"`
Headers map[string]string `json:"headers"`
}
type SentryStackTraceFrame struct {
Filename string `json:"filename"`
Function string `json:"function"`
InApp bool `json:"in_app"`
Lineno int `json:"lineno"`
Colno int `json:"colno"`
}
type SentryStackTrace struct {
Frames []SentryStackTraceFrame `json:"frames"`
}
type SentryExceptionItem struct {
Type string `json:"type"`
Value string `json:"value"`
Stacktrace SentryStackTrace `json:"stacktrace"`
}
type SentryException struct {
Values []SentryExceptionItem `json:"values"`
}
type SentryLogEntry struct {
Message string `json:"message"`
Params []string `json:"params"`
}
type SentryEvent struct {
Message string `json:"message"`
Level string `json:"level"`
Logger string `json:"logger"`
LogEntry SentryLogEntry `json:"logentry"`
Event_id string `json:"event_id"`
Timestamp interface{} `json:"timestamp"`
Contexts map[string]interface{} `json:"contexts"`
Extra map[string]interface{} `json:"extra"`
Exception SentryException `json:"exception"`
Stacktrace SentryStackTrace `json:"stacktrace"`
// Breadcrumbs []SentryBreadcrumb `json:"breadcrumbs"`
Modules map[string]string `json:"modules"`
Release string `json:"release"`
Environment string `json:"environment"`
Server_name string `json:"server_name"`
Platform string `json:"platform"`
Request SentryRequest `json:"request"`
}