java-spring-cloud icon indicating copy to clipboard operation
java-spring-cloud copied to clipboard

Fix span logs and tags while logging with level ERROR

Open xbj110825 opened this issue 3 years ago • 0 comments

While using SpanLogsAppender, we found that while logging with level ERROR, the span log event's value is something like io.opentracing.tag.BooleanTag@7251412f. So i search the behavior of other components(e.g. io.opentracing.contrib.jdbc.JdbcTracingUtils.onError), and found that we should log Tag.ERROR.getKey() instead of Tag.ERROR, and tag error.

xbj110825 avatar Jul 28 '21 07:07 xbj110825