From 482db61e9cc7e1ad7b8b21486db51c1a0dd983bf Mon Sep 17 00:00:00 2001 From: Juan Fernandez Date: Mon, 24 Jun 2024 11:37:18 +0200 Subject: [PATCH] ts definitions --- docs/test.ts | 2 ++ index.d.ts | 9 ++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/docs/test.ts b/docs/test.ts index 380bfd6bba9..9b11d344841 100644 --- a/docs/test.ts +++ b/docs/test.ts @@ -363,6 +363,8 @@ tracer.use('sharedb'); tracer.use('sharedb', sharedbOptions); tracer.use('tedious'); tracer.use('undici'); +tracer.use('vitest'); +tracer.use('vitest', { service: 'vitest-service' }); tracer.use('winston'); tracer.use('express', false) diff --git a/index.d.ts b/index.d.ts index d0b634f5dd8..7d5846f8af2 100644 --- a/index.d.ts +++ b/index.d.ts @@ -198,6 +198,7 @@ interface Plugins { "sharedb": tracer.plugins.sharedb; "tedious": tracer.plugins.tedious; "undici": tracer.plugins.undici; + "vitest": tracer.plugins.vitest; "winston": tracer.plugins.winston; } @@ -1556,7 +1557,7 @@ declare namespace tracer { /** * This plugin automatically instruments the - * [jest](https://github.com/facebook/jest) module. + * [jest](https://github.com/jestjs/jest) module. */ interface jest extends Integration {} @@ -1839,6 +1840,12 @@ declare namespace tracer { */ interface undici extends HttpClient {} + /** + * This plugin automatically instruments the + * [vitest](https://github.com/vitest-dev/vitest) module. + */ + interface vitest extends Integration {} + /** * This plugin patches the [winston](https://github.com/winstonjs/winston) * to automatically inject trace identifiers in log records when the