Skip to main content

NewRedisInstrumentationHook

No overview available.

def NewRedisInstrumentationHook(
scope: promutils.Scope
) - > *RedisInstrumentationHook

Creates and initializes a new RedisInstrumentationHook instance. This function is used to set up instrumentation for Redis operations, allowing for metrics collection related to Redis interactions.

Parameters

NameTypeDescription
scopepromutils.ScopeThe Prometheus metrics scope to which the Redis operation histogram will be registered. This scope provides the context for metric naming and tagging.

Returns

TypeDescription
*RedisInstrumentationHookA pointer to a new RedisInstrumentationHook instance, configured with an operation histogram for metrics.