public virtual Response <MetastoreUpdationResponse> Update(string id, MetastoreUpdateObject updateBody, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("MetastoreClient.Update"); scope.Start(); try { return(RestClient.Update(id, updateBody, cancellationToken)); } catch (Exception e) { scope.Failed(e); throw; } }
public virtual async Task <Response <MetastoreUpdationResponse> > UpdateAsync(string id, MetastoreUpdateObject updateBody, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("MetastoreClient.Update"); scope.Start(); try { return(await RestClient.UpdateAsync(id, updateBody, cancellationToken).ConfigureAwait(false)); } catch (Exception e) { scope.Failed(e); throw; } }