File

shared/common/modules/apm/interfaces.ts

Index

Properties

Properties

filter
filter: ApmFunctionFilter<T>
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;
};

results matching ""

    No results matching ""