From c57f77bb7f12944fea838c82f2a95d31a8371277 Mon Sep 17 00:00:00 2001 From: Ivana Kellyerova Date: Wed, 10 Jan 2024 14:04:12 +0100 Subject: [PATCH 1/2] `enable_db_query_source` is now on by default --- src/platforms/python/configuration/options.mdx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/platforms/python/configuration/options.mdx b/src/platforms/python/configuration/options.mdx index 2c24d7f5bd00d..51fd7a91d27a3 100644 --- a/src/platforms/python/configuration/options.mdx +++ b/src/platforms/python/configuration/options.mdx @@ -321,7 +321,7 @@ This option is enabled by default. When enabled, the source location will be added to database queries. -This option is disabled by default. +This option is enabled by default. @@ -329,8 +329,6 @@ This option is disabled by default. The threshold in milliseconds for adding the source location to database queries. The query location will be added to the query for queries slower than the specified threshold. -You need to set `enable_db_query_source` to `True` for this to work. - Default is `100` ms. From 3b4eed5b3fccec87353bedaa0c98fad1d43437db Mon Sep 17 00:00:00 2001 From: Ivana Kellyerova Date: Thu, 11 Jan 2024 09:49:58 +0100 Subject: [PATCH 2/2] Update performance page, too --- src/docs/product/performance/queries.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/docs/product/performance/queries.mdx b/src/docs/product/performance/queries.mdx index 535d2334bfac4..e7cb617e4adbe 100644 --- a/src/docs/product/performance/queries.mdx +++ b/src/docs/product/performance/queries.mdx @@ -129,7 +129,7 @@ The gif below provides a detailed walkthrough of the **Query Summary** page. -Query Sources are currently supported in Sentry's [Laravel](/platforms/php/guides/laravel/configuration/laravel-options/) (enabled with the `SENTRY_TRACE_SQL_ORIGIN_ENABLED` option) and [Python](/platforms/python/configuration/options/#enable-db-query-source) (enabled with the `enable-db-query-source` option) SDKs. For Python, Sentry only attaches query sources to queries that are slower than a [configurable threshold](/platforms/python/configuration/options/#db-query-source-threshold-ms) to reduce the performance impact. +Query Sources are currently supported in Sentry's [Laravel](/platforms/php/guides/laravel/configuration/laravel-options/) (enabled with the `SENTRY_TRACE_SQL_ORIGIN_ENABLED` option) and [Python](/platforms/python/configuration/options/#enable-db-query-source) (enabled by default) SDKs. For Python, Sentry only attaches query sources to queries that are slower than a [configurable threshold](/platforms/python/configuration/options/#db-query-source-threshold-ms) to reduce the performance impact.