From f9983c7e201150355b6febbb2aaba41c680d8945 Mon Sep 17 00:00:00 2001 From: briskt <3172830+briskt@users.noreply.github.com> Date: Wed, 11 Dec 2024 17:57:45 +0800 Subject: [PATCH] add 'idp' tag to Sentry config --- application/common/config/main.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/application/common/config/main.php b/application/common/config/main.php index f0b4b93..cc821f2 100644 --- a/application/common/config/main.php +++ b/application/common/config/main.php @@ -136,6 +136,10 @@ 'Sil\EmailService\Client\EmailServiceClientException', ], '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' => [