Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
22 lines
768 B
Plaintext
22 lines
768 B
Plaintext
import { Span } from '@opentelemetry/api';
|
|
import { InstrumentationConfig } from '@opentelemetry/instrumentation';
|
|
export interface FastifyRequestInfo {
|
|
request: any;
|
|
}
|
|
/**
|
|
* Function that can be used to add custom attributes to the current span
|
|
* @param span - The Fastify handler span.
|
|
* @param info - The Fastify request info object.
|
|
*/
|
|
export interface FastifyCustomAttributeFunction {
|
|
(span: Span, info: FastifyRequestInfo): void;
|
|
}
|
|
/**
|
|
* Options available for the Fastify Instrumentation
|
|
*/
|
|
export interface FastifyInstrumentationConfig extends InstrumentationConfig {
|
|
/** Function for adding custom attributes to each handler span */
|
|
requestHook?: FastifyCustomAttributeFunction;
|
|
}
|
|
//# sourceMappingURL=types.d.ts.map
|