@opentelemetry/instrumentation-hapi
Version:
OpenTelemetry instrumentation for `@hapi/hapi` http web application framework
18 lines • 1.2 kB
TypeScript
import { SpanAttributes } from '@opentelemetry/api';
import type * as Hapi from '@hapi/hapi';
import { HapiPluginObject, PatchableExtMethod, ServerExtDirectInput } from './internal-types';
export declare function getPluginName<T>(plugin: Hapi.Plugin<T>): string;
export declare const isLifecycleExtType: (variableToCheck: unknown) => variableToCheck is Hapi.ServerRequestExtType;
export declare const isLifecycleExtEventObj: (variableToCheck: unknown) => variableToCheck is Hapi.ServerExtEventsRequestObject;
export declare const isDirectExtInput: (variableToCheck: unknown) => variableToCheck is ServerExtDirectInput;
export declare const isPatchableExtMethod: (variableToCheck: PatchableExtMethod | PatchableExtMethod[]) => variableToCheck is PatchableExtMethod;
export declare const getRouteMetadata: (route: Hapi.ServerRoute, pluginName?: string) => {
attributes: SpanAttributes;
name: string;
};
export declare const getExtMetadata: (extPoint: Hapi.ServerRequestExtType, pluginName?: string) => {
attributes: SpanAttributes;
name: string;
};
export declare const getPluginFromInput: <T>(pluginObj: HapiPluginObject<T>) => Hapi.Plugin<T, void>;
//# sourceMappingURL=utils.d.ts.map