Commit b88ad18
authored
[Feat][SDK- 431] Add threads information to payload (#327)
* fix: typos
* feat: add new class RollbarThread
* feat: set thread information from RollbarUncaughtExceptionHandler
* feat: add Exception Thread and other threads information
* feat: add Threads to body
* feat: add Threads to throwable wrapper in notifier
* refactor: a Thread should only contain trace_chain, not trace
* refactor: add a list of groups before threads in payload
* refactor: simplify truncation in TelemetryEvents
* refactor: add truncation to TelemetryEvents in body
* refactor: add truncation helper method for a list with Truncatable objects
* refactor: truncate Group in body
* refactor: set expected payload, first threads, with a group of trace_chains inside every thread
* refactor: remove locals field in a Trace from a non exception thread
* chore: fix indentation
* chore: remove * from import
* chore: add Java doc and fix indentations
* chore: add Java doc and fix indentations
* chore: fix lint
* chore: fix lint
* chore: add revapi info
* feat: add threads to a catch exception log
* chore: fix lint, line max size exceeded
* test: now we capture threads info using the current thread
* refactor(FramesStrategy): set truncateTraceChain with default visibility to use it in RollbarThreadStrategy
* refactor(Group): set property as type TraceChain and add getter
* feat(RollbarThreadStrategy): add truncation strategy for RollbarThread
* fix: lint
* fix: lint
* fix: lint
* fix(RollbarThreadStrategy): lint
* feat: Add strategy for Telemetry events
* feat: Add is_main field
* refactor: replace Thread by RollbarThread in ThrowableWrapper
* CI: bump ubuntu image to 22.04
Ref. actions/runner-images#11101
* fix: lint
* fix: update revapi.yml replacing getThread with getRollbarThread
---------
Co-authored-by: chris <[email protected]>1 parent e131761 commit b88ad18
File tree
24 files changed
+1100
-96
lines changed- .github/workflows
- .palantir
- rollbar-api/src/main/java/com/rollbar/api
- payload/data
- body
- truncation
- rollbar-java/src
- main/java/com/rollbar/notifier
- truncation
- uncaughtexception
- util
- wrapper
- test/java/com/rollbar/notifier
- truncation
- uncaughtexception
- util
- wrapper
24 files changed
+1100
-96
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
Lines changed: 1 addition & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | 59 | | |
65 | 60 | | |
66 | 61 | | |
67 | 62 | | |
68 | 63 | | |
69 | | - | |
| 64 | + | |
70 | 65 | | |
71 | 66 | | |
72 | 67 | | |
| |||
Lines changed: 54 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| 23 | + | |
| 24 | + | |
22 | 25 | | |
23 | 26 | | |
24 | 27 | | |
| 28 | + | |
25 | 29 | | |
26 | 30 | | |
27 | 31 | | |
28 | 32 | | |
| 33 | + | |
29 | 34 | | |
30 | 35 | | |
31 | 36 | | |
32 | 37 | | |
33 | 38 | | |
34 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
35 | 58 | | |
36 | 59 | | |
37 | 60 | | |
| |||
44 | 67 | | |
45 | 68 | | |
46 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
47 | 74 | | |
48 | 75 | | |
49 | 76 | | |
50 | 77 | | |
51 | 78 | | |
52 | 79 | | |
53 | 80 | | |
54 | | - | |
55 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
56 | 85 | | |
57 | 86 | | |
58 | 87 | | |
| |||
70 | 99 | | |
71 | 100 | | |
72 | 101 | | |
73 | | - | |
| 102 | + | |
| 103 | + | |
74 | 104 | | |
75 | 105 | | |
76 | 106 | | |
77 | 107 | | |
78 | | - | |
| 108 | + | |
79 | 109 | | |
80 | 110 | | |
81 | 111 | | |
82 | 112 | | |
83 | 113 | | |
84 | | - | |
85 | | - | |
86 | | - | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
87 | 118 | | |
88 | 119 | | |
89 | 120 | | |
| |||
95 | 126 | | |
96 | 127 | | |
97 | 128 | | |
| 129 | + | |
| 130 | + | |
98 | 131 | | |
99 | 132 | | |
100 | 133 | | |
| |||
108 | 141 | | |
109 | 142 | | |
110 | 143 | | |
111 | | - | |
112 | | - | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
113 | 147 | | |
114 | 148 | | |
115 | 149 | | |
| |||
135 | 169 | | |
136 | 170 | | |
137 | 171 | | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
138 | 183 | | |
139 | 184 | | |
140 | 185 | | |
| |||
Lines changed: 63 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 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 | + | |
0 commit comments