Skip to content
This repository has been archived by the owner on Nov 29, 2021. It is now read-only.

Commit

Permalink
Add service provider section in README (#57)
Browse files Browse the repository at this point in the history
Add service provider section in README
  • Loading branch information
philkra authored Aug 12, 2019
2 parents 85c3a0e + c20273f commit 5d944ca
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,15 @@ $app->middleware([
]);
```

## Service Provider
### Laravel
No need to register service provider manually. It is registered automatically by [package discovery](https://laravel.com/docs/5.6/packages#package-discovery).
### Lumen
In `bootstrap/app.php` register `\PhilKra\ElasticApmLaravel\Providers\ElasticApmServiceProvider::class` as service provider:
```php
$app->register(\PhilKra\ElasticApmLaravel\Providers\ElasticApmServiceProvider::class);
```

## Spans
### Laravel
A Transaction object is made available via the dependency container and can be used to start a
Expand Down

0 comments on commit 5d944ca

Please sign in to comment.