Verified Commit 632cc5bc authored by Florian Forster's avatar Florian Forster
Browse files

fix(tracing): Add back support for formatting derived scalar types.

This is a partial revert of b3f5eeb3. While
using a type switch is more efficient, it also differentiates between a
`string` type and a derived type, such as `ext.SpanTypeEnum`. By reverting back
to using reflect for the type match, we fix this regression.

This change keeps the `fmt.Stringer` interface match, which is used for
`*url.URL`.

A test case for `ext.SpanTypeEnum` has been added.
parent b3f5eeb3
Loading
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment