Skip to content

Commit 6ef39c3

Browse files
Python: Added new options for query source (#8558)
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 <[email protected]>
1 parent de092b9 commit 6ef39c3

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/platforms/common/configuration/options.mdx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -982,6 +982,24 @@ This option is enabled by default.
982982
983983
</ConfigKey>
984984
985+
<ConfigKey name="enable-db-query-source" supported={["python"]}>
986+
987+
When enabled, the source location will be added to database queries.
988+
989+
This option is disabled by default.
990+
991+
</ConfigKey>
992+
993+
<ConfigKey name="db-query-source-threshold-ms" supported={["python"]}>
994+
995+
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.
996+
997+
You need to set `enable_db_query_source` to `True` for this to work.
998+
999+
Default is `100` ms.
1000+
1001+
</ConfigKey>
1002+
9851003
<ConfigKey name="trace-options-requests" supported={["java"]}>
9861004
9871005
<PlatformSection supported={["java"]}>

0 commit comments

Comments
 (0)