From 0dfe84a56bb62f8a321891dd148aeec48af25a29 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Thu, 30 Apr 2026 11:34:15 +0530 Subject: [PATCH] Document experimental logging config --- app/cli.php | 2 +- app/config/variables.php | 9 +++++++++ app/init/span.php | 1 - 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/app/cli.php b/app/cli.php index 3e093dc13d..cc5cf85de0 100644 --- a/app/cli.php +++ b/app/cli.php @@ -291,7 +291,7 @@ $container->set('logError', function () { Span::add('appwrite.error.publish', true); Span::add('appwrite.error.action', $action); Span::add('error.message', $error->getMessage()); - Span::add('error.type', get_class($error)); + Span::add('verboseType', get_class($error)); Span::add('error.code', $error->getCode()); Span::add('error.file', $error->getFile()); Span::add('error.line', $error->getLine()); diff --git a/app/config/variables.php b/app/config/variables.php index efac482649..80ec4979d7 100644 --- a/app/config/variables.php +++ b/app/config/variables.php @@ -286,6 +286,15 @@ return [ 'question' => '', 'filter' => '' ], + [ + 'name' => '_APP_EXPERIMENT_LOGGING_CONFIG', + 'description' => 'This variable enables experimental error logging using a provider DSN. This value is empty by default. Currently, Appwrite supports Sentry DSNs using the format `sentry://PROJECT_ID:SENTRY_API_KEY@SENTRY_HOST/?sample=0.01`.', + 'introduction' => '1.9.0', + 'default' => '', + 'required' => false, + 'question' => '', + 'filter' => '' + ], [ 'name' => '_APP_USAGE_AGGREGATION_INTERVAL', 'description' => 'Interval value containing the number of seconds that the Appwrite usage process should wait before aggregating stats and syncing it to Database from TimeSeries data. The default value is 30 seconds. Reintroduced in 1.1.0.', diff --git a/app/init/span.php b/app/init/span.php index 6f52645da1..3ae85603c1 100644 --- a/app/init/span.php +++ b/app/init/span.php @@ -46,7 +46,6 @@ $addSentryExporter = function (string $loggingConfig, ?callable $sampler = null) 'dnsDomain', 'embeddingModel', 'error.code', - 'error.type', 'hostname', 'locale', 'method',