@tigorhutasuhut/telemetry-js - v0.7.3
    Preparing search index...

    Interface WithTraceOptions

    Options for withTrace.

    interface WithTraceOptions {
        attributes?: Record<string, string>;
        carrier?: unknown;
        kind?: SpanKind;
        name?: string;
        parent?: string | Span;
    }
    Index

    Properties

    attributes?: Record<string, string>

    Initial span attributes.

    carrier?: unknown

    An opaque carrier object (e.g. incoming headers, workflow params) from which trace context is extracted using the globally registered textmap propagator.

    If both parent and carrier are provided, parent takes precedence. The carrier is only used when parent is not set.

    The value must be a non-null object whose string-valued properties are read by the propagator (e.g. { traceparent: "00-…", tracestate: "…" }). Non-object values are silently ignored.

    kind?: SpanKind

    Span kind (default: SpanKind.INTERNAL).

    name?: string

    Override auto-detected span name.

    parent?: string | Span

    Parent context — either an existing Span or a W3C traceparent string (e.g. "00-<traceId>-<spanId>-01").

    When omitted the current active context is inherited.