Interface TraceGeneratorFunctionOptions<A, B, C>

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

Type Parameters

  • A
  • B
  • C = any

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