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
| Name | Type | Description |
|---|---|---|
| scope | promutils.Scope | The Prometheus metrics scope to which the Redis operation histogram will be registered. This scope provides the context for metric naming and tagging. |
Returns
| Type | Description |
|---|---|
*RedisInstrumentationHook | A pointer to a new RedisInstrumentationHook instance, configured with an operation histogram for metrics. |