(err error)
| 342 | } |
| 343 | |
| 344 | func statusAttr(err error) attribute.KeyValue { |
| 345 | if err != nil { |
| 346 | if err == redis.Nil { |
| 347 | return attribute.String("status", "nil") |
| 348 | } |
| 349 | return attribute.String("status", "error") |
| 350 | } |
| 351 | return attribute.String("status", "ok") |
| 352 | } |
| 353 | |
| 354 | func errorTypeAttribute(err error) attribute.KeyValue { |
| 355 | switch { |
no test coverage detected