Skip to content

Commit

Permalink
Log span name when span cannot be reported (jaegertracing#198)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dieterbe authored and yurishkuro committed Sep 8, 2017
1 parent 59da631 commit aa5016e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion reporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
package jaeger

import (
"fmt"
"sync"
"sync/atomic"
"time"
Expand Down Expand Up @@ -234,7 +235,7 @@ func (r *remoteReporter) processQueue() {
atomic.AddInt64(&r.queueLength, -1)
if flushed, err := r.sender.Append(span); err != nil {
r.metrics.ReporterFailure.Inc(int64(flushed))
r.logger.Error(err.Error())
r.logger.Error(fmt.Sprintf("error reporting span %q: %s", span.OperationName(), err.Error()))
} else if flushed > 0 {
r.metrics.ReporterSuccess.Inc(int64(flushed))
// to reduce the number of gauge stats, we only emit queue length on flush
Expand Down

0 comments on commit aa5016e

Please sign in to comment.