Repository navigation
Commit 7b6d02f
fix(profiling): Accept dots in the JVM profiling traces dir path
JavaContinuousProfiler refused any traces directory whose path held one
of 26 characters, including ".", so a cache dir like /home/app/.sentry
or /opt/my.app logged "Disabling profiling". async-profiler only treats
"," (its argument separator) and "%" (file name patterns) specially, so
those are the only characters it still rejects.
The check also only stopped the first start: init() marked itself done
before validating and returned true from then on, so later starts went
ahead with the rejected options. It now remembers the result, as the
Android profiler does.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>1 parent 04bb98f commit 7b6d02f
2 files changed
Lines changed: 30 additions & 5 deletions
File tree
- sentry-async-profiler/src
- main/java/io/sentry/asyncprofiler/profiling
- test/java/io/sentry/asyncprofiler/profiling
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
| 45 | + | |
| 46 | + | |
49 | 47 | | |
50 | 48 | | |
51 | 49 | | |
52 | 50 | | |
53 | 51 | | |
54 | 52 | | |
| 53 | + | |
55 | 54 | | |
56 | 55 | | |
57 | 56 | | |
| |||
92 | 91 | | |
93 | 92 | | |
94 | 93 | | |
95 | | - | |
| 94 | + | |
96 | 95 | | |
97 | 96 | | |
98 | 97 | | |
| |||
107 | 106 | | |
108 | 107 | | |
109 | 108 | | |
| 109 | + | |
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
421 | 421 | | |
422 | 422 | | |
423 | 423 | | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
424 | 449 | | |
425 | 450 | | |
426 | 451 | | |
| |||
0 commit comments