Skip to content

Latest commit

 

History

History
33 lines (20 loc) · 833 Bytes

settings.rst

File metadata and controls

33 lines (20 loc) · 833 Bytes

Settings

Package configuration is done through using package settings:

from time_execution import settings
settings.configure()

Parameters accepted by configure method are described bellow.

backends

Optional parameter, equals to empty list by default, accepts a list of api/time_execution.backends instances.

hooks

Optional parameter, equals to empty list by default, accepts the list of callable, see usage-hooks.

duration_field

Optional parameter, equals to "value" by default.

origin

Optional parameter, equals to None by default. If specified, then sent metrics will have "origin" attribute, which can be used to identify origin of the metric, when time_execution package is used in multiple applications.