Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
huzaifaarain committed Dec 13, 2023
1 parent 0b4b59b commit 6b1eb05
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

Laravel Pulse Guzzle Recorder provide a custom recorder for intercepting http requests made via guzzlehttp/guzzle php library and log them into the Laravel Pulse Slow Outgoing Requests section.

`LaravelPulseGuzzleRecorder` under the hood uses `Laravel\Pulse\Recorders\SlowOutgoingRequests::record` functionality, so the configuration passed to the said recorder will also affect this recorder.

## Installation

You can install the package via composer:
Expand All @@ -15,6 +17,17 @@ You can install the package via composer:
composer require muhammadhuzaifa/laravel-pulse-guzzle-recorder
```

Add the recorder `LaravelPulseGuzzleRecorder` in the `config/pulse.php` file

```php
return [
'recorders' => [
// after all of the builtin recorders
\MuhammadHuzaifa\LaravelPulseGuzzleRecorder\Recorders\LaravelPulseGuzzleRecorder::class => true,
]
]
```

## Usage

If you are using Laravel builtin Http facade, then you don't need this package. This package is useful when working with `guzzlehttp/guzzle` using the `Client` class. The `Client` class must be resolved using the service container `app`.
Expand All @@ -36,14 +49,6 @@ composer test

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

## Contributing

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

## Security Vulnerabilities

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

## Credits

- [Muhammad Huzaifa](https://github.com/huzaifaarain)
Expand Down

0 comments on commit 6b1eb05

Please sign in to comment.