import { startSpanManual } from "https://deno.land/x/sentry@8.39.0-beta.0/index.mjs";
Similar to Sentry.startSpan
. Wraps a function with a transaction/span, but does not finish the span
after the function is done automatically. You'll have to call span.end()
manually.
The created span is the active span and will be used as parent by other spans created inside the function
and can be accessed via Sentry.getActiveSpan()
, as long as the function is executed while the scope is active.
You'll always get a span passed to the callback, it may just be a non-recording span if the span is not sampled or if tracing is disabled.