UNPKG

@vtex/api

Version:
5 lines (4 loc) 396 B
import { ServiceContext } from '../typings'; export declare function recorderMiddleware(ctx: ServiceContext, next: () => Promise<void>): Promise<void>; export declare const addMetricsLoggerMiddleware: () => (ctx: ServiceContext, next: () => Promise<void>) => Promise<void>; export declare const prometheusLoggerMiddleware: () => (ctx: ServiceContext, next: () => Promise<void>) => Promise<void>;