Hyperf2.0 telepope an elegant debugging tool

Time:2020-10-1

Hyperf telescope is a debugging tool for hyperf developed by referring to the code of laravel telescope

composer require windawake/hyperf-telescope dev-master

One click installation of telescope

php ./bin/hyperf.php telescope:install

If there is a problem with one click installation, please try the following installation methods:

Copy migrations to the root directory

php ./bin/hyperf.php vendor:publish windawake/hyperf-telescope

Run database table migration

php ./bin/hyperf.php migrate

Start project

php ./bin/hyperf.php start

Access address

http://127.0.0.1:9501/telescope/requests

Function point

  • Out of the box
  • Log request request
  • Record exception error
  • Record SQL statements
  • Record RPC requests, support JSON RPC by default, and modify other codes

Provide configuration items

#Modification.env
TELESCOPE_ENABLED=false#On by defaultTELESCOPE_TIMEZONE=Asia/Default PHP time zoneTELESCOPE_QUERY_SLOW=50#Unit millisecond

reminder

Because the kernel code has been modified, the online environment cannot be applied

design sketch

Hyperf2.0 telepope an elegant debugging tool

Hyperf2.0 telepope an elegant debugging tool

Hyperf2.0 telepope an elegant debugging tool

Hyperf2.0 telepope an elegant debugging tool

Hyperf2.0 telepope an elegant debugging tool


hyperf
telescope

Recommended Today

What black technology does the real-time big data platform use behind the glory of the king?

Hello everyone, I’m Xu Zhenwen. Today’s topic is “Tencent game big data service application practice based on Flink + servicemesh”, which is mainly divided into the following four parts: Introduction to background and Solution Framework Real time big data computing onedata Data interface service onefun Microservice & servicemesh 1、 Introduction to the solution framework and […]