fix(telemetry): disable upstream telemetry
This commit is contained in:
parent
3b4aa40eb0
commit
fdaf60da7c
2 changed files with 11 additions and 15 deletions
|
|
@ -264,15 +264,11 @@ private function restoreCoolifyDbBackup()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// MapleDeploy branding: telemetry disabled — no phone-home signal
|
||||||
private function sendAliveSignal()
|
private function sendAliveSignal()
|
||||||
{
|
{
|
||||||
$id = config('app.id');
|
// Disabled for MapleDeploy: do not send telemetry to coolify.io
|
||||||
$version = config('constants.coolify.version');
|
return;
|
||||||
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";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private function replaceSlashInEnvironmentName()
|
private function replaceSlashInEnvironmentName()
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
return [
|
return [
|
||||||
|
|
||||||
// @see https://docs.sentry.io/product/sentry-basics/dsn-explainer/
|
// Sentry DSN disabled by MapleDeploy.
|
||||||
'dsn' => config('constants.sentry.sentry_dsn'),
|
'dsn' => config('constants.sentry.sentry_dsn'), // disabled by MapleDeploy
|
||||||
|
|
||||||
// The release version of your application
|
// The release version of your application
|
||||||
// Example with dynamic git hash: trim(exec('git --git-dir ' . base_path('.git') . ' log --pretty="%h" -n1 HEAD'))
|
// Example with dynamic git hash: trim(exec('git --git-dir ' . base_path('.git') . ' log --pretty="%h" -n1 HEAD'))
|
||||||
|
|
@ -40,7 +40,7 @@
|
||||||
|
|
||||||
'tracing' => [
|
'tracing' => [
|
||||||
// Trace queue jobs as their own transactions
|
// 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
|
// Capture queue jobs as spans when executed on the sync driver
|
||||||
'queue_jobs' => true,
|
'queue_jobs' => true,
|
||||||
|
|
@ -61,12 +61,12 @@
|
||||||
'http_client_requests' => true,
|
'http_client_requests' => true,
|
||||||
|
|
||||||
// Capture Redis operations as spans (this enables Redis events in Laravel)
|
// 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
|
// Try to find out where the Redis command originated from and add it to the command spans
|
||||||
'redis_origin' => true,
|
'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,
|
'default_integrations' => true,
|
||||||
|
|
||||||
// Indicates that requests without a matching route should be traced
|
// 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
|
// @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
|
// @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,
|
'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
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue