edx_django_utils.monitoring package#

Subpackages#

Submodules#

edx_django_utils.monitoring.middleware module#

Deprecated Middleware for backward-compatibility.

IMPORTANT: No new classes should be added to this file. TODO: Remove this file once these classes are no longer used.

class edx_django_utils.monitoring.middleware.CachedCustomMonitoringMiddleware(*args, **kwargs)#

Bases: edx_django_utils.monitoring.internal.middleware.CachedCustomMonitoringMiddleware

Deprecated class for handling middleware. Class has been moved to public API.

class edx_django_utils.monitoring.middleware.MonitoringCustomMetricsMiddleware(*args, **kwargs)#

Bases: edx_django_utils.monitoring.internal.middleware.CachedCustomMonitoringMiddleware

Deprecated class for handling middleware. Class has been renamed to CachedCustomMonitoringMiddleware.

class edx_django_utils.monitoring.middleware.MonitoringMemoryMiddleware(*args, **kwargs)#

Bases: edx_django_utils.monitoring.internal.middleware.MonitoringMemoryMiddleware

Deprecated class for handling middleware. Class has been moved to public API.

edx_django_utils.monitoring.utils module#

Deprecated monitoring helpers for backward-compatibility.

IMPORTANT: No new code should be added to this file. TODO: Remove this file once this code are no longer used.

edx_django_utils.monitoring.utils.accumulate(name, value)#

Deprecated method. Use public API instead.

edx_django_utils.monitoring.utils.increment(name)#

Deprecated method. Use public API instead.

edx_django_utils.monitoring.utils.set_custom_attribute(key, value)#

Deprecated method. Use public API instead.

edx_django_utils.monitoring.utils.set_custom_attributes_for_course_key(course_key)#

Deprecated method. Use public API instead.

edx_django_utils.monitoring.utils.set_custom_metric(key, value)#

Deprecated method to set monitoring custom attribute.

edx_django_utils.monitoring.utils.set_custom_metrics_for_course_key(course_key)#

Deprecated method to set monitoring custom attributes for course key.

Module contents#

Metrics utilities public api

See README.rst for details.