From f8c0ddd8a780015f7bec2170f4c5c8e07f78832a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my?= Date: Sat, 18 Nov 2023 08:53:26 +0100 Subject: [PATCH] chore: update sentry sampling query --- composer.json | 6 +++--- composer.lock | 2 +- config/packages/sentry.yaml | 19 +++++++++---------- 3 files changed, 13 insertions(+), 14 deletions(-) diff --git a/composer.json b/composer.json index 847638bc..bfa34585 100644 --- a/composer.json +++ b/composer.json @@ -29,9 +29,9 @@ "phpdocumentor/reflection-docblock": "^5.3", "phpstan/phpdoc-parser": "^1.7", "ramsey/uuid-doctrine": "^2.0", - "sentry/sdk": "^3.2", - "sentry/sentry": "^3.7", - "sentry/sentry-symfony": "^4.3", + "sentry/sdk": "^3.5", + "sentry/sentry": "^3.22", + "sentry/sentry-symfony": "^4.12", "symfony/asset": "^6.1", "symfony/console": "^6.1.4", "symfony/dotenv": "^6.1", diff --git a/composer.lock b/composer.lock index 69fab633..2cd849bf 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "84cd0037d692ab5b2f538c81916745b6", + "content-hash": "e38f0df6160b2c3df032e6145d8ed425", "packages": [ { "name": "api-platform/core", diff --git a/config/packages/sentry.yaml b/config/packages/sentry.yaml index 8175d0a1..1811ff93 100644 --- a/config/packages/sentry.yaml +++ b/config/packages/sentry.yaml @@ -6,14 +6,13 @@ when@prod: integrations: - 'Sentry\Integration\IgnoreErrorsIntegration' -# If you are using Monolog, you also need this additional configuration to log the errors correctly: -# https://docs.sentry.io/platforms/php/guides/symfony/#monolog-integration -# register_error_listener: false -# register_error_handler: false + # Specify a fixed sample rate: + traces_sample_rate: 1.0 -# monolog: -# handlers: -# sentry: -# type: sentry -# level: !php/const Monolog\Logger::ERROR -# hub_id: Sentry\State\HubInterface +when@test: + sentry: + dsn: ~ + +when@dev: + sentry: + dsn: ~ \ No newline at end of file