Circle V2 API Docs
    Preparing search index...

    Type Alias WithSpanOptions

    type WithSpanOptions = {
        component?: string;
    }
    Index

    Properties

    Properties

    component?: string

    Sets a component span attribute used for slicing traces in Datadog (filtering, coloring, dashboards). All backend spans share a single Datadog service (api) because Vercel's OTLP forwarding sets service.name at the resource level and Datadog's hosted OTLP intake does not honor per-span service.name overrides. The component tag gives the per-layer separation we want without per-span service overrides.

    Components can be disabled at runtime via the OTEL_DISABLED_COMPONENTS env var (comma-separated). When disabled, withSpan runs fn without creating a new span.