Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 25 additions & 14 deletions go/types/v1/query_metrics.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions js/types/v1/query_metrics_pb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,36 @@ export type QueryMetrics = Message<"types.v1.QueryMetrics"> & {
queryText: string;

/**
* Time from query start to query returning. Measures query submission overhead
* (network round-trip, connection setup).
*
* @generated from field: google.protobuf.Duration query_sent_latency = 300;
*/
querySentLatency?: Duration;

/**
* Time from query start to first row ready. Also known as "Time to First Row"
* (TTFR) or "Time to First Byte" (TTFB). Measures query execution latency on
* server.
*
* @generated from field: google.protobuf.Duration first_result_latency = 301;
*/
firstResultLatency?: Duration;

/**
* Wall-clock time from first row to last row. Measures result fetching
* duration (not cumulative time spent). Calculated as
* `lastFetchTime - firstFetchTime`, so include serialization and
* row-processing overhead.
*
* @generated from field: google.protobuf.Duration final_result_latency = 302;
*/
finalResultLatency?: Duration;

/**
* Full end-to-end time from query start to close. Total duration
* during which the server processed the request.
*
* @generated from field: google.protobuf.Duration total_latency = 3;
*/
totalLatency?: Duration;
Expand Down
11 changes: 11 additions & 0 deletions proto/types/v1/query_metrics.proto
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,20 @@ message QueryMetrics {
string query_id = 1;
string query_text = 2;

// Time from query start to query returning. Measures query submission overhead
// (network round-trip, connection setup).
google.protobuf.Duration query_sent_latency = 300;
// Time from query start to first row ready. Also known as "Time to First Row"
// (TTFR) or "Time to First Byte" (TTFB). Measures query execution latency on
// server.
google.protobuf.Duration first_result_latency = 301;
// Wall-clock time from first row to last row. Measures result fetching
// duration (not cumulative time spent). Calculated as
// `lastFetchTime - firstFetchTime`, so include serialization and
// row-processing overhead.
google.protobuf.Duration final_result_latency = 302;
// Full end-to-end time from query start to close. Total duration
// during which the server processed the request.
google.protobuf.Duration total_latency = 3;

int64 rows_returned = 4;
Expand Down
Loading