.oO SearXNG Developer Documentation Oo.
|
Classes | |
class | ErrorContext |
Functions | |
None | add_error_context (str engine_name, ErrorContext error_context) |
get_trace (traces) | |
typing.Optional[None] | get_hostname (HTTPError exc) |
typing.Tuple[typing.Optional[str], typing.Optional[str], typing.Optional[str]] | get_request_exception_messages (HTTPError exc) |
typing.Tuple | get_messages (exc, filename) |
str | get_exception_classname (Exception exc) |
ErrorContext | get_error_context (framerecords, exception_classname, log_message, log_parameters, secondary) |
None | count_exception (str engine_name, Exception exc, bool secondary=False) |
None | count_error (str engine_name, str log_message, typing.Optional[typing.Tuple] log_parameters=None, bool secondary=False) |
Variables | |
dict | errors_per_engines = {} |
None searx.metrics.error_recorder.add_error_context | ( | str | engine_name, |
ErrorContext | error_context ) |
Definition at line 87 of file error_recorder.py.
Referenced by searx.metrics.error_recorder.count_error(), and searx.metrics.error_recorder.count_exception().
None searx.metrics.error_recorder.count_error | ( | str | engine_name, |
str | log_message, | ||
typing.Optional[typing.Tuple] | log_parameters = None, | ||
bool | secondary = False ) |
Definition at line 185 of file error_recorder.py.
References searx.metrics.error_recorder.add_error_context(), and searx.metrics.error_recorder.get_error_context().
None searx.metrics.error_recorder.count_exception | ( | str | engine_name, |
Exception | exc, | ||
bool | secondary = False ) |
Definition at line 172 of file error_recorder.py.
References searx.metrics.error_recorder.add_error_context(), searx.metrics.error_recorder.get_error_context(), searx.metrics.error_recorder.get_exception_classname(), and searx.metrics.error_recorder.get_messages().
ErrorContext searx.metrics.error_recorder.get_error_context | ( | framerecords, | |
exception_classname, | |||
log_message, | |||
log_parameters, | |||
secondary ) |
Definition at line 160 of file error_recorder.py.
References searx.metrics.error_recorder.get_trace().
Referenced by searx.metrics.error_recorder.count_error(), and searx.metrics.error_recorder.count_exception().
str searx.metrics.error_recorder.get_exception_classname | ( | Exception | exc | ) |
Definition at line 151 of file error_recorder.py.
Referenced by searx.metrics.error_recorder.count_exception().
typing.Optional[None] searx.metrics.error_recorder.get_hostname | ( | HTTPError | exc | ) |
Definition at line 103 of file error_recorder.py.
typing.Tuple searx.metrics.error_recorder.get_messages | ( | exc, | |
filename ) |
Definition at line 131 of file error_recorder.py.
References searx.metrics.error_recorder.get_request_exception_messages().
Referenced by searx.metrics.error_recorder.count_exception().
typing.Tuple[typing.Optional[str], typing.Optional[str], typing.Optional[str]] searx.metrics.error_recorder.get_request_exception_messages | ( | HTTPError | exc | ) |
Definition at line 110 of file error_recorder.py.
Referenced by searx.metrics.error_recorder.get_messages().
searx.metrics.error_recorder.get_trace | ( | traces | ) |
Definition at line 93 of file error_recorder.py.
Referenced by searx.metrics.error_recorder.get_error_context().
dict searx.metrics.error_recorder.errors_per_engines = {} |
Definition at line 19 of file error_recorder.py.