@embrace-io/web-sdk
Version:
17 lines • 830 B
TypeScript
import { EmbraceInstrumentationBaseArgs } from "../../EmbraceInstrumentationBase/types.js";
//#region src/instrumentations/user-timing/UserTimingInstrumentation/types.d.ts
type UserTimingEntryFilter = string[] | ((entry: PerformanceMark | PerformanceMeasure) => boolean);
type UserTimingInstrumentationArgs = Pick<EmbraceInstrumentationBaseArgs, 'diag' | 'perf' | 'limitManager'> & {
/**
* Allowlist filter for mark and measure entries.
*
* - `string[]` — only entries whose name appears in the list are captured.
* - `(entry) => boolean` — return `true` to capture the entry, `false` to ignore it.
*
* When omitted all entries are captured.
*/
allowedEntries?: UserTimingEntryFilter;
};
//#endregion
export { UserTimingEntryFilter, UserTimingInstrumentationArgs };
//# sourceMappingURL=types.d.ts.map