Currently, all spans expose end methods, allowing even users of managed spans to end them prematurely and potentially cause problems. Additionally, if we end up exposing the current span in Tracer, arbitrary callers may be able to end spans prematurely. Should the API be changed to prevent users other than callers of startUnmanaged from calling end on a span?
Currently, all spans expose
endmethods, allowing even users of managed spans to end them prematurely and potentially cause problems. Additionally, if we end up exposing the current span inTracer, arbitrary callers may be able to end spans prematurely. Should the API be changed to prevent users other than callers ofstartUnmanagedfrom callingendon a span?