-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve consistency of indentation in readme
- Loading branch information
samuel-holt
committed
Jan 27, 2020
1 parent
b6ae361
commit 1f320eb
Showing
1 changed file
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -249,8 +249,8 @@ Control of how error instances are grouped together can be achieved by passing a | |
|
||
```php | ||
$raygunClient->SetGroupingKey(function($payload, $stackTrace) { | ||
// Inspect the above parameters and return a hash from the properties ... | ||
return $payload->Details->Error->Message; // Naive message-based grouping only | ||
// Inspect the above parameters and return a hash from the properties ... | ||
return $payload->Details->Error->Message; // Naive message-based grouping only | ||
}); | ||
``` | ||
|
||
|
@@ -260,10 +260,10 @@ Some error data will be too sensitive to transmit to an external service, such a | |
|
||
```php | ||
$raygunClient->setFilterParams([ | ||
'password' => true, | ||
'creditcardnumber' => true, | ||
'ccv' => true, | ||
'php_auth_pw' => true, // filters basic auth from $_SERVER | ||
'password' => true, | ||
'creditcardnumber' => true, | ||
'ccv' => true, | ||
'php_auth_pw' => true, // filters basic auth from $_SERVER | ||
]); | ||
// Example input: ['Username' => 'myuser','Password' => 'secret'] | ||
// Example output: ['Username' => 'myuser','Password' => '[filtered]'] | ||
|
@@ -273,7 +273,7 @@ You can also define keys as regular expressions: | |
|
||
```php | ||
$raygunClient->setFilterParams([ | ||
'/^credit/i' => true, | ||
'/^credit/i' => true, | ||
]); | ||
// Example input: ['CreditCardNumber' => '4111111111111111','CreditCardCcv' => '123'] | ||
// Example output: ['CreditCardNumber' => '[filtered]','CreditCardCcv' => '[filtered]'] | ||
|
@@ -283,7 +283,7 @@ In case you want to retain some hints on the data rather than removing it comple | |
|
||
```php | ||
$raygunClient->setFilterParams([ | ||
'Email' => function($key, $val) {return substr($val, 0, 5) . '...';} | ||
'Email' => function($key, $val) {return substr($val, 0, 5) . '...';} | ||
]); | ||
// Example input: ['Email' => '[email protected]'] | ||
// Example output: ['Email' => 'test@...'] | ||
|