Skip to content

Commit

Permalink
galaxycache.go: add err to span status for g.load error
Browse files Browse the repository at this point in the history
  • Loading branch information
willgreenberg committed Jul 26, 2019
1 parent befe473 commit adaad0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion galaxycache.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ func (g *Galaxy) Get(ctx context.Context, key string, dest Codec) error {
destPopulated := false
value, destPopulated, err := g.load(ctx, key, dest)
if err != nil {
span.SetStatus(trace.Status{Code: trace.StatusCodeUnknown, Message: "Failed to load key"})
span.SetStatus(trace.Status{Code: trace.StatusCodeUnknown, Message: "Failed to load key: " + err.Error()})
stats.Record(ctx, MLoadErrors.M(1))
return err
}
Expand Down

0 comments on commit adaad0b

Please sign in to comment.