searxng/searx/search/processors
Markus Heiser 2b69780f0d [DRAFT] simplify searx.metrics implementation
- Moved code of the wrapper functions to to methods of class HistogramStorage
  and class CounterStorage.

- Renamed global histogram and counter objects to HISTOGRAM_STORAGE and
  COUNTER_STORAGE.

- The imports of names from the metrics module in the application code has been
  reduced to:

      from searx import metrics

   By this convention the wrapper functions can be replaced by the globals from:

      metrics.HISTOGRAM_STORAGE
      metrics.COUNTER_STORAGE

- comment out the context manager from searx.metrics.histogram_observe_time / we
  do not have a usage of this context manager.

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-09-21 15:55:15 +02:00
..
__init__.py [enh] implement a OnlineUrlSearchProcessor 2022-01-30 16:05:08 +01:00
abstract.py [DRAFT] simplify searx.metrics implementation 2022-09-21 15:55:15 +02:00
offline.py [format.python] initial formatting of the python code 2021-12-27 09:26:22 +01:00
online.py [DRAFT] simplify searx.metrics implementation 2022-09-21 15:55:15 +02:00
online_currency.py [doc] add description of method EngineProcessor.get_params() 2022-08-01 16:42:33 +02:00
online_dictionary.py [doc] add description of method EngineProcessor.get_params() 2022-08-01 16:42:33 +02:00
online_url_search.py [doc] add description of method EngineProcessor.get_params() 2022-08-01 16:42:33 +02:00