shared/common/modules/apm/interfaces.ts
Properties |
filter |
filter:
|
Type : ApmFunctionFilter<T>
|
import {CallHandler, ExecutionContext, NestInterceptor} from "@nestjs/common";
import {Observable} from "rxjs";
import {ApmService} from "./apm.service";
export type ApmFunctionFilter<T = any> = (payload: T) => void;
export interface ApmClassFilter<T = any> {
filter: ApmFunctionFilter<T>;
}
export type ApmFilter<T = any> = ApmClassFilter<T> | ApmFunctionFilter<T>;
export type ApmError = string | Error | { message: string; params: any[] };
export type TransactionDecoratorData = {
name: string;
};