Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enable_db_query_source is now on by default #8850

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/docs/product/performance/queries.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ The gif below provides a detailed walkthrough of the **Query Summary** page.

<Note>

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.

</Note>

Expand Down
4 changes: 1 addition & 3 deletions src/platforms/python/configuration/options.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -321,16 +321,14 @@ 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.

</ConfigKey>

<ConfigKey name="db-query-source-threshold-ms">

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.

</ConfigKey>