Skip to content

Commit

Permalink
refactor: add @deprecate annotation to deprecated functions
Browse files Browse the repository at this point in the history
  • Loading branch information
SevenOutman committed Feb 20, 2024
1 parent ee90b71 commit 49a4400
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,32 @@ import { startProfiling as _startProfiling } from './profiling';
export { start, stop } from './start';
export { listEnvVars } from './utils';

/**
* @deprecated Use generic start() function instead
*/
export const startMetrics = deprecate(
_startMetrics,
'startMetrics is deprecated. Use generic start() and stop() functions instead'
);

/**
* @deprecated Use generic start() function instead
*/
export const startProfiling = deprecate(
_startProfiling,
'startProfiling is deprecated. Use generic start() and stop() functions instead'
);

/**
* @deprecated Use generic start() function instead
*/
export const startTracing = deprecate(
_startTracing,
'startTracing is deprecated. Use generic start() and stop() functions instead'
);
/**
* @deprecated Use generic stop() function instead
*/
export const stopTracing = deprecate(
_stopTracing,
'stopTracing is deprecated. Use generic start() and stop() functions instead'
Expand Down

0 comments on commit 49a4400

Please sign in to comment.