Skip to content

Commit

Permalink
Ensure status captures error message
Browse files Browse the repository at this point in the history
  • Loading branch information
josephwoodward committed Oct 28, 2022
1 parent 4ea32cb commit e97982b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/opentelemetry.go
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 e97982b

Please sign in to comment.