-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
82 additions
and
0 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
src/platform-includes/configuration/ignore-exceptions/php.laravel.mdx
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
```php {filename:config/sentry.php} | ||
'ignore_exceptions' => [ | ||
UnauthenticatedException::class, | ||
], | ||
``` |
7 changes: 7 additions & 0 deletions
7
src/platform-includes/configuration/ignore-exceptions/php.mdx
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
```php | ||
\Sentry\init([ | ||
'ignore_exceptions' => [ | ||
UnauthenticatedException::class, | ||
], | ||
]); | ||
``` |
5 changes: 5 additions & 0 deletions
5
src/platform-includes/configuration/ignore-transactions/php.laravel.mdx
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
```php {filename:config/sentry.php} | ||
'ignore_transactions' => [ | ||
'GET /health', | ||
], | ||
``` |
7 changes: 7 additions & 0 deletions
7
src/platform-includes/configuration/ignore-transactions/php.mdx
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
```php | ||
\Sentry\init([ | ||
'ignore_transactions' => [ | ||
'GET /health', | ||
], | ||
]); | ||
``` |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
```php {filename:config/sentry.php} | ||
// This logs messages to the provided file path | ||
'logger' => new \Sentry\Logger\DebugFileLogger(filePath: storage_path('logs/sentry.log')), | ||
|
||
// This logs messages to stdout | ||
'logger' => new \Sentry\Logger\DebugStdOutLogger(), | ||
``` |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
```php | ||
// This logs messages to the provided file path | ||
Sentry\init([ | ||
'logger' => new \Sentry\Logger\DebugFileLogger(filePath: ROOT . DS . 'sentry.log'), | ||
]); | ||
|
||
// This logs messages to stdout | ||
Sentry\init([ | ||
'logger' => new \Sentry\Logger\DebugStdOutLogger(), | ||
]); | ||
``` |
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
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
ba33d60
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
sentry-docs – ./
docs.sentry.io
sentry-docs-git-master.sentry.dev
sentry-docs.sentry.dev