Documentation ¶
Overview ¶
Package nrredis instruments github.com/go-redis/redis/v8.
Use this package to instrument your go-redis/redis/v8 calls without having to manually create DatastoreSegments.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHook ¶
func NewHook(opts *redis.Options) redis.Hook
NewHook creates a redis.Hook to instrument Redis calls. Add it to your client, then ensure that all calls contain a context which includes the transaction. The options are optional. Provide them to get instance metrics broken out by host and port. The hook returned can be used with redis.Client, redis.ClusterClient, and redis.Ring.
func TrackUsage ¶
func TrackUsage(s ...string)
TrackUsage helps track which integration packages are used.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.