Common functionality to ease logging of timed metrics.
Common functionality to ease logging of timed metrics.
(cancel-metric-timer ?timer-name-or-metric)(cancel-metric-timer ?metric ?more)Cancels a metric timer. It can either be identified by a timer name
returned by start-metric-timer or by current namespace, metric, and
(optional) addtional context map.
Cancels a metric timer. It can either be identified by a timer name returned by [[start-metric-timer]] or by current namespace, metric, and (optional) addtional context map.
(cancel-metric-timer-1 timer-name)Cancels a metric timer, identified by timer-name.
Cancels a metric timer, identified by `timer-name`.
(logging-timing ?label ?m)A monadic command that executes m and returns its result, and
also makes a debug log messages about the time it took to execute
it, where the message begins with the given text.
A monadic command that executes `m` and returns its result, and also makes a debug log messages about the time it took to execute it, where the message begins with the given `text`.
(make-timer-name namespace metric map)Construct a TimerName record.
namespace (String): access via active.clojure.logger.timed-metric/timer-name-namespace
metric (Name of the metric that will be logged.): access via active.clojure.logger.timed-metric/timer-name-metric
map (Map with log context info, keywords to strings.): access via active.clojure.logger.timed-metric/timer-name-map
Construct a `TimerName` record. `namespace` (String): access via [[active.clojure.logger.timed-metric/timer-name-namespace]] `metric` (Name of the metric that will be logged.): access via [[active.clojure.logger.timed-metric/timer-name-metric]] `map` (Map with log context info, keywords to strings.): access via [[active.clojure.logger.timed-metric/timer-name-map]]
(start-metric-timer ?metric & [?more])Starts a metric timer, identified by metric and more.
more must be a map from keywords listed in [[log/log-context-keys]] to strings.
Returns a timer-name object that can be fed to
cancel-metric-timer or stop-and-log-metric-timer.
Starts a metric timer, identified by `metric` and `more`. `more` must be a map from keywords listed in [[log/log-context-keys]] to strings. Returns a timer-name object that can be fed to [[cancel-metric-timer]] or [[stop-and-log-metric-timer]].
(start-metric-timer-1 ns metric more)Starts a metric timer, identified by ns, metric and more.
Starts a metric timer, identified by `ns`, `metric` and `more`.
(stop-and-log-metric-timer ?timer-name-or-metric)(stop-and-log-metric-timer ?metric ?more)Stops a metric timer and logs the time. The timer can either be identified by a timer name
returned by start-metric-timer or by current namespace, metric, and
(optional) addtional context map.
Returns the elapsed time in milliseconds.
Stops a metric timer and logs the time. The timer can either be identified by a timer name returned by [[start-metric-timer]] or by current namespace, metric, and (optional) addtional context map. Returns the elapsed time in milliseconds.
(stop-and-log-metric-timer-1 timer-name)Stops a metric timer and logs the time as a metric.
Stops a metric timer and logs the time as a metric.
(timer-name-map rec__5543__auto__)(timer-name-map data__5544__auto__ v__5545__auto__)Lens for the map field (Map with log context info, keywords to strings.) from a TimerName record. See active.clojure.logger.timed-metric/make-timer-name.
Lens for the `map` field (Map with log context info, keywords to strings.) from a [[TimerName]] record. See [[active.clojure.logger.timed-metric/make-timer-name]].
(timer-name-metric rec__5543__auto__)(timer-name-metric data__5544__auto__ v__5545__auto__)Lens for the metric field (Name of the metric that will be logged.) from a TimerName record. See active.clojure.logger.timed-metric/make-timer-name.
Lens for the `metric` field (Name of the metric that will be logged.) from a [[TimerName]] record. See [[active.clojure.logger.timed-metric/make-timer-name]].
(timer-name-namespace rec__5543__auto__)(timer-name-namespace data__5544__auto__ v__5545__auto__)Lens for the namespace field (String) from a TimerName record. See active.clojure.logger.timed-metric/make-timer-name.
Lens for the `namespace` field (String) from a [[TimerName]] record. See [[active.clojure.logger.timed-metric/make-timer-name]].
(timer-name? thing)Is object a TimerName record? See active.clojure.logger.timed-metric/make-timer-name.
Is object a `TimerName` record? See [[active.clojure.logger.timed-metric/make-timer-name]].
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |