Skip to content

Commit 3e68da8

Browse files
authored
fix: update ai plugin typing (#6786)
1 parent dae2928 commit 3e68da8

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

docs/test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,7 @@ const openSearchOptions: plugins.opensearch = {
302302
},
303303
};
304304

305+
tracer.use('ai', true)
305306
tracer.use('amqp10');
306307
tracer.use('amqplib');
307308
tracer.use('anthropic');

index.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ interface Tracer extends opentracing.Tracer {
181181
/** @hidden */
182182
interface Plugins {
183183
"aerospike": tracer.plugins.aerospike;
184+
"ai": tracer.plugins.ai;
184185
"amqp10": tracer.plugins.amqp10;
185186
"amqplib": tracer.plugins.amqplib;
186187
"anthropic": tracer.plugins.anthropic;
@@ -1642,6 +1643,12 @@ declare namespace tracer {
16421643
*/
16431644
interface aerospike extends Instrumentation {}
16441645

1646+
/**
1647+
* This plugin automatically instruments the
1648+
* [Vercel AI SDK](https://ai-sdk.dev/docs/introduction) module.
1649+
*/
1650+
interface ai extends Instrumentation {}
1651+
16451652
/**
16461653
* This plugin automatically instruments the
16471654
* [amqp10](https://github.com/noodlefrenzy/node-amqp10) module.

0 commit comments

Comments
 (0)