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
This is different behavior than, for example, Jaeger, due in part to Jaeger using a HashMap instead of a ConcurrentHashMap, the latter of which does not accept null values.
The fix would be to switch from using ConcurrentHashMap (which seems sensible given that spans really ought to be measuring operations on a single thread) OR at the very least checking for null. (FWIW the OpenTracing spec is mute on the subject of null tag values.)
The text was updated successfully, but these errors were encountered:
kcirone
changed the title
TracerR.setTag() throws NPE when using null key/value
SpanR.setTag() throws NPE when using null key/value
Nov 18, 2020
This is different behavior than, for example, Jaeger, due in part to Jaeger using a HashMap instead of a ConcurrentHashMap, the latter of which does not accept null values.
The fix would be to switch from using ConcurrentHashMap (which seems sensible given that spans really ought to be measuring operations on a single thread) OR at the very least checking for null. (FWIW the OpenTracing spec is mute on the subject of null tag values.)
The text was updated successfully, but these errors were encountered: