Commit 7b14762
fix: Add foreground state to app context in app hang events (#7801)
* fix: Ensure app hangs have foreground app context
Set app.in_foreground and app.is_active when creating new app hang events in SentryHangTrackingIntegration, so persisted and fatal app hangs always carry the expected foreground context.
* add cl entry
* Update CHANGELOG.md
Co-authored-by: Philip Niedertscheider <phil.niedertscheider@sentry.io>
---------
Co-authored-by: Itay Brenner <itay.brenner@sentry.io>
Co-authored-by: Philip Niedertscheider <phil.niedertscheider@sentry.io>1 parent 77a335b commit 7b14762
3 files changed
Lines changed: 14 additions & 0 deletions
File tree
- Sources/Swift/Integrations
- Tests/SentryTests/Integrations/ANR
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| 164 | + | |
164 | 165 | | |
165 | 166 | | |
166 | 167 | | |
| |||
204 | 205 | | |
205 | 206 | | |
206 | 207 | | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
207 | 217 | | |
208 | 218 | | |
209 | 219 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
379 | 379 | | |
380 | 380 | | |
381 | 381 | | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
382 | 385 | | |
383 | 386 | | |
384 | 387 | | |
| |||
0 commit comments