{"repo":"inspector-apm/inspector-php","free":true,"listed":false,"github":"https://github.com/inspector-apm/inspector-php","clone":"git clone https://github.com/inspector-apm/inspector-php.git","description":"Connect your PHP application to Inspector monitoring dashboard.","language":"PHP","stars":35,"topics":["inspector","monitoring","php","error-handling","error-monitoring","error-reporting","monitoring-tool"],"license":"MIT","category":"analytics","readme_excerpt":"Inspector Code Execution Monitoring Tool Before moving on, please consider giving us a GitHub star ⭐️. Thank you! Code Execution Monitoring, built for PHP developers. Requirements - PHP = ^8.1 Install Install the latest version by: Use To start sending data to Inspector you need an Ingestion Key to create an instance of the Configuration class. You can obtain INSPECTOR API KEY creating a new project in your Inspector dashboard. All start with a transaction . Transaction represents an execution cycle, and it can contain one or hundred of segments: Use addSegment method to monitor a code block in your transaction: Inspector will monitor your code execution in real time alerting you if something goes wrong. Custom Transport You can also set up a custom transport class to transfer monitoring data from your server to Inspector in a personalized way. The transport class needs to implement \\Inspector\\Transports\\TransportInterface : Then you can set the new transport in the Inspector instance using a callback that will receive the current configuration state as parameter. Concurrent & Async Tasks When monitoring concurrent or async tasks (e.g. using Fibers, ReactPHP, Amp, or pcntl fork ), a single segment stack would produce incorrect parent-child relationships because tasks interleave on the shared stack. Use fork() to create an independent Scope for each concurrent task: Each Scope has its own segment stack, so interleaving tasks never corrupt the parent-child hierarchy. Scopes als","default_branch":null,"files":null,"tree":[],"storefront":"/r/inspector-apm","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/inspector-apm/inspector-php/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}