Skip to content

Taxum / @taxum/core / middleware/trace / Trace

Class: Trace

Defined in: middleware/trace.ts:164

Implements

Constructors

Constructor

new Trace(inner, classifier, onRequest, onResponse, onFailure): Trace

Defined in: middleware/trace.ts:171

Parameters

inner

HttpService

classifier

Classifier

onRequest

OnRequest

onResponse

OnResponse

onFailure

OnFailure

Returns

Trace

Methods

invoke()

invoke(req): Promise<HttpResponse>

Defined in: middleware/trace.ts:185

Process the request and return the response asynchronously.

Parameters

req

HttpRequest

Returns

Promise<HttpResponse>

Implementation of

Service.invoke