Skip to content

Commit

Permalink
add tagCallback to yii2-sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
briskt committed Dec 11, 2024
1 parent 794c10b commit fc5dcd5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions application/common/config/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,10 @@
'yii\web\HttpException:409', // Conflict
],
'context' => true,
'tagCallback' => function ($tags) use ($idpName): array {
$tags['idp'] = $idpName;
return $tags;
},
// Additional options for `Sentry\init`
// https://docs.sentry.io/platforms/php/configuration/options
'clientOptions' => [
Expand Down
8 changes: 4 additions & 4 deletions application/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fc5dcd5

Please sign in to comment.