Records error count metric directly.
(
self,
error: Exception,
connection: Connection,
is_internal: bool = True,
retry_attempts: Optional[int] = None,
)
| 1924 | ) |
| 1925 | |
| 1926 | def _record_error_metric( |
| 1927 | self, |
| 1928 | error: Exception, |
| 1929 | connection: Connection, |
| 1930 | is_internal: bool = True, |
| 1931 | retry_attempts: Optional[int] = None, |
| 1932 | ): |
| 1933 | """ |
| 1934 | Records error count metric directly. |
| 1935 | """ |
| 1936 | record_error_count( |
| 1937 | server_address=connection.host, |
| 1938 | server_port=connection.port, |
| 1939 | network_peer_address=connection.host, |
| 1940 | network_peer_port=connection.port, |
| 1941 | error_type=error, |
| 1942 | retry_attempts=retry_attempts if retry_attempts is not None else 0, |
| 1943 | is_internal=is_internal, |
| 1944 | ) |
| 1945 | |
| 1946 | def _extracts_socket_address( |
| 1947 | self, connection: Optional[Connection] |
no test coverage detected