Skip to content

Commit

Permalink
ts definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
juan-fernandez committed Jun 24, 2024
1 parent 7edbaf6 commit 482db61
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
9 changes: 8 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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 {}

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 482db61

Please sign in to comment.