-
Notifications
You must be signed in to change notification settings - Fork 539
Can the API avoid returning shared_ptr<Span> #828
Copy link
Copy link
Open
Labels
Description
By having this design an atomic ref-counting will always be needed. This will block in the future a possibly more performant "streaming" implementation where Span == SpanContext and all "record" apis will stream an event. The reason for "blocking" is because will still pay the refcounting and heap allocation cost even though is not needed.
The SDK can implement the Span by having an internal shared_ptr using a pimpl pattern.
Reactions are currently unavailable