Skip to content

Commit

Permalink
Ensure status captures error message
Browse files Browse the repository at this point in the history
Signed-off-by: Joseph Woodward <joseph.woodward@xeuse.com>
  • Loading branch information
josephwoodward committed Nov 1, 2022
1 parent 14ee16f commit b3ce5f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/opentelemetry.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func (t *openTelemetryTransport) Submit(op *runtime.ClientOperation) (interface{
submit, err := t.transport.Submit(op)
if err != nil && span != nil {
span.RecordError(err)
span.SetStatus(codes.Error, "")
span.SetStatus(codes.Error, err.Error())
}

return submit, err
Expand Down

0 comments on commit b3ce5f1

Please sign in to comment.