Simplify spans with default tags?
robsimmons opened this issue · 0 comments
robsimmons commented
Either one of two (backwards non-compatible) changes would make things easier for implementers:
- Have the default
Tracer.startSpan
implementation callSpan.addTags
after calling theSpan
constructor. - Specify that addTags has no effect if passed a falsy value, and have the default
Span.addTags
implementation perform this check. Then theSpan
constructor can just callthis.addTags(fields && fields.tags)
.