Deprecated
Use startSpan
instead.
import { trace } from "https://deno.land/x/sentry@7.100.1/index.d.ts";
Wraps a function with a transaction/span and finishes the span after the function is done.
Note that if you have not enabled tracing extensions via addTracingExtensions
or you didn't set tracesSampleRate
, this function will not generate spans
and the span
returned from the callback will be undefined.
This function is meant to be used internally and may break at any time. Use at your own risk.