Commit 316d1e9
Ensure statement_type always populated in telemetry
Fix issue where statement_type was null in telemetry payloads.
Changes:
- mapOperationTypeToTelemetryType() now always returns a string,
defaulting to 'TYPE_UNSPECIFIED' when operationType is undefined
- statement_type always included in sql_operation telemetry log
This ensures that even if the Thrift operationHandle doesn't have
operationType set, the telemetry will include 'TYPE_UNSPECIFIED'
instead of null.
Root cause: operationHandle.operationType from Thrift response can
be undefined, resulting in null statement_type in telemetry logs.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 8ff09a9 commit 316d1e9
2 files changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
329 | 329 | | |
330 | 330 | | |
331 | 331 | | |
332 | | - | |
| 332 | + | |
333 | 333 | | |
334 | 334 | | |
335 | 335 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | | - | |
| 23 | + | |
23 | 24 | | |
24 | | - | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
0 commit comments