Interface TraceFunctionOptions<A, B>

interface TraceFunctionOptions<A, B> {
    optionsIndex?: number;
    getAttributesFromArgs?(args, attributes): TraceAttributes;
    getAttributesFromReturnValue?(value, attributes): TraceAttributes;
}

Type Parameters

  • A
  • B

Hierarchy (view full)

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.

Default

0

Methods