@@ -48,92 +48,128 @@ public ExecTimeTelemetryData() {
48
48
}
49
49
50
50
public void setBindStart () {
51
- if (!this .sendData ) return ;
51
+ if (!this .sendData ) {
52
+ return ;
53
+ }
52
54
this .bindStart = SnowflakeUtil .getEpochTimeInMicroSeconds ();
53
55
}
54
56
55
57
public void setOCSPStatus (Boolean ocspEnabled ) {
56
- if (!this .sendData ) return ;
58
+ if (!this .sendData ) {
59
+ return ;
60
+ }
57
61
this .ocspEnabled = ocspEnabled ;
58
62
}
59
63
60
64
public void setBindEnd () {
61
- if (!this .sendData ) return ;
65
+ if (!this .sendData ) {
66
+ return ;
67
+ }
62
68
this .bindEnd = SnowflakeUtil .getEpochTimeInMicroSeconds ();
63
69
}
64
70
65
71
public void setHttpClientStart () {
66
- if (!this .sendData ) return ;
72
+ if (!this .sendData ) {
73
+ return ;
74
+ }
67
75
this .httpClientStart = SnowflakeUtil .getEpochTimeInMicroSeconds ();
68
76
}
69
77
70
78
public void setHttpClientEnd () {
71
- if (!this .sendData ) return ;
79
+ if (!this .sendData ) {
80
+ return ;
81
+ }
72
82
this .httpClientEnd = SnowflakeUtil .getEpochTimeInMicroSeconds ();
73
83
}
74
84
75
85
public void setGzipStart () {
76
- if (!this .sendData ) return ;
86
+ if (!this .sendData ) {
87
+ return ;
88
+ }
77
89
this .gzipStart = SnowflakeUtil .getEpochTimeInMicroSeconds ();
78
90
}
79
91
80
92
public void setGzipEnd () {
81
- if (!this .sendData ) return ;
93
+ if (!this .sendData ) {
94
+ return ;
95
+ }
82
96
this .gzipEnd = SnowflakeUtil .getEpochTimeInMicroSeconds ();
83
97
}
84
98
85
99
public void setQueryEnd () {
86
- if (!this .sendData ) return ;
100
+ if (!this .sendData ) {
101
+ return ;
102
+ }
87
103
this .queryEnd = SnowflakeUtil .getEpochTimeInMicroSeconds ();
88
104
}
89
105
90
106
public void setQueryId (String queryId ) {
91
- if (!this .sendData ) return ;
107
+ if (!this .sendData ) {
108
+ return ;
109
+ }
92
110
this .queryId = queryId ;
93
111
}
94
112
95
113
public void setProcessResultChunkStart () {
96
- if (!this .sendData ) return ;
114
+ if (!this .sendData ) {
115
+ return ;
116
+ }
97
117
this .processResultChunkStart = SnowflakeUtil .getEpochTimeInMicroSeconds ();
98
118
}
99
119
100
120
public void setProcessResultChunkEnd () {
101
- if (!this .sendData ) return ;
121
+ if (!this .sendData ) {
122
+ return ;
123
+ }
102
124
this .processResultChunkEnd = SnowflakeUtil .getEpochTimeInMicroSeconds ();
103
125
}
104
126
105
127
public void setResponseIOStreamStart () {
106
- if (!this .sendData ) return ;
128
+ if (!this .sendData ) {
129
+ return ;
130
+ }
107
131
this .responseIOStreamStart = SnowflakeUtil .getEpochTimeInMicroSeconds ();
108
132
}
109
133
110
134
public void setResponseIOStreamEnd () {
111
- if (!this .sendData ) return ;
135
+ if (!this .sendData ) {
136
+ return ;
137
+ }
112
138
this .responseIOStreamEnd = SnowflakeUtil .getEpochTimeInMicroSeconds ();
113
139
}
114
140
115
141
public void setCreateResultSetStart () {
116
- if (!this .sendData ) return ;
142
+ if (!this .sendData ) {
143
+ return ;
144
+ }
117
145
this .createResultSetStart = SnowflakeUtil .getEpochTimeInMicroSeconds ();
118
146
}
119
147
120
148
public void setCreateResultSetEnd () {
121
- if (!this .sendData ) return ;
149
+ if (!this .sendData ) {
150
+ return ;
151
+ }
122
152
this .createResultSetEnd = SnowflakeUtil .getEpochTimeInMicroSeconds ();
123
153
}
124
154
125
155
public void incrementRetryCount () {
126
- if (!this .sendData ) return ;
156
+ if (!this .sendData ) {
157
+ return ;
158
+ }
127
159
this .retryCount ++;
128
160
}
129
161
130
162
public void setRequestId (String requestId ) {
131
- if (!this .sendData ) return ;
163
+ if (!this .sendData ) {
164
+ return ;
165
+ }
132
166
this .requestId = requestId ;
133
167
}
134
168
135
169
public void addRetryLocation (String location ) {
136
- if (!this .sendData ) return ;
170
+ if (!this .sendData ) {
171
+ return ;
172
+ }
137
173
if (Strings .isNullOrEmpty (this .retryLocations )) {
138
174
this .retryLocations = location ;
139
175
} else {
0 commit comments