Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 13, 2025

After upgrading to v3.1.76, Telescope fails to capture exceptions and non-200 HTTP status codes because two critical listeners are not auto-registered.

Changes

ConfigProvider

  • Added RequestHandledListener - records requests and establishes batch context for exception tracking
  • Added SetRequestLifecycleListener - enables request lifecycle events in the server

Documentation (EN, ZH-CN, ZH-TW, ZH-HK)

  • Removed manual listener configuration instructions
  • Clarified that TelescopeMiddleware is only needed for additional gRPC functionality

Tests

  • Added ConfigProviderTest to verify all required listeners are registered

Impact

Telescope now works immediately after installation without manual listener configuration in config/autoload/listeners.php. This eliminates a common source of upgrade issues where users must remember to add framework-level listeners.

// Before: Users had to manually add to config/autoload/listeners.php
return [
    FriendsOfHyperf\Telescope\Listener\RequestHandledListener::class,
    FriendsOfHyperf\Telescope\Listener\SetRequestLifecycleListener::class,
];

// After: Automatically loaded via ConfigProvider
// Nothing required in user config

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/repos/PHP-CS-Fixer/PHP-CS-Fixer/zipball/5646c2cd99b7cb4b658ff681fe27069ba86c7280
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/Seldaek/jsonlint/zipball/1748aaf847fc731cfad7725aec413ee46f0cc3a2
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/Seldaek/phar-utils/zipball/ea2f4014f163c1be4c601b9b7bd6af81ba8d701c
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/Seldaek/signal-handler/zipball/04a6112e883ad76c0ada8e4a9f7520bbfdb6bb98
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/aws/aws-sdk-php/zipball/3dc26d6f26a4d6380d82b2be4d8ae80fefb23d71
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/awslabs/aws-crt-php/zipball/d71d9906c7bb63a28295447ba12e74723bd3730e
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/barryvdh/ReflectionDocBlock/zipball/d103774cbe7e94ddee7e4870f97f727b43fe7201
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/composer/ca-bundle/zipball/961a5e4056dd2e4a2eedcac7576075947c28bf63
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/composer/class-map-generator/zipball/2373419b7709815ed323ebf18c3c72d03ff4a8a6
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/composer/composer/zipball/8d5358f147c63a3a681b002076deff8c90e0b19d
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/composer/metadata-minifier/zipball/c549d23829536f0d0e984aaabbf02af91f443207
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/composer/pcre/zipball/b2bed4734f0cc156ee1fe9c0da2550420d99a21e
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/composer/semver/zipball/198166618906cb2de69b95d7d47e5fa8aa1b2b95
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/composer/spdx-licenses/zipball/edf364cefe8c43501e21e88110aac10b284c3c9f
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/composer/xdebug-handler/zipball/6c1925561632e83d60a44492e0b344cf48ab85ef
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/doctrine/deprecations/zipball/459c2f5dd3d6a4633d3b5f46ee2b1c40f57d3f38
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/doctrine/event-manager/zipball/b680156fa328f1dfd874fd48c7026c41570b9c6e
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/doctrine/inflector/zipball/6d6c96277ea252fc1304627204c3d5e6e15faa3b
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/doctrine/lexer/zipball/861c870e8b75f7c8f69c146c7f89cc1c0f1b49b6
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/elastic/elastic-transport-php/zipball/1d476af5dc0b74530d59b67d5dd96ee39768d5a4
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/elastic/elasticsearch-php/zipball/1771284cb43a7b653634d418b6f5f0ec84ff8a6d
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/ergebnis/composer-normalize/zipball/86dc9731b8320f49e9be9ad6d8e4de9b8b0e9b8b
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/ergebnis/json-normalizer/zipball/77961faf2c651c3f05977b53c6c68e8434febf62
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/ergebnis/json-pointer/zipball/43bef355184e9542635e35dd2705910a3df4c236
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/ergebnis/json-printer/zipball/211d73fc7ec6daf98568ee6ed6e6d133dee8503e
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/ergebnis/json-schema-validator/zipball/b739527a480a9e3651360ad351ea77e7e9019df2
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/ergebnis/json/zipball/7b56d2b5d9e897e75b43e2e753075a0904c921b1
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/ezyang/htmlpurifier/zipball/b287d2a16aceffbf6e0295559b39662612b77fcf
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/filp/whoops/zipball/d2102955e48b9fd9ab24280a7ad12ed552752c4d
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/google/recaptcha/zipball/56522c261d2e8c58ba416c90f81a4cd9f2ed89b9
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/googleapis/common-protos-php/zipball/0a399e6f39576e39ae9b66d3c704ae294afab1dc
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/guzzle/guzzle/zipball/b51ac707cfa420b7bfd4e4d5e510ba8008e822b4
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/guzzle/promises/zipball/481557b130ef3790cf82b713667b43030dc9c957
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/guzzle/psr7/zipball/21dc724a0583619cd1652f673303492272778051
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/guzzle/uri-template/zipball/4f4bbd4e7172148801e76e3decc1e559bdee34e1
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/huangdijia/php-coding-standard/zipball/11e5e9e6f5a2bfdf6038ecbe2a5333c539a5ae1b
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/hyperf/collection/zipball/8f43bd741ffae01208401791687830c6df32da83
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/hyperf/conditionable/zipball/051f3a696b444267298fec58075810169818e9a3
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/hyperf/context/zipball/a8cb6d27c5b85b44ce8d1e58d1ccfe1a1831b2f5
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/hyperf/contract/zipball/24d11e962033a1a44468df6318f9a2c2c0b8f99e
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/hyperf/coroutine/zipball/060c276febdb9a079b54f5ca737b972ee6013d09
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/hyperf/engine-contract/zipball/b6c8ff556fca5d4ffa29fba819fefc5e3572025d
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/hyperf/engine/zipball/15c282e8fcf8596f3400ccd21c32a18a37036b9a
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/hyperf/macroable/zipball/8aa26c1252b48673a7c22df2ef5dc8894bc340f2
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/hyperf/stringable/zipball/31a468649f7184c18f9dcdfe99fd28757a5bbb75
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/hyperf/support/zipball/1cda9020642bed0d6738fe1d9dcc9d6c1c5fb3ae
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/hyperf/tappable/zipball/2ece958479d44e574fad3f1ab16ebcfbf4eaf28f
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/jmespath/jmespath.php/zipball/a2a865e05d5f420b50cc2f85bb78d565db12a6bc
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/jsonrainbow/json-schema/zipball/134e98916fa2f663afa623970af345cd788e8967
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/localheinz/diff/zipball/33bd840935970cda6691c23fc7d94ae764c0734c
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/marc-mabe/php-enum/zipball/bb426fcdd65c60fb3638ef741e8782508fda7eef
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/opentelemetry-php/api/zipball/45bda7efa8fcdd9bdb0daa2f26c8e31f062f49d4
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/opentelemetry-php/context/zipball/d4c4470b541ce72000d18c339cfee633e4c8e0cf
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/paragonie/constant_time_encoding/zipball/d5b01a39b3415c2cd581d3bd3a3575c1ebbd8e77
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/paragonie/random_compat/zipball/996434e5492cb4c3edcb9168db6fbb1359ef965a
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/pestphp/pest-plugin/zipball/e05d2859e08c2567ee38ce8b005d044e72648c0b
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/php-amqplib/php-amqplib/zipball/381b6f7c600e0e0c7463cdd7f7a1a3bc6268e5fd
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/php-fig/event-dispatcher/zipball/dbefd12671e8a14ec7f180cab83036ed26714bb0
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/php-fig/http-client/zipball/bb5906edc1c324c9a05aa0873d40117941e5fa90
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/php-fig/http-factory/zipball/2b4765fddfe3b508ac62f829e852b1501d3f6e8a
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/php-fig/http-message-util/zipball/9d94dc0154230ac39e5bf89398b324a86f63f765
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/php-fig/http-message/zipball/402d35bcb92c70c026d1a6a9883f06b2ead23d71
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/php-fig/log/zipball/f16e1d5863e37f8d8c2a01719f5b34baa2b714d3
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/php-http/discovery/zipball/82fe4c73ef3363caed49ff8dd1539ba06044910d
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/php-http/httplug/zipball/5cad731844891a4c282f3f3e1b582c46839d22f4
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/php-http/promise/zipball/fc85b1fba37c169a69a07ef0d5a8075770cc1f83
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/phpseclib/phpseclib/zipball/9d6ca36a6c2dd434765b1071b2644a1c683b385d
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/protocolbuffers/protobuf-php/zipball/57d440fc54a00fda5b8781e8d9bf0140ea6d8e52
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/ralouphie/getallheaders/zipball/120b605dfeb996808c31b6477290a714d356e822
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/reactphp/cache/zipball/d47c472b64aa5608225f47965a484b75c7817d5b
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/reactphp/child-process/zipball/1721e2b93d89b745664353b9cfc8f155ba8a6159
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/reactphp/dns/zipball/7562c05391f42701c1fccf189c8225fece1cd7c3
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/reactphp/promise/zipball/23444f53a813a3296c1368bb104793ce8d88f04a
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/reactphp/socket/zipball/ef5b17b81f6f60504c539313f94f2d826c5faa08
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/sebastianbergmann/environment/zipball/8074dbcd93529b357029f5cc5058fd3e43666984
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/sebastianbergmann/exporter/zipball/0735b90f4da94969541dac1da743446e276defa6
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/sebastianbergmann/global-state/zipball/987bafff24ecc4c9ac418cab1145b96dd6e9cbd9
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/202d0e344a580d7f7d04b3fafce6933e59dae906
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/24ed13d98130f0e7122df55d06c5c4942a577957
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/47e34210757a2f37a97dcd207d032e1b01e64c7a
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/sebastianbergmann/type/zipball/462699a16464c3944eefc02ebdd77882bd3925bf
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/sebastianbergmann/version/zipball/c51fa83a5d8f43f1402e3f32a005e6262244ef17
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/symfony/deprecation-contracts/zipball/63afe740e99a13ba87ec199bb07bbdee937a5b62
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/59eb412e93815df44f05f342958efa9f46b1e586
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/symfony/event-dispatcher/zipball/9dddcddff1ef974ad87b3708e4b442dc38b2261d
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/symfony/filesystem/zipball/d551b38811096d0be9c4691d406991b47c0c630a
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/symfony/finder/zipball/340b9ed7320570f319028a2cbec46d40535e94bd
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/symfony/options-resolver/zipball/b38026df55197f9e39a44f3215788edf83187b80
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/symfony/polyfill-ctype/zipball/a3cc8b044a6ea513310cbd48ef7333b384945638
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/symfony/polyfill-mbstring/zipball/6d857f4d76bd4b343eac26d6b539585d2bc56493
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/symfony/polyfill-php73/zipball/0f68c03565dcaaf25a890667542e8bd75fe7e5bb
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/symfony/polyfill-php82/zipball/5d2ed36f7734637dacc025f179698031951b1692
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/symfony/stopwatch/zipball/8a24af0a2e8a872fb745047180649b8418303084
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/vinkla/hashids/zipball/197171016b77ddf14e259e186559152eb3f8cf33
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/nh7Nzo /usr/bin/composer install --no-interaction (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>升级friendsofhyperf/telescope到V3.1.76监听失效</issue_title>
<issue_description>升级后Exceptions无法收集,request 200以外的所有状态无法捕获</issue_description>

Comments on the Issue (you are @copilot in this section)

@huangdijia `config/autoload/server.php` 配置发一下

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

…fecycleListener

The listeners were missing from ConfigProvider causing exceptions and non-200 status codes to not be captured after upgrading to v3.1.76. Users had to manually add these listeners which was error-prone.

Changes:
- Add RequestHandledListener and SetRequestLifecycleListener to ConfigProvider
- Update documentation to reflect automatic listener registration
- Add test to verify listeners are properly registered

Co-authored-by: huangdijia <8337659+huangdijia@users.noreply.github.com>
@coderabbitai
Copy link

coderabbitai bot commented Dec 13, 2025

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Comment @coderabbitai help to get the list of available commands and usage tips.

Copilot AI changed the title [WIP] Fix issues with exception collection after upgrading telescope to V3.1.76 fix(telescope): register RequestHandledListener and SetRequestLifecycleListener in ConfigProvider Dec 13, 2025
@huangdijia huangdijia marked this pull request as ready for review December 13, 2025 08:07
Copilot AI review requested due to automatic review settings December 13, 2025 08:07
@huangdijia huangdijia merged commit b3a90c6 into main Dec 13, 2025
23 checks passed
@huangdijia huangdijia deleted the copilot/fix-exceptions-collection branch December 13, 2025 08:08
huangdijia added a commit that referenced this pull request Dec 13, 2025
…leListener in ConfigProvider (#1043)

* Initial plan

* fix(telescope): auto-register RequestHandledListener and SetRequestLifecycleListener

The listeners were missing from ConfigProvider causing exceptions and non-200 status codes to not be captured after upgrading to v3.1.76. Users had to manually add these listeners which was error-prone.

Changes:
- Add RequestHandledListener and SetRequestLifecycleListener to ConfigProvider
- Update documentation to reflect automatic listener registration
- Add test to verify listeners are properly registered

Co-authored-by: huangdijia <8337659+huangdijia@users.noreply.github.com>

* fix(telescope): 移除类名中的反斜杠以简化代码

* 删除 ConfigProviderTest.php 测试文件

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: huangdijia <8337659+huangdijia@users.noreply.github.com>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a critical bug in Telescope where exceptions and non-200 HTTP status codes were not being captured after upgrading to v3.1.76. The fix automatically registers two essential listeners (RequestHandledListener and SetRequestLifecycleListener) in the ConfigProvider, eliminating the need for manual configuration by users.

  • Adds automatic listener registration in ConfigProvider for Telescope functionality
  • Updates documentation across all languages (EN, ZH-CN, ZH-TW, ZH-HK) to reflect automatic setup
  • Improves user experience by removing manual configuration steps

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/telescope/src/ConfigProvider.php Adds RequestHandledListener and SetRequestLifecycleListener to auto-register these critical listeners
src/telescope/README.md Removes manual listener configuration section and clarifies TelescopeMiddleware is optional for gRPC only
docs/zh-cn/components/telescope.md Updates Chinese simplified documentation to remove manual listener setup instructions
docs/zh-tw/components/telescope.md Updates Chinese traditional documentation to remove manual listener setup instructions
docs/zh-hk/components/telescope.md Updates Hong Kong Chinese documentation to remove manual listener setup instructions
docs/en/components/telescope.md Updates English documentation to remove manual listener setup instructions

Comment on lines +51 to +52
Listener\RequestHandledListener::class,
Listener\SetRequestLifecycleListener::class,
Copy link

Copilot AI Dec 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR description mentions adding a ConfigProviderTest to verify all required listeners are registered, but no test file is included in this pull request. Adding test coverage would help ensure these critical listeners remain registered in future changes and prevent regression of the bug this PR fixes.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

升级friendsofhyperf/telescope到V3.1.76监听失效

2 participants