Commit b10a592
committed
feat(telemetry): populate sql_operation, auth_type, and driver_connection_params
Aligns the Node.js telemetry payload with the receiver schema (JDBC parity).
Several fields were being collected by the producer/aggregator but dropped
on the floor in the exporter:
- `sql_operation.operation_detail.operation_type` (CREATE_SESSION /
DELETE_SESSION / EXECUTE_STATEMENT / LIST_*) on both connection and
statement events.
- `sql_operation.is_compressed` on statement events when CloudFetch
compression observability is available.
- `sql_operation.execution_result` now resolves to `FORMAT_UNSPECIFIED`
when result-set metadata isn't available (DDL/DML, or SELECTs closed
without fetching), so the `sql_operation` block fires on every
statement-complete event instead of being skipped.
- Top-level `auth_type` from `DriverConfiguration.authType`.
- New `driver_connection_params` block carrying `host_info.host_url`,
`http_path`, `enable_arrow`, `enable_direct_results`, `socket_timeout`,
`enable_metric_view_metadata`, `cloud_fetch_enabled`, `lz4_enabled`,
`retry_max_attempts`, `cloud_fetch_concurrent_downloads`.
Both `auth_type` and `driver_connection_params` are gated behind the
existing authenticated-export guard (same path as `system_configuration`),
since `host_url` and `http_path` are workspace-correlated identifiers
that must not ship on the unauthenticated endpoint.
Co-authored-by: Isaac1 parent e200a1b commit b10a592
2 files changed
Lines changed: 53 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
63 | 76 | | |
64 | 77 | | |
65 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
66 | 83 | | |
67 | 84 | | |
68 | 85 | | |
| |||
368 | 385 | | |
369 | 386 | | |
370 | 387 | | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
371 | 393 | | |
372 | 394 | | |
373 | 395 | | |
| |||
384 | 406 | | |
385 | 407 | | |
386 | 408 | | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
387 | 427 | | |
388 | 428 | | |
389 | 429 | | |
390 | 430 | | |
391 | | - | |
| 431 | + | |
392 | 432 | | |
393 | 433 | | |
394 | 434 | | |
395 | 435 | | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
396 | 446 | | |
397 | 447 | | |
398 | 448 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
0 commit comments