Skip to content

Commit

Permalink
MockSpan toString method (opentracing#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavolloffay authored and bhs committed Mar 16, 2017
1 parent 232f46e commit 30f713e
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -283,4 +283,13 @@ private synchronized void finishedCheck(String format, Object... args) {
throw ex;
}
}

@Override
public String toString() {
return "{" +
"traceId:" + context.traceId() +
", spanId:" + context.spanId() +
", parentId:" + parentId +
", operationName:\"" + operationName + "\"}";
}
}

0 comments on commit 30f713e

Please sign in to comment.