Skip to content

Commit 0eda3c5

Browse files
authored
feat(sentry): improve coroutine backtrace filtering (#1000)
- Add 'Hyperf\Coroutine\wait' and 'wait' to skip functions list - Add 'FriendsOfHyperf\Sentry\Transport\CoHttpTransport->loop' to break functions list This improves the accuracy of backtrace filtering for Sentry error reporting by including additional coroutine-related functions that should be skipped or treated as break points during stack trace analysis. Co-authored-by: Deeka Wong <[email protected]>
1 parent 37ac485 commit 0eda3c5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Util/CoroutineBacktraceHelper.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,14 @@ class CoroutineBacktraceHelper
2121
'Hyperf\Coroutine\Waiter->wait',
2222
'Hyperf\Coroutine\co', 'co',
2323
'Hyperf\Coroutine\go', 'go',
24+
'Hyperf\Coroutine\wait', 'wait',
2425
'Hyperf\Coroutine\parallel', 'parallel',
2526
];
2627

2728
protected static array $breakFunctions = [
2829
'Multiplex\Socket\Client->loop', 'Multiplex\Socket\Client->heartbeat',
2930
'FriendsOfHyperf\Sentry\HttpClient\HttpClient->loop',
31+
'FriendsOfHyperf\Sentry\Transport\CoHttpTransport->loop',
3032
'Hyperf\Kafka\Producer->loop',
3133
'Hyperf\Metric\Listener\OnMetricFactoryReady->process',
3234
'Hyperf\Metric\Listener\QueueWatcher->process',

0 commit comments

Comments
 (0)