mirror of
https://github.com/denoland/deno.git
synced 2024-12-25 00:29:09 -05:00
chore: deprecate Deno.metrics() API (#20684)
This API is providing hoops to jump through with undergoing migration to `#[op2]` macro. The overhead of supporting this API is non-trivial and besides internal use of it in test sanitizers is very rarely used in the wild.
This commit is contained in:
parent
3c0d6de155
commit
50a3209fff
1 changed files with 10 additions and 2 deletions
12
cli/tsc/dts/lib.deno.ns.d.ts
vendored
12
cli/tsc/dts/lib.deno.ns.d.ts
vendored
|
@ -3721,7 +3721,10 @@ declare namespace Deno {
|
||||||
*/
|
*/
|
||||||
export function truncateSync(name: string, len?: number): void;
|
export function truncateSync(name: string, len?: number): void;
|
||||||
|
|
||||||
/** @category Observability */
|
/** @category Observability
|
||||||
|
*
|
||||||
|
* @deprecated This API has been deprecated in Deno v1.37.1.
|
||||||
|
*/
|
||||||
export interface OpMetrics {
|
export interface OpMetrics {
|
||||||
opsDispatched: number;
|
opsDispatched: number;
|
||||||
opsDispatchedSync: number;
|
opsDispatchedSync: number;
|
||||||
|
@ -3736,7 +3739,10 @@ declare namespace Deno {
|
||||||
bytesReceived: number;
|
bytesReceived: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @category Observability */
|
/** @category Observability
|
||||||
|
*
|
||||||
|
* @deprecated This API has been deprecated in Deno v1.37.1.
|
||||||
|
*/
|
||||||
export interface Metrics extends OpMetrics {
|
export interface Metrics extends OpMetrics {
|
||||||
ops: Record<string, OpMetrics>;
|
ops: Record<string, OpMetrics>;
|
||||||
}
|
}
|
||||||
|
@ -3765,6 +3771,8 @@ declare namespace Deno {
|
||||||
* ```
|
* ```
|
||||||
*
|
*
|
||||||
* @category Observability
|
* @category Observability
|
||||||
|
*
|
||||||
|
* @deprecated This API has been deprecated in Deno v1.37.1.
|
||||||
*/
|
*/
|
||||||
export function metrics(): Metrics;
|
export function metrics(): Metrics;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue