@@ -24,7 +24,34 @@ enum DiscardReason {
24
24
INVALID_REPLAY_VIDEO = 'invalid_replay_video' ,
25
25
PAYLOAD = 'payload' ,
26
26
INVALID_COMPRESSION = 'invalid_compression' ,
27
- TOO_LARGE = 'too_large' ,
27
+ TOO_LARGE = 'too_large' , // Left for backwards compatibility
28
+ TOO_LARGE_UNKNOWN = 'too_large_unknown' ,
29
+ TOO_LARGE_EVENT = 'too_large_event' ,
30
+ TOO_LARGE_TRANSACTION = 'too_large_transaction' ,
31
+ TOO_LARGE_SECURITY = 'too_large_security' ,
32
+ TOO_LARGE_ATTACHMENT = 'too_large_attachment' ,
33
+ TOO_LARGE_FORM_DATA = 'too_large_form_data' ,
34
+ TOO_LARGE_RAW_SECURITY = 'too_large_raw_security' ,
35
+ TOO_LARGE_NEL = 'too_large_nel' ,
36
+ TOO_LARGE_UNREAL_REPORT = 'too_large_unreal_report' ,
37
+ TOO_LARGE_USER_REPORT = 'too_large_user_report' ,
38
+ TOO_LARGE_SESSION = 'too_large_session' ,
39
+ TOO_LARGE_SESSIONS = 'too_large_sessions' ,
40
+ TOO_LARGE_STATSD = 'too_large_statsd' ,
41
+ TOO_LARGE_METRIC_BUCKETS = 'too_large_metric_buckets' ,
42
+ TOO_LARGE_CLIENT_REPORT = 'too_large_client_report' ,
43
+ TOO_LARGE_PROFILE = 'too_large_profile' ,
44
+ TOO_LARGE_REPLAY_EVENT = 'too_large_replay_event' ,
45
+ TOO_LARGE_REPLAY_RECORDING = 'too_large_replay_recording' ,
46
+ TOO_LARGE_REPLAY_VIDEO = 'too_large_replay_video' ,
47
+ TOO_LARGE_CHECK_IN = 'too_large_check_in' ,
48
+ TOO_LARGE_OTEL_LOG = 'too_large_otel_log' ,
49
+ TOO_LARGE_LOG = 'too_large_log' ,
50
+ TOO_LARGE_SPAN = 'too_large_span' ,
51
+ TOO_LARGE_OTEL_SPAN = 'too_large_otel_span' ,
52
+ TOO_LARGE_OTEL_TRACES_DATA = 'too_large_otel_traces_data' ,
53
+ TOO_LARGE_USER_REPORT_V2 = 'too_large_user_report_v2' ,
54
+ TOO_LARGE_PROFILE_CHUNK = 'too_large_profile_chunk' ,
28
55
MISSING_MINIDUMP_UPLOAD = 'missing_minidump_upload' ,
29
56
INVALID_MINIDUMP = 'invalid_minidump' ,
30
57
SECURITY_REPORT = 'security_report' ,
@@ -44,7 +71,7 @@ enum DiscardReason {
44
71
}
45
72
46
73
// List of Client Discard Reason according to the Client Report's doc - https://develop.sentry.dev/sdk/client-reports/#envelope-item-payload
47
- enum ClientDiscardReason {
74
+ export enum ClientDiscardReason {
48
75
QUEUE_OVERFLOW = 'queue_overflow' ,
49
76
CACHE_OVERFLOW = 'cache_overflow' ,
50
77
RATELIMIT_BACKOFF = 'ratelimit_backoff' ,
@@ -91,7 +118,36 @@ const invalidReasonsGroup: Record<string, DiscardReason[]> = {
91
118
DiscardReason . INVALID_REPLAY_VIDEO ,
92
119
] ,
93
120
payload : [ DiscardReason . PAYLOAD , DiscardReason . INVALID_COMPRESSION ] ,
94
- too_large : [ DiscardReason . TOO_LARGE ] ,
121
+ too_large : [
122
+ DiscardReason . TOO_LARGE , // Left for backwards compatibility
123
+ DiscardReason . TOO_LARGE_UNKNOWN ,
124
+ ] ,
125
+ too_large_event : [ DiscardReason . TOO_LARGE_EVENT ] ,
126
+ too_large_transaction : [ DiscardReason . TOO_LARGE_TRANSACTION ] ,
127
+ too_large_security : [ DiscardReason . TOO_LARGE_SECURITY ] ,
128
+ too_large_attachment : [ DiscardReason . TOO_LARGE_ATTACHMENT ] ,
129
+ too_large_form_data : [ DiscardReason . TOO_LARGE_FORM_DATA ] ,
130
+ too_large_raw_security : [ DiscardReason . TOO_LARGE_RAW_SECURITY ] ,
131
+ too_large_nel : [ DiscardReason . TOO_LARGE_NEL ] ,
132
+ too_large_unreal_report : [ DiscardReason . TOO_LARGE_UNREAL_REPORT ] ,
133
+ too_large_user_report : [ DiscardReason . TOO_LARGE_USER_REPORT ] ,
134
+ too_large_session : [ DiscardReason . TOO_LARGE_SESSION ] ,
135
+ too_large_sessions : [ DiscardReason . TOO_LARGE_SESSIONS ] ,
136
+ too_large_statsd : [ DiscardReason . TOO_LARGE_STATSD ] ,
137
+ too_large_metric_buckets : [ DiscardReason . TOO_LARGE_METRIC_BUCKETS ] ,
138
+ too_large_client_report : [ DiscardReason . TOO_LARGE_CLIENT_REPORT ] ,
139
+ too_large_profile : [ DiscardReason . TOO_LARGE_PROFILE ] ,
140
+ too_large_replay_event : [ DiscardReason . TOO_LARGE_REPLAY_EVENT ] ,
141
+ too_large_replay_recording : [ DiscardReason . TOO_LARGE_REPLAY_RECORDING ] ,
142
+ too_large_replay_video : [ DiscardReason . TOO_LARGE_REPLAY_VIDEO ] ,
143
+ too_large_check_in : [ DiscardReason . TOO_LARGE_CHECK_IN ] ,
144
+ too_large_otel_log : [ DiscardReason . TOO_LARGE_OTEL_LOG ] ,
145
+ too_large_log : [ DiscardReason . TOO_LARGE_LOG ] ,
146
+ too_large_span : [ DiscardReason . TOO_LARGE_SPAN ] ,
147
+ too_large_otel_span : [ DiscardReason . TOO_LARGE_OTEL_SPAN ] ,
148
+ too_large_otel_traces_data : [ DiscardReason . TOO_LARGE_OTEL_TRACES_DATA ] ,
149
+ too_large_user_report_v2 : [ DiscardReason . TOO_LARGE_USER_REPORT_V2 ] ,
150
+ too_large_profile_chunk : [ DiscardReason . TOO_LARGE_PROFILE_CHUNK ] ,
95
151
minidump : [ DiscardReason . MISSING_MINIDUMP_UPLOAD , DiscardReason . INVALID_MINIDUMP ] ,
96
152
security_report : [ DiscardReason . SECURITY_REPORT , DiscardReason . SECURITY_REPORT_TYPE ] ,
97
153
unreal : [ DiscardReason . PROCESS_UNREAL ] ,
0 commit comments