Skip to content

Commit

Permalink
opt: edit md
Browse files Browse the repository at this point in the history
  • Loading branch information
gaowei committed May 27, 2022
1 parent d624d59 commit 6b1237e
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,27 @@ SENTRY_DSN = "http:https://[email protected]/
php index.php examples/ErrorHandlerTest.php
```

## Sentry initialization time-consuming comparison
```
$options = [
'report_level' => E_ALL, // error report level
'display_errors' => true, // prite errors
'handler' => 'sentry', // sentry or logger
'sentry_options' => [
'dsn' => 'http:https://[email protected]/3', // sentry website dsn
'environment' => 'test',
'sample_rate' => 1, // report rate, float range 0-1
'http_timeout' => 0.5,
],
];
Self:
ErrorHandler::init($options); // time consuming: 0.001616
Sentry:
\Sentry\init($options['sentry_options']); // time consuming: 0.146600
```

## Contributing

You can contribute in one of three ways:
Expand Down

0 comments on commit 6b1237e

Please sign in to comment.