MCPcopy
hub / github.com/redis/go-redis / recordError

Function recordError

extra/redisotel/tracing.go:187–192  ·  view source on GitHub ↗
(span trace.Span, err error)

Source from the content-addressed store, hash-verified

185}
186
187func recordError(span trace.Span, err error) {
188 if err != redis.Nil {
189 span.RecordError(err)
190 span.SetStatus(codes.Error, err.Error())
191 }
192}
193
194func formatDBConnString(network, addr string) string {
195 if network == "tcp" {

Callers 3

DialHookMethod · 0.85
ProcessHookMethod · 0.85
ProcessPipelineHookMethod · 0.85

Calls 2

RecordErrorMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected