Skip to content

Commit

Permalink
Python: Added new options for query source (#8558)
Browse files Browse the repository at this point in the history
We have a new feature in Python to add the source location of database queries. This documents the two new options we introduced for this feature.

---------

Co-authored-by: Shana Matthews <shana.l.matthews@gmail.com>
  • Loading branch information
antonpirker and shanamatthews authored Dec 6, 2023
1 parent de092b9 commit 6ef39c3
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/platforms/common/configuration/options.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -982,6 +982,24 @@ This option is enabled by default.
</ConfigKey>
<ConfigKey name="enable-db-query-source" supported={["python"]}>
When enabled, the source location will be added to database queries.
This option is disabled by default.
</ConfigKey>
<ConfigKey name="db-query-source-threshold-ms" supported={["python"]}>
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>
<ConfigKey name="trace-options-requests" supported={["java"]}>
<PlatformSection supported={["java"]}>
Expand Down

1 comment on commit 6ef39c3

@vercel
Copy link

@vercel vercel bot commented on 6ef39c3 Dec 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

sentry-docs – ./

docs.sentry.io
sentry-docs-git-master.sentry.dev
sentry-docs.sentry.dev

Please sign in to comment.