func()

in plugins/go-redisv9/instrument.go [50:103]


func (i *Instrument) Points() []*instrument.Point {
	return []*instrument.Point{
		{
			PackageName: "redis",
			PackagePath: "",
			At: instrument.NewStaticMethodEnhance("NewUniversalClient",
				instrument.WithArgsCount(1),
				instrument.WithArgType(0, "*UniversalOptions"),
				instrument.WithResultCount(1),
				instrument.WithResultType(0, "UniversalClient")),
			Interceptor: "GoRedisInterceptor",
		},
		{
			PackageName: "redis",
			PackagePath: "",
			At: instrument.NewStaticMethodEnhance("NewClient",
				instrument.WithArgsCount(1),
				instrument.WithArgType(0, "*Options"),
				instrument.WithResultCount(1),
				instrument.WithResultType(0, "*Client")),
			Interceptor: "GoRedisInterceptor",
		},
		{
			PackageName: "redis",
			PackagePath: "",
			At: instrument.NewStaticMethodEnhance("NewFailoverClient",
				instrument.WithArgsCount(1),
				instrument.WithArgType(0, "*FailoverOptions"),
				instrument.WithResultCount(1),
				instrument.WithResultType(0, "*Client")),
			Interceptor: "GoRedisInterceptor",
		},
		{
			PackageName: "redis",
			PackagePath: "",
			At: instrument.NewStaticMethodEnhance("NewClusterClient",
				instrument.WithArgsCount(1),
				instrument.WithArgType(0, "*ClusterOptions"),
				instrument.WithResultCount(1),
				instrument.WithResultType(0, "*ClusterClient")),
			Interceptor: "GoRedisInterceptor",
		},
		{
			PackageName: "redis",
			PackagePath: "",
			At: instrument.NewStaticMethodEnhance("NewRing",
				instrument.WithArgsCount(1),
				instrument.WithArgType(0, "*RingOptions"),
				instrument.WithResultCount(1),
				instrument.WithResultType(0, "*Ring")),
			Interceptor: "GoRedisInterceptor",
		},
	}
}