@web3-storage/toucan-js
Version:
Cloudflare Workers client for Sentry (fork)
12 lines • 527 B
TypeScript
import { Options } from './types';
/**
* Checks the given sample rate to make sure it is valid type and value (a boolean, or a number between 0 and 1).
*/
export declare function isValidSampleRate(rate: unknown): rate is number | boolean;
/**
* Determines if tracing is currently enabled.
*
* Tracing is enabled when at least one of `tracesSampleRate` and `tracesSampler` is defined in the SDK config.
*/
export declare function hasTracingEnabled(options: Options): boolean;
//# sourceMappingURL=utils.d.ts.map