capturing_start_span#

mobu.sentry.capturing_start_span(op, **kwargs)#

Start a span, set the op/start time in the context, and capture errors.

Setting the op and start time in the context will propagate it to any error events that get sent to Sentry, event if the trace does not get sent.

Explicitly capturing errors in the span will tie the Sentry events to this specific span, rather than tying them to the span/transaction where they would be handled otherwise.

Parameters:
Return type:

Generator[Span]