# Functions

EndSpan ends a span with the given error.
StartSpan adds a span to the trace with the given name.
TODO: (odeke-em): perhaps just pass around spans due to the cost incurred from using trace.FromContext(ctx) yet we could avoid throwing away the work done by ctx, span := trace.StartSpan.