Commit a027510
committed
Fix ExecContext telemetry timing: Capture start time before query execution
This addresses the second part of @vikrantpuppala's review comment:
"shouldn't this be before runQuery?"
Changes:
- Capture executeStart = time.Now() BEFORE calling runQuery()
- Use BeforeExecuteWithTime() with the pre-captured timestamp
- Ensures telemetry measures actual query execution time accurately
Without this fix, telemetry would miss ~100-1000μs of execution time
(the time between query start and getting the operation handle).
Now ExecContext matches the pattern already implemented in QueryContext.1 parent 746974e commit a027510
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| 126 | + | |
| 127 | + | |
126 | 128 | | |
127 | 129 | | |
128 | 130 | | |
| |||
132 | 134 | | |
133 | 135 | | |
134 | 136 | | |
135 | | - | |
| 137 | + | |
| 138 | + | |
136 | 139 | | |
137 | 140 | | |
138 | 141 | | |
| |||
0 commit comments