braintrust 3.23.1 → 3.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dev/dist/index.d.mts +11 -0
- package/dev/dist/index.d.ts +11 -0
- package/dev/dist/index.js +2881 -1518
- package/dev/dist/index.mjs +2298 -935
- package/dist/apply-auto-instrumentation.js +218 -195
- package/dist/apply-auto-instrumentation.mjs +30 -7
- package/dist/auto-instrumentations/bundler/esbuild.cjs +618 -444
- package/dist/auto-instrumentations/bundler/esbuild.mjs +2 -2
- package/dist/auto-instrumentations/bundler/next.cjs +618 -444
- package/dist/auto-instrumentations/bundler/next.mjs +3 -3
- package/dist/auto-instrumentations/bundler/rollup.cjs +618 -444
- package/dist/auto-instrumentations/bundler/rollup.mjs +2 -2
- package/dist/auto-instrumentations/bundler/vite.cjs +618 -444
- package/dist/auto-instrumentations/bundler/vite.d.mts +1 -1
- package/dist/auto-instrumentations/bundler/vite.d.ts +1 -1
- package/dist/auto-instrumentations/bundler/vite.mjs +2 -2
- package/dist/auto-instrumentations/bundler/webpack-loader.cjs +618 -444
- package/dist/auto-instrumentations/bundler/webpack.cjs +618 -444
- package/dist/auto-instrumentations/bundler/webpack.mjs +3 -3
- package/dist/auto-instrumentations/{chunk-KIMLYPRW.mjs → chunk-7P6563SW.mjs} +1 -1
- package/dist/auto-instrumentations/{chunk-YXLNSAMJ.mjs → chunk-CZ24KNHT.mjs} +591 -424
- package/dist/auto-instrumentations/{chunk-EXY7QCJD.mjs → chunk-JPVCUKTY.mjs} +30 -21
- package/dist/auto-instrumentations/hook.mjs +778 -457
- package/dist/auto-instrumentations/index.cjs +590 -424
- package/dist/auto-instrumentations/index.mjs +1 -1
- package/dist/browser.d.mts +138 -9
- package/dist/browser.d.ts +138 -9
- package/dist/browser.js +2700 -1011
- package/dist/browser.mjs +2700 -1011
- package/dist/{chunk-RBXD2KYN.mjs → chunk-2SANLSWX.mjs} +1577 -513
- package/dist/{chunk-36IPYKMG.mjs → chunk-ABR2QWDP.mjs} +704 -438
- package/dist/{chunk-B6ZQIAK3.js → chunk-GSIDVFE6.js} +2361 -1297
- package/dist/{chunk-CDIKAHDZ.js → chunk-P25IOOU4.js} +706 -440
- package/dist/cli.js +2307 -940
- package/dist/edge-light.js +2700 -1011
- package/dist/edge-light.mjs +2700 -1011
- package/dist/index.d.mts +138 -9
- package/dist/index.d.ts +138 -9
- package/dist/index.js +955 -551
- package/dist/index.mjs +493 -89
- package/dist/instrumentation/index.d.mts +135 -9
- package/dist/instrumentation/index.d.ts +135 -9
- package/dist/instrumentation/index.js +2554 -1009
- package/dist/instrumentation/index.mjs +2554 -1009
- package/dist/vitest-evals-reporter.js +17 -16
- package/dist/vitest-evals-reporter.mjs +3 -2
- package/dist/workerd.js +2700 -1011
- package/dist/workerd.mjs +2700 -1011
- package/package.json +4 -4
- package/util/dist/index.js +4 -0
- package/util/dist/index.mjs +4 -0
|
@@ -15,6 +15,7 @@ var DefaultChannel = class {
|
|
|
15
15
|
constructor(name) {
|
|
16
16
|
this.name = name;
|
|
17
17
|
}
|
|
18
|
+
name;
|
|
18
19
|
hasSubscribers = false;
|
|
19
20
|
subscribe(_subscription) {
|
|
20
21
|
}
|
|
@@ -100,7 +101,8 @@ var isomorph_default = iso;
|
|
|
100
101
|
function channel(spec) {
|
|
101
102
|
return spec;
|
|
102
103
|
}
|
|
103
|
-
function defineChannels(pkg, channels) {
|
|
104
|
+
function defineChannels(pkg, channels, options) {
|
|
105
|
+
const { instrumentationName } = options;
|
|
104
106
|
return Object.fromEntries(
|
|
105
107
|
Object.entries(channels).map(([key, spec]) => {
|
|
106
108
|
const fullChannelName = `orchestrion:${pkg}:${spec.channelName}`;
|
|
@@ -113,6 +115,7 @@ function defineChannels(pkg, channels) {
|
|
|
113
115
|
key,
|
|
114
116
|
{
|
|
115
117
|
...asyncSpec,
|
|
118
|
+
instrumentationName,
|
|
116
119
|
tracingChannel: tracingChannel2,
|
|
117
120
|
tracePromise: (fn, context) => tracingChannel2().tracePromise(
|
|
118
121
|
fn,
|
|
@@ -130,6 +133,7 @@ function defineChannels(pkg, channels) {
|
|
|
130
133
|
key,
|
|
131
134
|
{
|
|
132
135
|
...syncSpec,
|
|
136
|
+
instrumentationName,
|
|
133
137
|
tracingChannel,
|
|
134
138
|
traceSync: (fn, context) => tracingChannel().traceSync(
|
|
135
139
|
fn,
|
|
@@ -142,45 +146,79 @@ function defineChannels(pkg, channels) {
|
|
|
142
146
|
);
|
|
143
147
|
}
|
|
144
148
|
|
|
149
|
+
// src/span-origin.ts
|
|
150
|
+
var INSTRUMENTATION_NAMES = {
|
|
151
|
+
AI_SDK: "ai-sdk",
|
|
152
|
+
ANTHROPIC: "anthropic",
|
|
153
|
+
BEDROCK_RUNTIME: "bedrock-runtime",
|
|
154
|
+
BRAINTRUST_JS_LOGGER: "braintrust-js-logger",
|
|
155
|
+
CLAUDE_AGENT_SDK: "claude-agent-sdk",
|
|
156
|
+
COHERE: "cohere",
|
|
157
|
+
CURSOR_SDK: "cursor-sdk",
|
|
158
|
+
EVE: "eve",
|
|
159
|
+
FLUE: "flue",
|
|
160
|
+
GENKIT: "genkit",
|
|
161
|
+
GITHUB_COPILOT: "github-copilot",
|
|
162
|
+
GOOGLE_ADK: "google-adk",
|
|
163
|
+
GOOGLE_GENAI: "google-genai",
|
|
164
|
+
GROQ: "groq",
|
|
165
|
+
HUGGINGFACE: "huggingface",
|
|
166
|
+
LANGCHAIN: "langchain",
|
|
167
|
+
LANGSMITH: "langsmith",
|
|
168
|
+
MASTRA: "mastra",
|
|
169
|
+
MISTRAL: "mistral",
|
|
170
|
+
OPENAI: "openai",
|
|
171
|
+
OPENAI_AGENTS: "openai-agents",
|
|
172
|
+
OPENAI_CODEX: "openai-codex",
|
|
173
|
+
OPENROUTER: "openrouter",
|
|
174
|
+
OPENROUTER_AGENT: "openrouter-agent",
|
|
175
|
+
PI_CODING_AGENT: "pi-coding-agent",
|
|
176
|
+
STRANDS_AGENT_SDK: "strands-agent-sdk"
|
|
177
|
+
};
|
|
178
|
+
|
|
145
179
|
// src/instrumentation/plugins/openai-channels.ts
|
|
146
|
-
var openAIChannels = defineChannels(
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
180
|
+
var openAIChannels = defineChannels(
|
|
181
|
+
"openai",
|
|
182
|
+
{
|
|
183
|
+
chatCompletionsCreate: channel({
|
|
184
|
+
channelName: "chat.completions.create",
|
|
185
|
+
kind: "async"
|
|
186
|
+
}),
|
|
187
|
+
embeddingsCreate: channel({
|
|
188
|
+
channelName: "embeddings.create",
|
|
189
|
+
kind: "async"
|
|
190
|
+
}),
|
|
191
|
+
betaChatCompletionsParse: channel({
|
|
192
|
+
channelName: "beta.chat.completions.parse",
|
|
193
|
+
kind: "async"
|
|
194
|
+
}),
|
|
195
|
+
betaChatCompletionsStream: channel({
|
|
196
|
+
channelName: "beta.chat.completions.stream",
|
|
197
|
+
kind: "sync-stream"
|
|
198
|
+
}),
|
|
199
|
+
moderationsCreate: channel({
|
|
200
|
+
channelName: "moderations.create",
|
|
201
|
+
kind: "async"
|
|
202
|
+
}),
|
|
203
|
+
responsesCreate: channel({
|
|
204
|
+
channelName: "responses.create",
|
|
205
|
+
kind: "async"
|
|
206
|
+
}),
|
|
207
|
+
responsesStream: channel({
|
|
208
|
+
channelName: "responses.stream",
|
|
209
|
+
kind: "sync-stream"
|
|
210
|
+
}),
|
|
211
|
+
responsesParse: channel({
|
|
212
|
+
channelName: "responses.parse",
|
|
213
|
+
kind: "async"
|
|
214
|
+
}),
|
|
215
|
+
responsesCompact: channel({
|
|
216
|
+
channelName: "responses.compact",
|
|
217
|
+
kind: "async"
|
|
218
|
+
})
|
|
219
|
+
},
|
|
220
|
+
{ instrumentationName: INSTRUMENTATION_NAMES.OPENAI }
|
|
221
|
+
);
|
|
184
222
|
|
|
185
223
|
// src/auto-instrumentations/configs/openai.ts
|
|
186
224
|
var openaiConfigs = [
|
|
@@ -362,16 +400,20 @@ var openaiConfigs = [
|
|
|
362
400
|
];
|
|
363
401
|
|
|
364
402
|
// src/instrumentation/plugins/openai-codex-channels.ts
|
|
365
|
-
var openAICodexChannels = defineChannels(
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
403
|
+
var openAICodexChannels = defineChannels(
|
|
404
|
+
"@openai/codex-sdk",
|
|
405
|
+
{
|
|
406
|
+
run: channel({
|
|
407
|
+
channelName: "Thread.run",
|
|
408
|
+
kind: "async"
|
|
409
|
+
}),
|
|
410
|
+
runStreamed: channel({
|
|
411
|
+
channelName: "Thread.runStreamed",
|
|
412
|
+
kind: "async"
|
|
413
|
+
})
|
|
414
|
+
},
|
|
415
|
+
{ instrumentationName: INSTRUMENTATION_NAMES.OPENAI_CODEX }
|
|
416
|
+
);
|
|
375
417
|
|
|
376
418
|
// src/auto-instrumentations/configs/openai-codex.ts
|
|
377
419
|
var openAICodexVersionRange = ">=0.128.0 <1.0.0";
|
|
@@ -405,20 +447,24 @@ var openAICodexConfigs = [
|
|
|
405
447
|
];
|
|
406
448
|
|
|
407
449
|
// src/instrumentation/plugins/anthropic-channels.ts
|
|
408
|
-
var anthropicChannels = defineChannels(
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
450
|
+
var anthropicChannels = defineChannels(
|
|
451
|
+
"@anthropic-ai/sdk",
|
|
452
|
+
{
|
|
453
|
+
messagesCreate: channel({
|
|
454
|
+
channelName: "messages.create",
|
|
455
|
+
kind: "async"
|
|
456
|
+
}),
|
|
457
|
+
betaMessagesCreate: channel({
|
|
458
|
+
channelName: "beta.messages.create",
|
|
459
|
+
kind: "async"
|
|
460
|
+
}),
|
|
461
|
+
betaMessagesToolRunner: channel({
|
|
462
|
+
channelName: "beta.messages.toolRunner",
|
|
463
|
+
kind: "sync-stream"
|
|
464
|
+
})
|
|
465
|
+
},
|
|
466
|
+
{ instrumentationName: INSTRUMENTATION_NAMES.ANTHROPIC }
|
|
467
|
+
);
|
|
422
468
|
|
|
423
469
|
// src/auto-instrumentations/configs/anthropic.ts
|
|
424
470
|
var anthropicConfigs = [
|
|
@@ -541,15 +587,27 @@ var clientSendChannel = channel({
|
|
|
541
587
|
channelName: "client.send",
|
|
542
588
|
kind: "async"
|
|
543
589
|
});
|
|
544
|
-
var bedrockRuntimeChannels = defineChannels(
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
}
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
590
|
+
var bedrockRuntimeChannels = defineChannels(
|
|
591
|
+
"aws-bedrock-runtime",
|
|
592
|
+
{
|
|
593
|
+
clientSend: clientSendChannel
|
|
594
|
+
},
|
|
595
|
+
{ instrumentationName: INSTRUMENTATION_NAMES.BEDROCK_RUNTIME }
|
|
596
|
+
);
|
|
597
|
+
var smithyCoreChannels = defineChannels(
|
|
598
|
+
"@smithy/core",
|
|
599
|
+
{
|
|
600
|
+
clientSend: clientSendChannel
|
|
601
|
+
},
|
|
602
|
+
{ instrumentationName: INSTRUMENTATION_NAMES.BEDROCK_RUNTIME }
|
|
603
|
+
);
|
|
604
|
+
var smithyClientChannels = defineChannels(
|
|
605
|
+
"@smithy/smithy-client",
|
|
606
|
+
{
|
|
607
|
+
clientSend: clientSendChannel
|
|
608
|
+
},
|
|
609
|
+
{ instrumentationName: INSTRUMENTATION_NAMES.BEDROCK_RUNTIME }
|
|
610
|
+
);
|
|
553
611
|
|
|
554
612
|
// src/auto-instrumentations/configs/bedrock-runtime.ts
|
|
555
613
|
var bedrockRuntimeConfigs = [
|
|
@@ -608,77 +666,127 @@ var bedrockRuntimeConfigs = [
|
|
|
608
666
|
];
|
|
609
667
|
|
|
610
668
|
// src/instrumentation/plugins/ai-sdk-channels.ts
|
|
611
|
-
var aiSDKChannels = defineChannels(
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
669
|
+
var aiSDKChannels = defineChannels(
|
|
670
|
+
"ai",
|
|
671
|
+
{
|
|
672
|
+
generateText: channel({
|
|
673
|
+
channelName: "generateText",
|
|
674
|
+
kind: "async"
|
|
675
|
+
}),
|
|
676
|
+
streamText: channel({
|
|
677
|
+
channelName: "streamText",
|
|
678
|
+
kind: "async"
|
|
679
|
+
}),
|
|
680
|
+
streamTextSync: channel({
|
|
681
|
+
channelName: "streamText.sync",
|
|
682
|
+
kind: "sync-stream"
|
|
683
|
+
}),
|
|
684
|
+
generateObject: channel({
|
|
685
|
+
channelName: "generateObject",
|
|
686
|
+
kind: "async"
|
|
687
|
+
}),
|
|
688
|
+
streamObject: channel({
|
|
689
|
+
channelName: "streamObject",
|
|
690
|
+
kind: "async"
|
|
691
|
+
}),
|
|
692
|
+
streamObjectSync: channel({
|
|
693
|
+
channelName: "streamObject.sync",
|
|
694
|
+
kind: "sync-stream"
|
|
695
|
+
}),
|
|
696
|
+
embed: channel({
|
|
638
697
|
channelName: "embed",
|
|
639
698
|
kind: "async"
|
|
640
|
-
}
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
}
|
|
678
|
-
}
|
|
699
|
+
}),
|
|
700
|
+
embedMany: channel({
|
|
701
|
+
channelName: "embedMany",
|
|
702
|
+
kind: "async"
|
|
703
|
+
}),
|
|
704
|
+
rerank: channel({
|
|
705
|
+
channelName: "rerank",
|
|
706
|
+
kind: "async"
|
|
707
|
+
}),
|
|
708
|
+
agentGenerate: channel({
|
|
709
|
+
channelName: "Agent.generate",
|
|
710
|
+
kind: "async"
|
|
711
|
+
}),
|
|
712
|
+
agentStream: channel({
|
|
713
|
+
channelName: "Agent.stream",
|
|
714
|
+
kind: "async"
|
|
715
|
+
}),
|
|
716
|
+
agentStreamSync: channel({
|
|
717
|
+
channelName: "Agent.stream.sync",
|
|
718
|
+
kind: "sync-stream"
|
|
719
|
+
}),
|
|
720
|
+
toolLoopAgentGenerate: channel({
|
|
721
|
+
channelName: "ToolLoopAgent.generate",
|
|
722
|
+
kind: "async"
|
|
723
|
+
}),
|
|
724
|
+
toolLoopAgentStream: channel({
|
|
725
|
+
channelName: "ToolLoopAgent.stream",
|
|
726
|
+
kind: "async"
|
|
727
|
+
}),
|
|
728
|
+
workflowAgentStream: channel({
|
|
729
|
+
channelName: "WorkflowAgent.stream",
|
|
730
|
+
kind: "async"
|
|
731
|
+
}),
|
|
732
|
+
v7CreateTelemetryDispatcher: channel({
|
|
733
|
+
channelName: "createTelemetryDispatcher",
|
|
734
|
+
kind: "sync-stream"
|
|
735
|
+
})
|
|
736
|
+
},
|
|
737
|
+
{ instrumentationName: INSTRUMENTATION_NAMES.AI_SDK }
|
|
738
|
+
);
|
|
739
|
+
var harnessAgentChannels = defineChannels(
|
|
740
|
+
"@ai-sdk/harness",
|
|
741
|
+
{
|
|
742
|
+
createSession: channel({
|
|
743
|
+
channelName: "HarnessAgent.createSession",
|
|
744
|
+
kind: "async"
|
|
745
|
+
}),
|
|
746
|
+
generate: channel({
|
|
747
|
+
channelName: "HarnessAgent.generate",
|
|
748
|
+
kind: "async"
|
|
749
|
+
}),
|
|
750
|
+
stream: channel({
|
|
751
|
+
channelName: "HarnessAgent.stream",
|
|
752
|
+
kind: "async"
|
|
753
|
+
}),
|
|
754
|
+
continueGenerate: channel({
|
|
755
|
+
channelName: "HarnessAgent.continueGenerate",
|
|
756
|
+
kind: "async"
|
|
757
|
+
}),
|
|
758
|
+
continueStream: channel({
|
|
759
|
+
channelName: "HarnessAgent.continueStream",
|
|
760
|
+
kind: "async"
|
|
761
|
+
})
|
|
762
|
+
},
|
|
763
|
+
{ instrumentationName: INSTRUMENTATION_NAMES.AI_SDK }
|
|
764
|
+
);
|
|
679
765
|
|
|
680
766
|
// src/auto-instrumentations/configs/ai-sdk.ts
|
|
681
767
|
var aiSDKConfigs = [
|
|
768
|
+
// HarnessAgent turn methods are published only from the package's ESM
|
|
769
|
+
// `./agent` entrypoint. The compiled class expression is anonymous, so match
|
|
770
|
+
// the first async method with each public name instead of a class name.
|
|
771
|
+
...[
|
|
772
|
+
["createSession", harnessAgentChannels.createSession.channelName],
|
|
773
|
+
["generate", harnessAgentChannels.generate.channelName],
|
|
774
|
+
["stream", harnessAgentChannels.stream.channelName],
|
|
775
|
+
["continueGenerate", harnessAgentChannels.continueGenerate.channelName],
|
|
776
|
+
["continueStream", harnessAgentChannels.continueStream.channelName]
|
|
777
|
+
].map(([methodName, channelName]) => ({
|
|
778
|
+
channelName,
|
|
779
|
+
module: {
|
|
780
|
+
name: "@ai-sdk/harness",
|
|
781
|
+
versionRange: ">=1.0.0 <2.0.0",
|
|
782
|
+
filePath: "dist/agent/index.js"
|
|
783
|
+
},
|
|
784
|
+
functionQuery: {
|
|
785
|
+
methodName,
|
|
786
|
+
kind: "Async",
|
|
787
|
+
index: 0
|
|
788
|
+
}
|
|
789
|
+
})),
|
|
682
790
|
// generateText - async function
|
|
683
791
|
{
|
|
684
792
|
channelName: aiSDKChannels.generateText.channelName,
|
|
@@ -1057,7 +1165,8 @@ var claudeAgentSDKChannels = defineChannels(
|
|
|
1057
1165
|
channelName: "query",
|
|
1058
1166
|
kind: "sync-stream"
|
|
1059
1167
|
})
|
|
1060
|
-
}
|
|
1168
|
+
},
|
|
1169
|
+
{ instrumentationName: INSTRUMENTATION_NAMES.CLAUDE_AGENT_SDK }
|
|
1061
1170
|
);
|
|
1062
1171
|
|
|
1063
1172
|
// src/auto-instrumentations/configs/claude-agent-sdk.ts
|
|
@@ -1092,24 +1201,28 @@ var claudeAgentSDKConfigs = [
|
|
|
1092
1201
|
];
|
|
1093
1202
|
|
|
1094
1203
|
// src/instrumentation/plugins/cursor-sdk-channels.ts
|
|
1095
|
-
var cursorSDKChannels = defineChannels(
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1204
|
+
var cursorSDKChannels = defineChannels(
|
|
1205
|
+
"@cursor/sdk",
|
|
1206
|
+
{
|
|
1207
|
+
create: channel({
|
|
1208
|
+
channelName: "Agent.create",
|
|
1209
|
+
kind: "async"
|
|
1210
|
+
}),
|
|
1211
|
+
resume: channel({
|
|
1212
|
+
channelName: "Agent.resume",
|
|
1213
|
+
kind: "async"
|
|
1214
|
+
}),
|
|
1215
|
+
prompt: channel({
|
|
1216
|
+
channelName: "Agent.prompt",
|
|
1217
|
+
kind: "async"
|
|
1218
|
+
}),
|
|
1219
|
+
send: channel({
|
|
1220
|
+
channelName: "agent.send",
|
|
1221
|
+
kind: "async"
|
|
1222
|
+
})
|
|
1223
|
+
},
|
|
1224
|
+
{ instrumentationName: INSTRUMENTATION_NAMES.CURSOR_SDK }
|
|
1225
|
+
);
|
|
1113
1226
|
|
|
1114
1227
|
// src/auto-instrumentations/configs/cursor-sdk.ts
|
|
1115
1228
|
var cursorSDKVersionRange = ">=1.0.7 <2.0.0";
|
|
@@ -1157,24 +1270,28 @@ var cursorSDKConfigs = cursorSDKEntrypoints.flatMap((filePath) => [
|
|
|
1157
1270
|
]);
|
|
1158
1271
|
|
|
1159
1272
|
// src/instrumentation/plugins/openai-agents-channels.ts
|
|
1160
|
-
var openAIAgentsCoreChannels = defineChannels(
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1273
|
+
var openAIAgentsCoreChannels = defineChannels(
|
|
1274
|
+
"@openai/agents-core",
|
|
1275
|
+
{
|
|
1276
|
+
onTraceStart: channel({
|
|
1277
|
+
channelName: "tracing.processor.onTraceStart",
|
|
1278
|
+
kind: "async"
|
|
1279
|
+
}),
|
|
1280
|
+
onTraceEnd: channel({
|
|
1281
|
+
channelName: "tracing.processor.onTraceEnd",
|
|
1282
|
+
kind: "async"
|
|
1283
|
+
}),
|
|
1284
|
+
onSpanStart: channel({
|
|
1285
|
+
channelName: "tracing.processor.onSpanStart",
|
|
1286
|
+
kind: "async"
|
|
1287
|
+
}),
|
|
1288
|
+
onSpanEnd: channel({
|
|
1289
|
+
channelName: "tracing.processor.onSpanEnd",
|
|
1290
|
+
kind: "async"
|
|
1291
|
+
})
|
|
1292
|
+
},
|
|
1293
|
+
{ instrumentationName: INSTRUMENTATION_NAMES.OPENAI_AGENTS }
|
|
1294
|
+
);
|
|
1178
1295
|
|
|
1179
1296
|
// src/auto-instrumentations/configs/openai-agents.ts
|
|
1180
1297
|
var lifecycleMethods = [
|
|
@@ -1202,24 +1319,28 @@ var openAIAgentsCoreConfigs = lifecycleMethods.flatMap(
|
|
|
1202
1319
|
);
|
|
1203
1320
|
|
|
1204
1321
|
// src/instrumentation/plugins/google-genai-channels.ts
|
|
1205
|
-
var googleGenAIChannels = defineChannels(
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1322
|
+
var googleGenAIChannels = defineChannels(
|
|
1323
|
+
"@google/genai",
|
|
1324
|
+
{
|
|
1325
|
+
generateContent: channel({
|
|
1326
|
+
channelName: "models.generateContent",
|
|
1327
|
+
kind: "async"
|
|
1328
|
+
}),
|
|
1329
|
+
generateContentStream: channel({
|
|
1330
|
+
channelName: "models.generateContentStream",
|
|
1331
|
+
kind: "async"
|
|
1332
|
+
}),
|
|
1333
|
+
embedContent: channel({
|
|
1334
|
+
channelName: "models.embedContent",
|
|
1335
|
+
kind: "async"
|
|
1336
|
+
}),
|
|
1337
|
+
interactionsCreate: channel({
|
|
1338
|
+
channelName: "interactions.create",
|
|
1339
|
+
kind: "async"
|
|
1340
|
+
})
|
|
1341
|
+
},
|
|
1342
|
+
{ instrumentationName: INSTRUMENTATION_NAMES.GOOGLE_GENAI }
|
|
1343
|
+
);
|
|
1223
1344
|
|
|
1224
1345
|
// src/auto-instrumentations/configs/google-genai.ts
|
|
1225
1346
|
var googleGenAIConfigs = [
|
|
@@ -1299,28 +1420,32 @@ var googleGenAIConfigs = [
|
|
|
1299
1420
|
];
|
|
1300
1421
|
|
|
1301
1422
|
// src/instrumentation/plugins/huggingface-channels.ts
|
|
1302
|
-
var huggingFaceChannels = defineChannels(
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1423
|
+
var huggingFaceChannels = defineChannels(
|
|
1424
|
+
"@huggingface/inference",
|
|
1425
|
+
{
|
|
1426
|
+
chatCompletion: channel({
|
|
1427
|
+
channelName: "chatCompletion",
|
|
1428
|
+
kind: "async"
|
|
1429
|
+
}),
|
|
1430
|
+
chatCompletionStream: channel({
|
|
1431
|
+
channelName: "chatCompletionStream",
|
|
1432
|
+
kind: "sync-stream"
|
|
1433
|
+
}),
|
|
1434
|
+
textGeneration: channel({
|
|
1435
|
+
channelName: "textGeneration",
|
|
1436
|
+
kind: "async"
|
|
1437
|
+
}),
|
|
1438
|
+
textGenerationStream: channel({
|
|
1439
|
+
channelName: "textGenerationStream",
|
|
1440
|
+
kind: "sync-stream"
|
|
1441
|
+
}),
|
|
1442
|
+
featureExtraction: channel({
|
|
1443
|
+
channelName: "featureExtraction",
|
|
1444
|
+
kind: "async"
|
|
1445
|
+
})
|
|
1446
|
+
},
|
|
1447
|
+
{ instrumentationName: INSTRUMENTATION_NAMES.HUGGINGFACE }
|
|
1448
|
+
);
|
|
1324
1449
|
|
|
1325
1450
|
// src/auto-instrumentations/configs/huggingface.ts
|
|
1326
1451
|
var huggingFaceConfigs = [
|
|
@@ -1567,20 +1692,24 @@ var huggingFaceConfigs = [
|
|
|
1567
1692
|
];
|
|
1568
1693
|
|
|
1569
1694
|
// src/instrumentation/plugins/openrouter-agent-channels.ts
|
|
1570
|
-
var openRouterAgentChannels = defineChannels(
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1695
|
+
var openRouterAgentChannels = defineChannels(
|
|
1696
|
+
"@openrouter/agent",
|
|
1697
|
+
{
|
|
1698
|
+
callModel: channel({
|
|
1699
|
+
channelName: "callModel",
|
|
1700
|
+
kind: "sync-stream"
|
|
1701
|
+
}),
|
|
1702
|
+
callModelTurn: channel({
|
|
1703
|
+
channelName: "callModel.turn",
|
|
1704
|
+
kind: "async"
|
|
1705
|
+
}),
|
|
1706
|
+
toolExecute: channel({
|
|
1707
|
+
channelName: "tool.execute",
|
|
1708
|
+
kind: "async"
|
|
1709
|
+
})
|
|
1710
|
+
},
|
|
1711
|
+
{ instrumentationName: INSTRUMENTATION_NAMES.OPENROUTER_AGENT }
|
|
1712
|
+
);
|
|
1584
1713
|
|
|
1585
1714
|
// src/auto-instrumentations/configs/openrouter-agent.ts
|
|
1586
1715
|
var openRouterAgentConfigs = [
|
|
@@ -1599,38 +1728,40 @@ var openRouterAgentConfigs = [
|
|
|
1599
1728
|
];
|
|
1600
1729
|
|
|
1601
1730
|
// src/instrumentation/plugins/openrouter-channels.ts
|
|
1602
|
-
var openRouterChannels = defineChannels(
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1731
|
+
var openRouterChannels = defineChannels(
|
|
1732
|
+
"@openrouter/sdk",
|
|
1733
|
+
{
|
|
1734
|
+
chatSend: channel({
|
|
1735
|
+
channelName: "chat.send",
|
|
1736
|
+
kind: "async"
|
|
1737
|
+
}),
|
|
1738
|
+
embeddingsGenerate: channel({
|
|
1739
|
+
channelName: "embeddings.generate",
|
|
1740
|
+
kind: "async"
|
|
1741
|
+
}),
|
|
1742
|
+
rerankRerank: channel({
|
|
1613
1743
|
channelName: "rerank.rerank",
|
|
1614
1744
|
kind: "async"
|
|
1615
|
-
}
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
}
|
|
1633
|
-
}
|
|
1745
|
+
}),
|
|
1746
|
+
betaResponsesSend: channel({
|
|
1747
|
+
channelName: "beta.responses.send",
|
|
1748
|
+
kind: "async"
|
|
1749
|
+
}),
|
|
1750
|
+
callModel: channel({
|
|
1751
|
+
channelName: "callModel",
|
|
1752
|
+
kind: "sync-stream"
|
|
1753
|
+
}),
|
|
1754
|
+
callModelTurn: channel({
|
|
1755
|
+
channelName: "callModel.turn",
|
|
1756
|
+
kind: "async"
|
|
1757
|
+
}),
|
|
1758
|
+
toolExecute: channel({
|
|
1759
|
+
channelName: "tool.execute",
|
|
1760
|
+
kind: "async"
|
|
1761
|
+
})
|
|
1762
|
+
},
|
|
1763
|
+
{ instrumentationName: INSTRUMENTATION_NAMES.OPENROUTER }
|
|
1764
|
+
);
|
|
1634
1765
|
|
|
1635
1766
|
// src/auto-instrumentations/configs/openrouter.ts
|
|
1636
1767
|
var openRouterConfigs = [
|
|
@@ -1638,7 +1769,7 @@ var openRouterConfigs = [
|
|
|
1638
1769
|
channelName: openRouterChannels.chatSend.channelName,
|
|
1639
1770
|
module: {
|
|
1640
1771
|
name: "@openrouter/sdk",
|
|
1641
|
-
versionRange: ">=0.9.11 <
|
|
1772
|
+
versionRange: ">=0.9.11 <2.0.0",
|
|
1642
1773
|
filePath: "esm/sdk/chat.js"
|
|
1643
1774
|
},
|
|
1644
1775
|
functionQuery: {
|
|
@@ -1651,7 +1782,7 @@ var openRouterConfigs = [
|
|
|
1651
1782
|
channelName: openRouterChannels.embeddingsGenerate.channelName,
|
|
1652
1783
|
module: {
|
|
1653
1784
|
name: "@openrouter/sdk",
|
|
1654
|
-
versionRange: ">=0.9.11 <
|
|
1785
|
+
versionRange: ">=0.9.11 <2.0.0",
|
|
1655
1786
|
filePath: "esm/sdk/embeddings.js"
|
|
1656
1787
|
},
|
|
1657
1788
|
functionQuery: {
|
|
@@ -1664,7 +1795,7 @@ var openRouterConfigs = [
|
|
|
1664
1795
|
channelName: openRouterChannels.rerankRerank.channelName,
|
|
1665
1796
|
module: {
|
|
1666
1797
|
name: "@openrouter/sdk",
|
|
1667
|
-
versionRange: ">=0.12.0 <
|
|
1798
|
+
versionRange: ">=0.12.0 <2.0.0",
|
|
1668
1799
|
filePath: "esm/sdk/rerank.js"
|
|
1669
1800
|
},
|
|
1670
1801
|
functionQuery: {
|
|
@@ -1677,7 +1808,7 @@ var openRouterConfigs = [
|
|
|
1677
1808
|
channelName: openRouterChannels.betaResponsesSend.channelName,
|
|
1678
1809
|
module: {
|
|
1679
1810
|
name: "@openrouter/sdk",
|
|
1680
|
-
versionRange: ">=0.9.11 <
|
|
1811
|
+
versionRange: ">=0.9.11 <2.0.0",
|
|
1681
1812
|
filePath: "esm/sdk/responses.js"
|
|
1682
1813
|
},
|
|
1683
1814
|
functionQuery: {
|
|
@@ -1690,7 +1821,7 @@ var openRouterConfigs = [
|
|
|
1690
1821
|
channelName: openRouterChannels.callModel.channelName,
|
|
1691
1822
|
module: {
|
|
1692
1823
|
name: "@openrouter/sdk",
|
|
1693
|
-
versionRange: ">=0.9.11 <
|
|
1824
|
+
versionRange: ">=0.9.11 <2.0.0",
|
|
1694
1825
|
filePath: "esm/sdk/sdk.js"
|
|
1695
1826
|
},
|
|
1696
1827
|
functionQuery: {
|
|
@@ -1702,52 +1833,56 @@ var openRouterConfigs = [
|
|
|
1702
1833
|
];
|
|
1703
1834
|
|
|
1704
1835
|
// src/instrumentation/plugins/mistral-channels.ts
|
|
1705
|
-
var mistralChannels = defineChannels(
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1836
|
+
var mistralChannels = defineChannels(
|
|
1837
|
+
"@mistralai/mistralai",
|
|
1838
|
+
{
|
|
1839
|
+
chatComplete: channel({
|
|
1840
|
+
channelName: "chat.complete",
|
|
1841
|
+
kind: "async"
|
|
1842
|
+
}),
|
|
1843
|
+
chatStream: channel({
|
|
1844
|
+
channelName: "chat.stream",
|
|
1845
|
+
kind: "async"
|
|
1846
|
+
}),
|
|
1847
|
+
embeddingsCreate: channel({
|
|
1848
|
+
channelName: "embeddings.create",
|
|
1849
|
+
kind: "async"
|
|
1850
|
+
}),
|
|
1851
|
+
classifiersModerate: channel({
|
|
1852
|
+
channelName: "classifiers.moderate",
|
|
1853
|
+
kind: "async"
|
|
1854
|
+
}),
|
|
1855
|
+
classifiersModerateChat: channel({
|
|
1856
|
+
channelName: "classifiers.moderateChat",
|
|
1857
|
+
kind: "async"
|
|
1858
|
+
}),
|
|
1859
|
+
classifiersClassify: channel({
|
|
1860
|
+
channelName: "classifiers.classify",
|
|
1861
|
+
kind: "async"
|
|
1862
|
+
}),
|
|
1863
|
+
classifiersClassifyChat: channel({
|
|
1864
|
+
channelName: "classifiers.classifyChat",
|
|
1865
|
+
kind: "async"
|
|
1866
|
+
}),
|
|
1867
|
+
fimComplete: channel({
|
|
1868
|
+
channelName: "fim.complete",
|
|
1869
|
+
kind: "async"
|
|
1870
|
+
}),
|
|
1871
|
+
fimStream: channel({
|
|
1872
|
+
channelName: "fim.stream",
|
|
1873
|
+
kind: "async"
|
|
1874
|
+
}),
|
|
1875
|
+
agentsComplete: channel({
|
|
1876
|
+
channelName: "agents.complete",
|
|
1877
|
+
kind: "async"
|
|
1878
|
+
}),
|
|
1879
|
+
agentsStream: channel({
|
|
1880
|
+
channelName: "agents.stream",
|
|
1881
|
+
kind: "async"
|
|
1882
|
+
})
|
|
1883
|
+
},
|
|
1884
|
+
{ instrumentationName: INSTRUMENTATION_NAMES.MISTRAL }
|
|
1885
|
+
);
|
|
1751
1886
|
|
|
1752
1887
|
// src/auto-instrumentations/configs/mistral.ts
|
|
1753
1888
|
var mistralConfigs = [
|
|
@@ -2040,20 +2175,24 @@ var mistralConfigs = [
|
|
|
2040
2175
|
];
|
|
2041
2176
|
|
|
2042
2177
|
// src/instrumentation/plugins/google-adk-channels.ts
|
|
2043
|
-
var googleADKChannels = defineChannels(
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2178
|
+
var googleADKChannels = defineChannels(
|
|
2179
|
+
"@google/adk",
|
|
2180
|
+
{
|
|
2181
|
+
runnerRunAsync: channel({
|
|
2182
|
+
channelName: "runner.runAsync",
|
|
2183
|
+
kind: "sync-stream"
|
|
2184
|
+
}),
|
|
2185
|
+
agentRunAsync: channel({
|
|
2186
|
+
channelName: "agent.runAsync",
|
|
2187
|
+
kind: "sync-stream"
|
|
2188
|
+
}),
|
|
2189
|
+
toolRunAsync: channel({
|
|
2190
|
+
channelName: "tool.runAsync",
|
|
2191
|
+
kind: "async"
|
|
2192
|
+
})
|
|
2193
|
+
},
|
|
2194
|
+
{ instrumentationName: INSTRUMENTATION_NAMES.GOOGLE_ADK }
|
|
2195
|
+
);
|
|
2057
2196
|
|
|
2058
2197
|
// src/auto-instrumentations/configs/google-adk.ts
|
|
2059
2198
|
var googleADKVersionRange = ">=0.1.0";
|
|
@@ -2284,24 +2423,28 @@ var googleADKConfigs = [
|
|
|
2284
2423
|
];
|
|
2285
2424
|
|
|
2286
2425
|
// src/instrumentation/plugins/cohere-channels.ts
|
|
2287
|
-
var cohereChannels = defineChannels(
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2426
|
+
var cohereChannels = defineChannels(
|
|
2427
|
+
"cohere-ai",
|
|
2428
|
+
{
|
|
2429
|
+
chat: channel({
|
|
2430
|
+
channelName: "chat",
|
|
2431
|
+
kind: "async"
|
|
2432
|
+
}),
|
|
2433
|
+
chatStream: channel({
|
|
2434
|
+
channelName: "chatStream",
|
|
2435
|
+
kind: "async"
|
|
2436
|
+
}),
|
|
2437
|
+
embed: channel({
|
|
2438
|
+
channelName: "embed",
|
|
2439
|
+
kind: "async"
|
|
2440
|
+
}),
|
|
2441
|
+
rerank: channel({
|
|
2442
|
+
channelName: "rerank",
|
|
2443
|
+
kind: "async"
|
|
2444
|
+
})
|
|
2445
|
+
},
|
|
2446
|
+
{ instrumentationName: INSTRUMENTATION_NAMES.COHERE }
|
|
2447
|
+
);
|
|
2305
2448
|
|
|
2306
2449
|
// src/auto-instrumentations/configs/cohere.ts
|
|
2307
2450
|
var cohereConfigs = [
|
|
@@ -2568,18 +2711,20 @@ var cohereConfigs = [
|
|
|
2568
2711
|
];
|
|
2569
2712
|
|
|
2570
2713
|
// src/instrumentation/plugins/groq-channels.ts
|
|
2571
|
-
var groqChannels = defineChannels(
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2714
|
+
var groqChannels = defineChannels(
|
|
2715
|
+
"groq-sdk",
|
|
2716
|
+
{
|
|
2717
|
+
chatCompletionsCreate: channel({
|
|
2718
|
+
channelName: "chat.completions.create",
|
|
2719
|
+
kind: "async"
|
|
2720
|
+
}),
|
|
2721
|
+
embeddingsCreate: channel({
|
|
2578
2722
|
channelName: "embeddings.create",
|
|
2579
2723
|
kind: "async"
|
|
2580
|
-
}
|
|
2581
|
-
|
|
2582
|
-
}
|
|
2724
|
+
})
|
|
2725
|
+
},
|
|
2726
|
+
{ instrumentationName: INSTRUMENTATION_NAMES.GROQ }
|
|
2727
|
+
);
|
|
2583
2728
|
|
|
2584
2729
|
// src/auto-instrumentations/configs/groq.ts
|
|
2585
2730
|
var groqConfigs = [
|
|
@@ -2612,38 +2757,46 @@ var groqConfigs = [
|
|
|
2612
2757
|
];
|
|
2613
2758
|
|
|
2614
2759
|
// src/instrumentation/plugins/genkit-channels.ts
|
|
2615
|
-
var genkitChannels = defineChannels(
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2760
|
+
var genkitChannels = defineChannels(
|
|
2761
|
+
"@genkit-ai/ai",
|
|
2762
|
+
{
|
|
2763
|
+
generate: channel({
|
|
2764
|
+
channelName: "generate",
|
|
2765
|
+
kind: "async"
|
|
2766
|
+
}),
|
|
2767
|
+
generateStream: channel({
|
|
2768
|
+
channelName: "generateStream",
|
|
2769
|
+
kind: "sync-stream"
|
|
2770
|
+
}),
|
|
2771
|
+
embed: channel({
|
|
2772
|
+
channelName: "embed",
|
|
2773
|
+
kind: "async"
|
|
2774
|
+
}),
|
|
2775
|
+
embedMany: channel({
|
|
2776
|
+
channelName: "embedMany",
|
|
2777
|
+
kind: "async"
|
|
2778
|
+
}),
|
|
2779
|
+
actionRun: channel({
|
|
2780
|
+
channelName: "action.run",
|
|
2781
|
+
kind: "async"
|
|
2782
|
+
}),
|
|
2783
|
+
actionStream: channel({
|
|
2784
|
+
channelName: "action.stream",
|
|
2785
|
+
kind: "sync-stream"
|
|
2786
|
+
})
|
|
2787
|
+
},
|
|
2788
|
+
{ instrumentationName: INSTRUMENTATION_NAMES.GENKIT }
|
|
2789
|
+
);
|
|
2790
|
+
var genkitCoreChannels = defineChannels(
|
|
2791
|
+
"@genkit-ai/core",
|
|
2792
|
+
{
|
|
2793
|
+
actionSpan: channel({
|
|
2794
|
+
channelName: "action.span",
|
|
2795
|
+
kind: "async"
|
|
2796
|
+
})
|
|
2797
|
+
},
|
|
2798
|
+
{ instrumentationName: INSTRUMENTATION_NAMES.GENKIT }
|
|
2799
|
+
);
|
|
2647
2800
|
|
|
2648
2801
|
// src/auto-instrumentations/configs/genkit.ts
|
|
2649
2802
|
var genkitVersionRange = ">=1.0.0 <2.0.0";
|
|
@@ -2805,20 +2958,24 @@ var genkitConfigs = [
|
|
|
2805
2958
|
];
|
|
2806
2959
|
|
|
2807
2960
|
// src/instrumentation/plugins/github-copilot-channels.ts
|
|
2808
|
-
var gitHubCopilotChannels = defineChannels(
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2961
|
+
var gitHubCopilotChannels = defineChannels(
|
|
2962
|
+
"@github/copilot-sdk",
|
|
2963
|
+
{
|
|
2964
|
+
createSession: channel({
|
|
2965
|
+
channelName: "client.createSession",
|
|
2966
|
+
kind: "async"
|
|
2967
|
+
}),
|
|
2968
|
+
resumeSession: channel({
|
|
2969
|
+
channelName: "client.resumeSession",
|
|
2970
|
+
kind: "async"
|
|
2971
|
+
}),
|
|
2972
|
+
sendAndWait: channel({
|
|
2973
|
+
channelName: "session.sendAndWait",
|
|
2974
|
+
kind: "async"
|
|
2975
|
+
})
|
|
2976
|
+
},
|
|
2977
|
+
{ instrumentationName: INSTRUMENTATION_NAMES.GITHUB_COPILOT }
|
|
2978
|
+
);
|
|
2822
2979
|
|
|
2823
2980
|
// src/auto-instrumentations/configs/github-copilot.ts
|
|
2824
2981
|
var gitHubCopilotConfigs = [
|
|
@@ -2909,16 +3066,20 @@ var gitHubCopilotConfigs = [
|
|
|
2909
3066
|
];
|
|
2910
3067
|
|
|
2911
3068
|
// src/instrumentation/plugins/langchain-channels.ts
|
|
2912
|
-
var langChainChannels = defineChannels(
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
3069
|
+
var langChainChannels = defineChannels(
|
|
3070
|
+
"@langchain/core",
|
|
3071
|
+
{
|
|
3072
|
+
configure: channel({
|
|
3073
|
+
channelName: "CallbackManager.configure",
|
|
3074
|
+
kind: "sync-stream"
|
|
3075
|
+
}),
|
|
3076
|
+
configureSync: channel({
|
|
3077
|
+
channelName: "CallbackManager._configureSync",
|
|
3078
|
+
kind: "sync-stream"
|
|
3079
|
+
})
|
|
3080
|
+
},
|
|
3081
|
+
{ instrumentationName: INSTRUMENTATION_NAMES.LANGCHAIN }
|
|
3082
|
+
);
|
|
2922
3083
|
|
|
2923
3084
|
// src/auto-instrumentations/configs/langchain.ts
|
|
2924
3085
|
var langChainCoreVersionRange = ">=0.3.42";
|
|
@@ -2953,20 +3114,24 @@ var langchainConfigs = [
|
|
|
2953
3114
|
];
|
|
2954
3115
|
|
|
2955
3116
|
// src/instrumentation/plugins/langsmith-channels.ts
|
|
2956
|
-
var langSmithChannels = defineChannels(
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
3117
|
+
var langSmithChannels = defineChannels(
|
|
3118
|
+
"langsmith",
|
|
3119
|
+
{
|
|
3120
|
+
createRun: channel({
|
|
3121
|
+
channelName: "Client.createRun",
|
|
3122
|
+
kind: "async"
|
|
3123
|
+
}),
|
|
3124
|
+
updateRun: channel({
|
|
3125
|
+
channelName: "Client.updateRun",
|
|
3126
|
+
kind: "async"
|
|
3127
|
+
}),
|
|
3128
|
+
batchIngestRuns: channel({
|
|
3129
|
+
channelName: "Client.batchIngestRuns",
|
|
3130
|
+
kind: "async"
|
|
3131
|
+
})
|
|
3132
|
+
},
|
|
3133
|
+
{ instrumentationName: INSTRUMENTATION_NAMES.LANGSMITH }
|
|
3134
|
+
);
|
|
2970
3135
|
|
|
2971
3136
|
// src/auto-instrumentations/configs/langsmith.ts
|
|
2972
3137
|
var versionRange = ">=0.3.30 <1.0.0";
|
|
@@ -3010,11 +3175,12 @@ var piCodingAgentChannels = defineChannels(
|
|
|
3010
3175
|
channelName: "AgentSession.prompt",
|
|
3011
3176
|
kind: "async"
|
|
3012
3177
|
})
|
|
3013
|
-
}
|
|
3178
|
+
},
|
|
3179
|
+
{ instrumentationName: INSTRUMENTATION_NAMES.PI_CODING_AGENT }
|
|
3014
3180
|
);
|
|
3015
3181
|
|
|
3016
3182
|
// src/auto-instrumentations/configs/pi-coding-agent.ts
|
|
3017
|
-
var piCodingAgentVersionRange = ">=0.79.0 <0.
|
|
3183
|
+
var piCodingAgentVersionRange = ">=0.79.0 <0.82.0";
|
|
3018
3184
|
var piCodingAgentConfigs = [
|
|
3019
3185
|
{
|
|
3020
3186
|
channelName: piCodingAgentChannels.prompt.channelName,
|
|
@@ -3034,6 +3200,7 @@ var piCodingAgentConfigs = [
|
|
|
3034
3200
|
export {
|
|
3035
3201
|
channel,
|
|
3036
3202
|
defineChannels,
|
|
3203
|
+
INSTRUMENTATION_NAMES,
|
|
3037
3204
|
openaiConfigs,
|
|
3038
3205
|
openAICodexConfigs,
|
|
3039
3206
|
anthropicConfigs,
|