Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/sentry/index.mjs>startInactiveSpan

The Official Sentry Deno SDK
Latest
function startInactiveSpan
import { startInactiveSpan } from "https://deno.land/x/sentry@8.37.1/index.mjs";

Creates a span. This span is not set as active, so will not get automatic instrumentation spans as children or be able to be accessed via Sentry.getActiveSpan().

If you want to create a span that is set as active, use startSpan.

This function will always return a span, it may just be a non-recording span if the span is not sampled or if tracing is disabled.

Parameters

options: StartSpanOptions