From fdaf60da7c19842baa36e25d1c59bb887e2c02ce Mon Sep 17 00:00:00 2001 From: rosslh Date: Fri, 19 Jun 2026 20:23:35 -0400 Subject: [PATCH] fix(telemetry): disable upstream telemetry --- app/Console/Commands/Init.php | 10 +++------- config/sentry.php | 16 ++++++++-------- 2 files changed, 11 insertions(+), 15 deletions(-) diff --git a/app/Console/Commands/Init.php b/app/Console/Commands/Init.php index 4783df072..d649c4289 100644 --- a/app/Console/Commands/Init.php +++ b/app/Console/Commands/Init.php @@ -264,15 +264,11 @@ private function restoreCoolifyDbBackup() } } + // MapleDeploy branding: telemetry disabled — no phone-home signal private function sendAliveSignal() { - $id = config('app.id'); - $version = config('constants.coolify.version'); - try { - Http::get("https://undead.coolify.io/v4/alive?appId=$id&version=$version"); - } catch (\Throwable $e) { - echo "Error in sending live signal: {$e->getMessage()}\n"; - } + // Disabled for MapleDeploy: do not send telemetry to coolify.io + return; } private function replaceSlashInEnvironmentName() diff --git a/config/sentry.php b/config/sentry.php index 0efb4a0e2..83f00730c 100644 --- a/config/sentry.php +++ b/config/sentry.php @@ -2,8 +2,8 @@ return [ - // @see https://docs.sentry.io/product/sentry-basics/dsn-explainer/ - 'dsn' => config('constants.sentry.sentry_dsn'), + // Sentry DSN disabled by MapleDeploy. + 'dsn' => config('constants.sentry.sentry_dsn'), // disabled by MapleDeploy // The release version of your application // Example with dynamic git hash: trim(exec('git --git-dir ' . base_path('.git') . ' log --pretty="%h" -n1 HEAD')) @@ -40,7 +40,7 @@ 'tracing' => [ // Trace queue jobs as their own transactions - 'queue_job_transactions' => env('SENTRY_TRACE_QUEUE_ENABLED', false), + 'queue_job_transactions' => env('SENTRY_TRACE_QUEUE_ENABLED', false), // disabled by MapleDeploy // Capture queue jobs as spans when executed on the sync driver 'queue_jobs' => true, @@ -61,12 +61,12 @@ 'http_client_requests' => true, // Capture Redis operations as spans (this enables Redis events in Laravel) - 'redis_commands' => env('SENTRY_TRACE_REDIS_COMMANDS', false), + 'redis_commands' => env('SENTRY_TRACE_REDIS_COMMANDS', false), // disabled by MapleDeploy // Try to find out where the Redis command originated from and add it to the command spans 'redis_origin' => true, - // Indicates if the tracing integrations supplied by Sentry should be loaded + // Indicates if the tracing integrations supplied by Sentry should be loaded; disabled by MapleDeploy. 'default_integrations' => true, // Indicates that requests without a matching route should be traced @@ -74,12 +74,12 @@ ], // @see: https://docs.sentry.io/platforms/php/guides/laravel/configuration/options/#send-default-pii - 'send_default_pii' => env('SENTRY_SEND_DEFAULT_PII', false), + 'send_default_pii' => env('SENTRY_SEND_DEFAULT_PII', false), // disabled by MapleDeploy // @see: https://docs.sentry.io/platforms/php/guides/laravel/configuration/options/#traces-sample-rate - 'enable_tracing' => env('SENTRY_ENABLE_TRACING', false), + 'enable_tracing' => env('SENTRY_ENABLE_TRACING', false), // disabled by MapleDeploy 'traces_sample_rate' => 0.2, - 'profiles_sample_rate' => env('SENTRY_PROFILES_SAMPLE_RATE') === null ? null : (float) env('SENTRY_PROFILES_SAMPLE_RATE'), + 'profiles_sample_rate' => env('SENTRY_PROFILES_SAMPLE_RATE') === null ? null : (float) env('SENTRY_PROFILES_SAMPLE_RATE'), // disabled by MapleDeploy ];