Skip to content

Commit 6052603

Browse files
Google APIscopybara-github
authored andcommitted
feat: add trace_id for Read API
PiperOrigin-RevId: 429809867
1 parent f19466b commit 6052603

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

google/cloud/bigquery/storage/v1/stream.proto

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2021 Google LLC
1+
// Copyright 2022 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -132,6 +132,14 @@ message ReadSession {
132132
// all streams are completely consumed. This estimate is based on
133133
// metadata from the table which might be incomplete or stale.
134134
int64 estimated_total_bytes_scanned = 12 [(google.api.field_behavior) = OUTPUT_ONLY];
135+
136+
// Optional. ID set by client to annotate a session identity. This does not need
137+
// to be strictly unique, but instead the same ID should be used to group
138+
// logically connected sessions (e.g. All using the same ID for all sessions
139+
// needed to complete a Spark SQL query is reasonable).
140+
//
141+
// Maximum length is 256 bytes.
142+
string trace_id = 13 [(google.api.field_behavior) = OPTIONAL];
135143
}
136144

137145
// Information about a single stream that gets data out of the storage system.

0 commit comments

Comments
 (0)