Commits on Source 2
-
Florian Forster authored
This changes switches to a type casae, which allows us to match on interfaces, particularly the `fmt.Stringer` interface. This is also more efficient, especially for string types. While there, I also changed the behavior of unsupported types: instead of adding an error message in the attribute, the code uses `fmt.Sprint` to format the value and adds a `<key>.error` attribute with the error message instead. Likewise, string attributes that are too long (more than 256 bytes) also get an `.error` attribute explaining what is happening. Issue: #78
-
Igor authored
fix(tracing): Fix formatting of `url.URL` attributes. Closes #78 See merge request !236 Merged-by:
Igor <iwiedler@gitlab.com> Approved-by:
Igor <iwiedler@gitlab.com> Co-authored-by:
Florian Forster <fforster@gitlab.com>