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

This is a partial revert of fix(tracing): Fix formatting of `url.URL` attri... (!236 - merged). 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.

Screenshot_2025-10-15_at_10.07.06

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

A test case for ext.SpanTypeEnum has been added.

Edited by Florian Forster

Merge request reports

Loading