Documentation
¶
Overview ¶
Package telemetry exposes selected Redis OpenTelemetry helpers through the go-service cache import tree.
This package is the cache-side wrapper boundary for Redis OpenTelemetry instrumentation. It keeps cache code on a go-service import path while preserving the behavior of the upstream redisotel helpers used to instrument Redis clients for tracing and metrics.
Use this package when instrumenting go-redis clients that back the go-service cache subsystem. Higher-level cache code should generally prefer `cache/driver.NewDriver`, which applies this instrumentation automatically for the built-in Redis backend.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InstrumentMetrics ¶
func InstrumentMetrics(client client.UniversalClient) error
InstrumentMetrics instruments a Redis client for OpenTelemetry metrics.
This is a thin wrapper around redisotel.InstrumentMetrics.
The provided client is modified in place to emit Redis client metrics. The wrapper does not change upstream behavior or error semantics.
func InstrumentTracing ¶
func InstrumentTracing(client client.UniversalClient) error
InstrumentTracing instruments a Redis client for OpenTelemetry tracing.
This is a thin wrapper around redisotel.InstrumentTracing.
The provided client is modified in place to emit tracing data for supported Redis operations. The wrapper does not change upstream behavior or error semantics.
Types ¶
This section is empty.