You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -84,17 +104,40 @@ You can see the full query by hovering on a truncated description, or clicking i
84
104
85
105
To open a query's **Query Summary** page, click on the query from either the table in the "Most Time-Consuming Queries" widget on the **Performance** page or the table in the **Queries** page.
86
106
87
-
At the top of the page, queries per minute, average duration, and time spent are shown for the selected time range. The full query is shown below these metrics, followed by graphs for queries per minute and average duration.
107
+
At the top of the page, queries per minute, average duration, and time spent are shown for the selected time range. The full query is shown below these metrics, followed by graphs for queries per minute and average duration. The query's source in the code is also shown if it is available.
88
108
89
109
At the bottom, you can find a list of endpoints the query is found in, sorted by the most time your application spent in that span.
90
110
91
111
If you want to investigate a specific endpoint, click on it to open a sidebar showing some sample events.
92
112
93
113
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.
96
133
97
-
</br>
134
+
</Note>
135
+
136
+
A query's source is the location in your application's code that triggered the query. Sentry automatically determines the query source by examining the stack trace and attaches the source to the query data.
137
+
138
+
You can see the query's source underneath the query description on the **Query Summary** page, as shown in the image below. You can also find the query's source on the [**Event Details** page](/product/sentry-basics/concepts/tracing/event-detail/) next to other span properties in the span waterfall. If you have a [source code management integration](/product/integrations/source-code-mgmt/) enabled, Sentry will also show a link to open the query's source in the relevant repository.
139
+
140
+

98
141
99
142
## Sample List
100
143
@@ -112,9 +155,18 @@ From the sample list, you can drill down to specific good, average, or bad examp
112
155
113
156
The gif below explains how to navigate the sample list.
0 commit comments