libp2p
    Preparing search index...

    Interface TraceGeneratorFunctionOptions<A, B, C>

    interface TraceGeneratorFunctionOptions<A, B, C = any> {
        optionsIndex?: number;
        getAttributesFromArgs(
            args: A,
            attributes: TraceAttributes,
        ): TraceAttributes;
        getAttributesFromReturnValue(
            value: B,
            attributes: TraceAttributes,
        ): TraceAttributes;
        getAttributesFromYieldedValue(
            value: C,
            attributes: TraceAttributes,
            index: number,
        ): TraceAttributes;
    }

    Type Parameters

    • A
    • B
    • C = any

    Hierarchy (View Summary)

    Index

    Properties

    optionsIndex?: number

    To construct a trace that spans multiple method invocations, it's necessary to pass the trace context onwards as part of the options object.

    Specify the index of the options object in the args array here.

    0
    

    Methods