@zendesk/retrace
Version:
define and capture Product Operation Traces along with computed metrics with an optional friendly React beacon API
10 lines (9 loc) • 509 B
TypeScript
/**
* Copyright Zendesk, Inc.
*
* Use of this source code is governed under the Apache License, Version 2.0
* found at http://www.apache.org/licenses/LICENSE-2.0.
*/
import type { ActionLog } from './ActionLog';
import type { UseActionLogOptions } from './types';
export declare const useActionLog: <CustomMetadata extends Record<string, unknown> = Record<string, unknown>>({ id, actionLogCache, garbageCollectMs, ...actionLogOptions }: UseActionLogOptions<CustomMetadata>) => ActionLog<CustomMetadata>;