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 was archived by the owner on May 23, 2023. It is now read-only.
I noticed that the log.Field object borrows from the convention set up by the zap logging library (https://github.com/uber-go/zap) to reduce allocations on logging by having typed functions (e.g. log.String(...) or log.Bool(...)). The SetTag(...) function does not follow that convention though.
Proposal
I would propose that SetTag takes a similar opentracing.Tag object that also reduces allocations.
For example:
span.SetTag(tag.String("hello", "world"))
Questions to address (if any)
There might need to be some path for rollout and backward compatibility.