Skip to content

Commit 0c6ed7c

Browse files
author
Patrick Leckey
committed
added transaction names description
1 parent 8540abd commit 0c6ed7c

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,21 @@ Finally, publish the default configuration (it will end up in `config/newrelic.p
3737
Once the configuration from the package if published, see `config/newrelic.php` for configuration options and
3838
descriptions.
3939

40+
### Transaction Names
41+
42+
Naming is done by replacing tokens in a `name_provider` string with formatted output collected from the application.
43+
The `newrelic.name_provider` config parameter holds this string - note that non-token string parts are left as-is.
44+
45+
| Token | Description | Example |
46+
|-------|-------------|---------|
47+
| {controller} | Controller / Action name | App\Http\Controllers\MyController@action |
48+
| {method} | HTTP Verb | GET, POST |
49+
| {route} | Route Name if named, otherwise {controller} | auth.login |
50+
| {path} | Registered route path | /users/{id?} |
51+
| {uri} | Request URI path | /users/12345 |
52+
53+
The default `newrelic.name_provider` string is `'{uri} {route}'`.
54+
4055
### Eloquent Model Observers
4156

4257
There are two observer classes for monitoring your Eloquent models, the `NewrelicCountingObserver` and the

0 commit comments

Comments
 (0)