opencensus-scala icon indicating copy to clipboard operation
opencensus-scala copied to clipboard

Wrap `Span` for more scala idiomatic interface

Open yannick-cw opened this issue 6 years ago • 1 comments

Span has stuff like addAnnotation, which I'd like to use, but returns unit, should we wrap it in sth. to have a more scala like api, returning the changed span? Same for the other Span methods @Sebruck ?

yannick-cw avatar Apr 27 '18 09:04 yannick-cw

The only problem I see is that we might awake false assumptions on the client side. The fluent api then "feels" like it's immutable, but in fact it's not.

But I'd happy to play around a bit and see if we can come up with something useful!

Sebruck avatar Apr 27 '18 11:04 Sebruck