@openiap/nodeapi / Exports / apiinstrumentation

Class: apiinstrumentation

Table of contents

Constructors

Methods

Constructors

constructor

new apiinstrumentation()

Methods

With

Static With<T>(spanname, traceId?, spanId?, traceFlags?, callback): Promise<T>

Type parameters

Name
T

Parameters

Name Type Default value
spanname string undefined
traceId string undefined
spanId string undefined
traceFlags TraceFlags TraceFlags.SAMPLED
callback (span: Span) => Promise<T> undefined

Returns

Promise<T>

Defined in

src/apiinstrumentation.ts:15


setparent

Static setparent(traceId?, spanId?, traceFlags?): Context

Parameters

Name Type Default value
traceId string undefined
spanId string undefined
traceFlags TraceFlags TraceFlags.SAMPLED

Returns

Context

Defined in

src/apiinstrumentation.ts:3