Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/atatus/atatus-octane
Atatus APM for Laravel Octane
https://github.com/atatus/atatus-octane
Last synced: about 2 months ago
JSON representation
Atatus APM for Laravel Octane
- Host: GitHub
- URL: https://github.com/atatus/atatus-octane
- Owner: atatus
- License: mit
- Created: 2024-04-17T06:28:17.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-09-09T13:55:48.000Z (4 months ago)
- Last Synced: 2024-09-09T14:29:25.882Z (4 months ago)
- Language: PHP
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Atatus Laravel Octane Middleware
The Atatus Laravel Octane Middleware enables the automatic instrumentation of API requests, capturing them and sending data to [Atatus for analysis](https://www.atatus.com).
## Requirements
- PHP >= 7.2.0
- Laravel >= 5.5## How to install
Via Composer
```bash
composer require atatus/atatus-octane
```
or add `atatus/atatus-octane` to your `composer.json` file accordingly.## How to use
### Add to Middleware
To monitor web requests, you can attach the `WebRequestMonitoring` middleware within the `web` and `api` middleware groups in the `App/Http/Kernel.php` file as shown below:
```php
// In App/Http/Kernel.php
protected $middlewareGroups = [
'web' => [
...,
\Atatus\Laravel\Octane\Middleware\WebRequestMonitoring::class,
],'api' => [
...,
\Atatus\Laravel\Octane\Middleware\WebRequestMonitoring::class,
]
]
```## LICENSE
This package is licensed under the [MIT](LICENSE) license.