Commit db57be0
committed
Make PapaSafeTrace isTraceable configurable
Change PapaSafeTrace from delegating to SafeTrace.isTraceable to
accepting isTraceable as a constructor parameter. This gives clients
direct control over whether tracing is enabled, removing the implicit
dependency on SafeTrace.isTraceable, which will be removed soon.
Update WorkflowPapaTracer's default to explicitly pass isTraceable=false to
avoid overhead. Add tests to verify the new configuration capability for both
PapaSafeTrace and WorkflowPapaTracer.1 parent 14d657e commit db57be0
File tree
4 files changed
+24
-4
lines changed- workflow-tracing-papa
- api
- src
- main/java/com/squareup/workflow1/tracing/papa
- test/java/com/squareup/workflow1/tracing/papa
4 files changed
+24
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | | - | |
| 11 | + | |
10 | 12 | | |
11 | | - | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
33 | 35 | | |
34 | 36 | | |
35 | | - | |
| 37 | + | |
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
| |||
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
105 | 121 | | |
106 | 122 | | |
107 | 123 | | |
| |||
0 commit comments