You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 23, 2023. It is now read-only.
Minor nit: use the LogFields() method with vararg list instead of allocating an array on the heap each time.
To the actual question, I think this is a combination of Jaeger behavior and OT implementation. You could argue that Jaeger is doing a simplistic (lazy) job of calling toString on the field instead of doing proper dispatching. Having said that, it does make sense to alter Field.String() function to be a bit smarter about the type, e.g. call Error() for errors, maybe check if the value implements Stringer(), etc.
Hi.
I have a custom error type (which implements Error interface) and use it in log.Error
When I was looking at this error through
jaeger-ui
, I see it is not theerr.Error()
I see, but the struct representation.this may be the culprit of this issue
Sprint
doesn't call theError()
method if the actual interface is an error, but a struct representation. as I see hereI am not sure Marshal formats it differently, but as far as I see, my trace log doesn't have some of the private info I add through
Error
method.Please guide me if you think it may be because I use the API wrongly.
The text was updated successfully, but these errors were encountered: