Commit 24cbf67
authored
feat(crashtracking)!: update crashtracker config ffi to have values for collect all thread config (#1959)
# What does this PR do?
[feat(crashtracking)!: collect all
threads](#1878) added the
functionality to collect all threads. We should expose the config vals
for this
# Motivation
What inspired you to submit this pull request?
# Additional Notes
Anything else we should know when reviewing?
# How to test the change?
```
pub struct Config<'a> {
pub additional_files: Slice<'a, CharSlice<'a>>,
/// If true, the receiver will collect stack traces for all threads in the crashing process
/// (not just the crashing thread) using ptrace-based remote unwinding.
pub collect_all_threads: bool, *******THIS IS NEW*******
pub create_alt_stack: bool,
pub demangle_names: bool,
/// The endpoint to send the crash report to (can be a file://).
/// If None, the crashtracker will infer the agent host from env variables.
pub endpoint: EndpointConfig<'a>,
/// Maximum number of non-crashing threads to collect when `collect_all_threads` is true.
/// If 0, uses the default (`libdd_crashtracker::default_max_threads()`).
pub max_threads: usize, *******THIS IS NEW*******
/// Optional filename for a unix domain socket if the receiver is used asynchonously
pub optional_unix_socket_filename: CharSlice<'a>,
pub resolve_frames: StacktraceCollection,
/// The set of signals we should be registered for.
/// If empty, use the default set.
pub signals: Slice<'a, i32>,
/// Timeout in milliseconds before the signal handler starts tearing things down to return.
/// If 0, uses the default timeout as specified in
/// `libdd_crashtracker::shared::constants::DD_CRASHTRACK_DEFAULT_TIMEOUT`. Otherwise, uses
/// the specified timeout value.
/// This is given as a uint32_t, but the actual timeout needs to fit inside of an i32 (max
/// 2^31-1). This is a limitation of the various interfaces used to guarantee the timeout.
pub timeout_ms: u32,
pub use_alt_stack: bool,
}
```1 parent a8f0aaa commit 24cbf67
2 files changed
Lines changed: 48 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
| 90 | + | |
89 | 91 | | |
90 | 92 | | |
91 | 93 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
68 | 71 | | |
69 | 72 | | |
70 | 73 | | |
71 | 74 | | |
72 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
73 | 79 | | |
74 | 80 | | |
75 | 81 | | |
| |||
98 | 104 | | |
99 | 105 | | |
100 | 106 | | |
| 107 | + | |
101 | 108 | | |
102 | 109 | | |
103 | 110 | | |
104 | 111 | | |
105 | 112 | | |
106 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
107 | 117 | | |
108 | 118 | | |
109 | 119 | | |
| |||
150 | 160 | | |
151 | 161 | | |
152 | 162 | | |
| 163 | + | |
153 | 164 | | |
154 | 165 | | |
155 | 166 | | |
| |||
159 | 170 | | |
160 | 171 | | |
161 | 172 | | |
| 173 | + | |
162 | 174 | | |
163 | 175 | | |
164 | 176 | | |
| |||
167 | 179 | | |
168 | 180 | | |
169 | 181 | | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
170 | 216 | | |
171 | 217 | | |
172 | 218 | | |
| |||
0 commit comments