Skip to content

Commit 22eb2e1

Browse files
committed
added docstring
1 parent 819e1ae commit 22eb2e1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

google/cloud/bigtable/data/_metrics/tracked_retry.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,15 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14+
"""
15+
Methods for instrumenting an google.api_core.retry.retry_target or
16+
google.api_core.retry.retry_target_stream method
17+
18+
`tracked_retry` will intercept `on_error` and `exception_factory`
19+
methods to update the associated ActiveOperationMetric when exceptions
20+
are encountered through the retryable rpc.
21+
"""
22+
1423
from typing import Callable, List, Optional, Tuple, TypeVar
1524

1625
from grpc import StatusCode

0 commit comments

Comments
 (0)