@@ -151,11 +151,6 @@ async Task ShootingTask(RateLimiter rateLimitPolicy, string operationType, Func<
151151 "Total number of successful operations, categorized by type."
152152 ) ;
153153
154- var operationsFailureTotal = metricFactory . CreateCounter (
155- "sdk_operations_failure_total" ,
156- "Total number of failed operations, categorized by type."
157- ) ;
158-
159154 var operationLatencySeconds = metricFactory . CreateHistogram (
160155 "sdk_operation_latency_seconds" ,
161156 "Latency of operations performed by the SDK in seconds, categorized by type and status." ,
@@ -210,23 +205,12 @@ async Task ShootingTask(RateLimiter rateLimitPolicy, string operationType, Func<
210205
211206 pendingOperations . Inc ( ) ;
212207 var sw = Stopwatch . StartNew ( ) ;
213- try
214- {
215- await action ( client , runConfig ) ;
216- sw . Stop ( ) ;
217- operationsTotal . Inc ( ) ;
218- pendingOperations . Dec ( ) ;
219- operationsSuccessTotal . Inc ( ) ;
220- operationLatencySeconds . WithLabels ( "success" ) . Observe ( sw . Elapsed . TotalSeconds ) ;
221- }
222- catch ( YdbException e )
223- {
224- Logger . LogError ( e , "Fail operation!" ) ;
225-
226- errorsTotal . WithLabels ( e . Code . StatusName ( ) ) . Inc ( ) ;
227- operationsFailureTotal . Inc ( ) ;
228- operationLatencySeconds . WithLabels ( "err" ) . Observe ( sw . Elapsed . TotalSeconds ) ;
229- }
208+ await action ( client , runConfig ) ;
209+ sw . Stop ( ) ;
210+ operationsTotal . Inc ( ) ;
211+ pendingOperations . Dec ( ) ;
212+ operationsSuccessTotal . Inc ( ) ;
213+ operationLatencySeconds . WithLabels ( "success" ) . Observe ( sw . Elapsed . TotalSeconds ) ;
230214 }
231215 } , cancellationTokenSource . Token ) ) ;
232216 }
0 commit comments