Files
tasq/node_modules/@opentelemetry/instrumentation-koa/build/src/utils.d.ts
T
2026-04-09 19:01:53 +08:00

15 lines
734 B
TypeScript

import { KoaContext, KoaLayerType, KoaInstrumentationConfig } from './types';
import { KoaMiddleware } from './internal-types';
import { Attributes } from '@opentelemetry/api';
export declare const getMiddlewareMetadata: (context: KoaContext, layer: KoaMiddleware, isRouter: boolean, layerPath?: string | RegExp | undefined) => {
attributes: Attributes;
name: string;
};
/**
* Check whether the given request is ignored by configuration
* @param [list] List of ignore patterns
* @param [onException] callback for doing something when an exception has
* occurred
*/
export declare const isLayerIgnored: (type: KoaLayerType, config?: KoaInstrumentationConfig | undefined) => boolean;
//# sourceMappingURL=utils.d.ts.map