getSpan static method

ISentrySpan? getSpan()

Gets the current active transaction or span bound to the scope. Returns null if performance is disabled in the options.

Implementation

static ISentrySpan? getSpan() => _hub.getSpan();