You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR changes metrics instrumentation in two ways:
The AppendClientOpenView is now tagged with an error dimension, so that
failures to open a connection are clearer. We use rpc status for the
value, with the expectation that non-rpc errors are tagged as Unknown.
A new metric (and view), AppendRequestReconnectsView provides additional
visibility into when errors during Send trigger reconnection of the
underlying connection. We attempt to also attribute this to the origin
writer, so it may be tagged by error and source stream.
Towards: #8311
Copy file name to clipboardExpand all lines: bigquery/storage/managedwriter/instrumentation.go
+11-1Lines changed: 11 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -61,6 +61,10 @@ var (
61
61
// It is EXPERIMENTAL and subject to change or removal without notice.
62
62
AppendRequestErrors=stats.Int64(statsPrefix+"append_request_errors", "Number of append requests that yielded immediate error", stats.UnitDimensionless)
63
63
64
+
// AppendRequestReconnects is a measure of the number of times that sending an append request triggered reconnect.
65
+
// It is EXPERIMENTAL and subject to change or removal without notice.
66
+
AppendRequestReconnects=stats.Int64(statsPrefix+"append_reconnections", "Number of append rows reconnections", stats.UnitDimensionless)
67
+
64
68
// AppendRequestRows is a measure of the number of append rows sent.
65
69
// It is EXPERIMENTAL and subject to change or removal without notice.
66
70
AppendRequestRows=stats.Int64(statsPrefix+"append_rows", "Number of append rows sent", stats.UnitDimensionless)
@@ -105,6 +109,10 @@ var (
105
109
// It is EXPERIMENTAL and subject to change or removal without notice.
106
110
AppendRequestErrorsView*view.View
107
111
112
+
// AppendRequestReconnectsView is a cumulative sum of AppendRequestReconnects.
113
+
// It is EXPERIMENTAL and subject to change or removal without notice.
114
+
AppendRequestReconnectsView*view.View
115
+
108
116
// AppendRequestRowsView is a cumulative sum of AppendRows.
109
117
// It is EXPERIMENTAL and subject to change or removal without notice.
0 commit comments