@introspection-sdk/introspection-node 0.19.1 → 0.21.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/README.md +28 -8
- package/dist/auth.d.ts +1 -1
- package/dist/client.d.ts +4 -3
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +16 -7
- package/dist/client.js.map +1 -1
- package/dist/dev-target.js +1 -1
- package/dist/index.d.ts +4 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -6
- package/dist/index.js.map +1 -1
- package/dist/otel/index.d.ts +1 -14
- package/dist/otel/index.d.ts.map +1 -1
- package/dist/otel/index.js +10 -18
- package/dist/otel/index.js.map +1 -1
- package/dist/otel/init.d.ts +19 -21
- package/dist/otel/init.d.ts.map +1 -1
- package/dist/otel/init.js +62 -48
- package/dist/otel/init.js.map +1 -1
- package/dist/otel/integrations/base.d.ts +17 -37
- package/dist/otel/integrations/base.d.ts.map +1 -1
- package/dist/otel/integrations/base.js +6 -13
- package/dist/otel/integrations/base.js.map +1 -1
- package/dist/otel/integrations/index.d.ts +3 -4
- package/dist/otel/integrations/index.d.ts.map +1 -1
- package/dist/otel/integrations/index.js +6 -25
- package/dist/otel/integrations/index.js.map +1 -1
- package/dist/otel/integrations/pi.d.ts.map +1 -1
- package/dist/otel/integrations/pi.js +9 -1
- package/dist/otel/integrations/pi.js.map +1 -1
- package/dist/otel/logs.d.ts +41 -8
- package/dist/otel/logs.d.ts.map +1 -1
- package/dist/otel/logs.js +95 -66
- package/dist/otel/logs.js.map +1 -1
- package/dist/otel/pi.d.ts +18 -5
- package/dist/otel/pi.d.ts.map +1 -1
- package/dist/otel/pi.js +38 -9
- package/dist/otel/pi.js.map +1 -1
- package/dist/otel/register.d.ts +2 -2
- package/dist/otel/register.d.ts.map +1 -1
- package/dist/otel/register.js +7 -9
- package/dist/otel/register.js.map +1 -1
- package/dist/otel/setup.d.ts +2 -2
- package/dist/otel/setup.d.ts.map +1 -1
- package/dist/otel/setup.js +16 -6
- package/dist/otel/setup.js.map +1 -1
- package/dist/otel/span-processor.d.ts +18 -5
- package/dist/otel/span-processor.d.ts.map +1 -1
- package/dist/otel/span-processor.js +50 -65
- package/dist/otel/span-processor.js.map +1 -1
- package/dist/resources/experiments.d.ts +10 -5
- package/dist/resources/experiments.d.ts.map +1 -1
- package/dist/resources/experiments.js +9 -25
- package/dist/resources/experiments.js.map +1 -1
- package/dist/resources/recipes.d.ts +6 -6
- package/dist/resources/recipes.d.ts.map +1 -1
- package/dist/resources/recipes.js +5 -23
- package/dist/resources/recipes.js.map +1 -1
- package/dist/resources/runtimes.d.ts +2 -2
- package/dist/resources/runtimes.d.ts.map +1 -1
- package/dist/resources/runtimes.js +2 -2
- package/dist/resources/runtimes.js.map +1 -1
- package/dist/runner.d.ts +8 -4
- package/dist/runner.d.ts.map +1 -1
- package/dist/runner.js +26 -18
- package/dist/runner.js.map +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +1 -1
- package/dist/types.js.map +1 -1
- package/dist/utils.d.ts +45 -0
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +61 -2
- package/dist/utils.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/package.json +18 -60
- package/.turbo/turbo-build.log +0 -4
- package/dist/converters/claude.d.ts +0 -150
- package/dist/converters/claude.d.ts.map +0 -1
- package/dist/converters/claude.js +0 -211
- package/dist/converters/claude.js.map +0 -1
- package/dist/converters/gemini.d.ts +0 -90
- package/dist/converters/gemini.d.ts.map +0 -1
- package/dist/converters/gemini.js +0 -171
- package/dist/converters/gemini.js.map +0 -1
- package/dist/converters/index.d.ts +0 -9
- package/dist/converters/index.d.ts.map +0 -1
- package/dist/converters/index.js +0 -9
- package/dist/converters/index.js.map +0 -1
- package/dist/converters/openai.d.ts +0 -51
- package/dist/converters/openai.d.ts.map +0 -1
- package/dist/converters/openai.js +0 -269
- package/dist/converters/openai.js.map +0 -1
- package/dist/converters/openinference.d.ts +0 -107
- package/dist/converters/openinference.d.ts.map +0 -1
- package/dist/converters/openinference.js +0 -553
- package/dist/converters/openinference.js.map +0 -1
- package/dist/converters/vercel.d.ts +0 -21
- package/dist/converters/vercel.d.ts.map +0 -1
- package/dist/converters/vercel.js +0 -236
- package/dist/converters/vercel.js.map +0 -1
- package/dist/otel/anthropic.d.ts +0 -63
- package/dist/otel/anthropic.d.ts.map +0 -1
- package/dist/otel/anthropic.js +0 -475
- package/dist/otel/anthropic.js.map +0 -1
- package/dist/otel/claude-hooks.d.ts +0 -346
- package/dist/otel/claude-hooks.d.ts.map +0 -1
- package/dist/otel/claude-hooks.js +0 -647
- package/dist/otel/claude-hooks.js.map +0 -1
- package/dist/otel/claude-wrapper.d.ts +0 -93
- package/dist/otel/claude-wrapper.d.ts.map +0 -1
- package/dist/otel/claude-wrapper.js +0 -155
- package/dist/otel/claude-wrapper.js.map +0 -1
- package/dist/otel/gemini.d.ts +0 -56
- package/dist/otel/gemini.d.ts.map +0 -1
- package/dist/otel/gemini.js +0 -350
- package/dist/otel/gemini.js.map +0 -1
- package/dist/otel/integrations/anthropic.d.ts +0 -10
- package/dist/otel/integrations/anthropic.d.ts.map +0 -1
- package/dist/otel/integrations/anthropic.js +0 -26
- package/dist/otel/integrations/anthropic.js.map +0 -1
- package/dist/otel/integrations/claude-agent.d.ts +0 -12
- package/dist/otel/integrations/claude-agent.d.ts.map +0 -1
- package/dist/otel/integrations/claude-agent.js +0 -28
- package/dist/otel/integrations/claude-agent.js.map +0 -1
- package/dist/otel/integrations/gemini.d.ts +0 -11
- package/dist/otel/integrations/gemini.d.ts.map +0 -1
- package/dist/otel/integrations/gemini.js +0 -23
- package/dist/otel/integrations/gemini.js.map +0 -1
- package/dist/otel/integrations/langchain.d.ts +0 -15
- package/dist/otel/integrations/langchain.d.ts.map +0 -1
- package/dist/otel/integrations/langchain.js +0 -43
- package/dist/otel/integrations/langchain.js.map +0 -1
- package/dist/otel/integrations/mastra.d.ts +0 -14
- package/dist/otel/integrations/mastra.d.ts.map +0 -1
- package/dist/otel/integrations/mastra.js +0 -31
- package/dist/otel/integrations/mastra.js.map +0 -1
- package/dist/otel/integrations/openai-agents.d.ts +0 -11
- package/dist/otel/integrations/openai-agents.d.ts.map +0 -1
- package/dist/otel/integrations/openai-agents.js +0 -30
- package/dist/otel/integrations/openai-agents.js.map +0 -1
- package/dist/otel/integrations/vercel.d.ts +0 -14
- package/dist/otel/integrations/vercel.d.ts.map +0 -1
- package/dist/otel/integrations/vercel.js +0 -20
- package/dist/otel/integrations/vercel.js.map +0 -1
- package/dist/otel/langchain-handler.d.ts +0 -112
- package/dist/otel/langchain-handler.d.ts.map +0 -1
- package/dist/otel/langchain-handler.js +0 -561
- package/dist/otel/langchain-handler.js.map +0 -1
- package/dist/otel/mastra-exporter.d.ts +0 -87
- package/dist/otel/mastra-exporter.d.ts.map +0 -1
- package/dist/otel/mastra-exporter.js +0 -530
- package/dist/otel/mastra-exporter.js.map +0 -1
- package/dist/otel/openai.d.ts +0 -20
- package/dist/otel/openai.d.ts.map +0 -1
- package/dist/otel/openai.js +0 -55
- package/dist/otel/openai.js.map +0 -1
- package/dist/otel/tracing-processor.d.ts +0 -139
- package/dist/otel/tracing-processor.d.ts.map +0 -1
- package/dist/otel/tracing-processor.js +0 -434
- package/dist/otel/tracing-processor.js.map +0 -1
- package/eslint.config.mjs +0 -4
- package/src/auth.ts +0 -236
- package/src/client.ts +0 -163
- package/src/converters/claude.ts +0 -343
- package/src/converters/gemini.ts +0 -243
- package/src/converters/index.ts +0 -50
- package/src/converters/openai.ts +0 -300
- package/src/converters/openinference.ts +0 -665
- package/src/converters/vercel.ts +0 -302
- package/src/dev-target.ts +0 -79
- package/src/http.ts +0 -43
- package/src/index.ts +0 -266
- package/src/otel/anthropic.ts +0 -619
- package/src/otel/claude-hooks.ts +0 -1116
- package/src/otel/claude-wrapper.ts +0 -239
- package/src/otel/gemini.ts +0 -483
- package/src/otel/index.ts +0 -128
- package/src/otel/init.ts +0 -411
- package/src/otel/integrations/anthropic.ts +0 -36
- package/src/otel/integrations/base.ts +0 -158
- package/src/otel/integrations/claude-agent.ts +0 -36
- package/src/otel/integrations/gemini.ts +0 -30
- package/src/otel/integrations/index.ts +0 -152
- package/src/otel/integrations/langchain.ts +0 -60
- package/src/otel/integrations/mastra.ts +0 -48
- package/src/otel/integrations/openai-agents.ts +0 -47
- package/src/otel/integrations/pi.ts +0 -28
- package/src/otel/integrations/vercel.ts +0 -26
- package/src/otel/langchain-handler.ts +0 -804
- package/src/otel/logs.ts +0 -395
- package/src/otel/mastra-exporter.ts +0 -714
- package/src/otel/openai.ts +0 -93
- package/src/otel/pi.ts +0 -94
- package/src/otel/register.ts +0 -50
- package/src/otel/setup.ts +0 -215
- package/src/otel/span-processor.ts +0 -512
- package/src/otel/tracing-processor.ts +0 -637
- package/src/pagination.ts +0 -10
- package/src/proxy-from-env.d.ts +0 -7
- package/src/resources/experiments.ts +0 -176
- package/src/resources/recipes.ts +0 -74
- package/src/resources/runtimes.ts +0 -31
- package/src/runner.ts +0 -213
- package/src/types.ts +0 -13
- package/src/utils.ts +0 -95
- package/src/version.ts +0 -2
- package/tsconfig.json +0 -8
package/README.md
CHANGED
|
@@ -107,7 +107,7 @@ import { IntrospectionSpanProcessor } from "@introspection-sdk/introspection-nod
|
|
|
107
107
|
const provider = new NodeTracerProvider({
|
|
108
108
|
spanProcessors: [
|
|
109
109
|
new IntrospectionSpanProcessor({ token: process.env.INTROSPECTION_TOKEN }),
|
|
110
|
-
new BatchSpanProcessor(
|
|
110
|
+
new BatchSpanProcessor(otherBackendExporter),
|
|
111
111
|
],
|
|
112
112
|
});
|
|
113
113
|
provider.register();
|
|
@@ -115,9 +115,14 @@ provider.register();
|
|
|
115
115
|
await introspection.init({ tracerProvider: provider });
|
|
116
116
|
```
|
|
117
117
|
|
|
118
|
-
`IntrospectionSpanProcessor` exports its own converted copy of each span, so the vendor processor receives the raw span and processor order is irrelevant. For a quick alternative: `init({ spanProcessors: [new BatchSpanProcessor(
|
|
118
|
+
`IntrospectionSpanProcessor` exports its own converted copy of each span, so the vendor processor receives the raw span and processor order is irrelevant. For a quick alternative: `init({ spanProcessors: [new BatchSpanProcessor(otherBackendExporter)] })`.
|
|
119
119
|
|
|
120
|
-
|
|
120
|
+
Pi is the only framework with a built-in integration. `init()` detects it and
|
|
121
|
+
wires it automatically; to instrument an `Agent` by hand, import
|
|
122
|
+
`IntrospectionPiInstrumentor` from
|
|
123
|
+
`@introspection-sdk/introspection-node/otel/pi`. It lives on its own subpath
|
|
124
|
+
because it reaches into `@earendil-works/pi-ai` at runtime, and the `/otel`
|
|
125
|
+
barrel must stay importable without it.
|
|
121
126
|
|
|
122
127
|
## Analytics events (track, feedback, identify)
|
|
123
128
|
|
|
@@ -163,24 +168,39 @@ await logs.shutdown();
|
|
|
163
168
|
|
|
164
169
|
## OpenTelemetry span processor
|
|
165
170
|
|
|
171
|
+
Attach the processor to a provider you already own, or stand one up with
|
|
172
|
+
`setupTracing`. Adding a second `IntrospectionSpanProcessor` pointed at another
|
|
173
|
+
OTLP endpoint dual-exports the same spans — see
|
|
174
|
+
[`examples/otel/pi/dual-export.ts`](../../examples/otel/pi/dual-export.ts).
|
|
175
|
+
|
|
166
176
|
```typescript
|
|
177
|
+
import { NodeTracerProvider } from "@opentelemetry/sdk-trace-node";
|
|
167
178
|
import { IntrospectionSpanProcessor } from "@introspection-sdk/introspection-node/otel";
|
|
168
|
-
import logfire from "@logfire/node";
|
|
169
179
|
|
|
170
|
-
|
|
171
|
-
|
|
180
|
+
const provider = new NodeTracerProvider({
|
|
181
|
+
spanProcessors: [
|
|
172
182
|
new IntrospectionSpanProcessor({ token: process.env.INTROSPECTION_TOKEN }),
|
|
173
183
|
],
|
|
174
184
|
});
|
|
175
|
-
|
|
176
|
-
logfire.instrumentOpenAI();
|
|
185
|
+
provider.register();
|
|
177
186
|
```
|
|
178
187
|
|
|
179
188
|
## Environment variables
|
|
180
189
|
|
|
181
190
|
```shell
|
|
191
|
+
# Introspection API (IntrospectionClient)
|
|
182
192
|
export INTROSPECTION_TOKEN="intro_xxx"
|
|
183
193
|
export INTROSPECTION_BASE_API_URL="https://api.introspection.dev" # optional
|
|
194
|
+
|
|
195
|
+
# Development only: route this process's tasks to your own `introspection dev`
|
|
196
|
+
# server when several developers share one Runtime. `introspection dev` prints
|
|
197
|
+
# the line to copy. No default.
|
|
198
|
+
export INTROSPECTION_DEV_TARGET="roland" # optional
|
|
199
|
+
|
|
200
|
+
# OTel (IntrospectionLogs + IntrospectionSpanProcessor)
|
|
184
201
|
export INTROSPECTION_BASE_OTEL_URL="https://otel.introspection.dev" # optional
|
|
185
202
|
export INTROSPECTION_SERVICE_NAME="my-service" # optional
|
|
203
|
+
|
|
204
|
+
# SDK diagnostics: error, warn, info, debug, verbose. Default: warn.
|
|
205
|
+
export INTROSPECTION_LOG_LEVEL="debug" # optional
|
|
186
206
|
```
|
package/dist/auth.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export interface OAuthToken {
|
|
|
15
15
|
* Data Plane API base URL for the token's project, resolved by the CP the
|
|
16
16
|
* same way it is for the CLI login. `null` when the deployment can't be
|
|
17
17
|
* resolved; the caller then needs an explicit DP URL. Hand this to the
|
|
18
|
-
* browser
|
|
18
|
+
* browser client as `dpUrl` so the SPA connects without separate DP config.
|
|
19
19
|
*/
|
|
20
20
|
dp_url: string | null;
|
|
21
21
|
}
|
package/dist/client.d.ts
CHANGED
|
@@ -50,13 +50,14 @@ export declare class IntrospectionClient {
|
|
|
50
50
|
*/
|
|
51
51
|
readonly runtimes: RuntimesApi & RuntimeHandleFactory;
|
|
52
52
|
/**
|
|
53
|
-
*
|
|
53
|
+
* Reads on `/v1/experiments` plus the `(id) => ExperimentHandle` factory
|
|
54
|
+
* for run lifecycle. Authoring experiment definitions is a CLI action.
|
|
54
55
|
*/
|
|
55
56
|
readonly experiments: ExperimentsApi & ExperimentHandleFactory;
|
|
56
57
|
/**
|
|
57
|
-
*
|
|
58
|
+
* Reads on `/v1/recipes`. Recipes are immutable build artefacts
|
|
58
59
|
* (repository + git ref + commit sha) referenced by runtimes and
|
|
59
|
-
* experiment arms.
|
|
60
|
+
* experiment arms; authoring them is a CLI action.
|
|
60
61
|
*/
|
|
61
62
|
readonly recipes: RecipesApi;
|
|
62
63
|
constructor(options?: IntrospectionClientOptions);
|
package/dist/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAEhE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAC;AAC7D,OAAO,EAAuB,KAAK,yBAAyB,EAAE,MAAM,WAAW,CAAC;AAChF,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAEL,KAAK,oBAAoB,EACzB,KAAK,WAAW,EACjB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAEL,KAAK,uBAAuB,EAC5B,KAAK,cAAc,EACpB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAiB,KAAK,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAGxE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,qBAAa,mBAAmB;IAC9B,2EAA2E;IAC3E,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;IAC5B,mFAAmF;IACnF,QAAQ,CAAC,eAAe,EAAE,eAAe,CAAC;IAE1C;;;;OAIG;IACH,QAAQ,CAAC,QAAQ,EAAE,WAAW,GAAG,oBAAoB,CAAC;IAEtD
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAA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} from "./utils.js";
|
|
14
|
+
import { logger as sdkLogger, USER_AGENT } from "./utils.js";
|
|
15
15
|
import { serviceAccountToken } from "./auth.js";
|
|
16
16
|
import { HttpClient } from "./http.js";
|
|
17
17
|
import { attachRuntimes, } from "./resources/runtimes.js";
|
|
@@ -50,13 +50,14 @@ export class IntrospectionClient {
|
|
|
50
50
|
*/
|
|
51
51
|
runtimes;
|
|
52
52
|
/**
|
|
53
|
-
*
|
|
53
|
+
* Reads on `/v1/experiments` plus the `(id) => ExperimentHandle` factory
|
|
54
|
+
* for run lifecycle. Authoring experiment definitions is a CLI action.
|
|
54
55
|
*/
|
|
55
56
|
experiments;
|
|
56
57
|
/**
|
|
57
|
-
*
|
|
58
|
+
* Reads on `/v1/recipes`. Recipes are immutable build artefacts
|
|
58
59
|
* (repository + git ref + commit sha) referenced by runtimes and
|
|
59
|
-
* experiment arms.
|
|
60
|
+
* experiment arms; authoring them is a CLI action.
|
|
60
61
|
*/
|
|
61
62
|
recipes;
|
|
62
63
|
constructor(options = {}) {
|
|
@@ -74,9 +75,17 @@ export class IntrospectionClient {
|
|
|
74
75
|
// Merged first, so an explicit `additionalHeaders` entry still wins, and
|
|
75
76
|
// stored on advancedOptions so the Runner's own DP client inherits it.
|
|
76
77
|
const devTarget = resolveDevTarget();
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
// `User-Agent` is set here rather than in the shared HTTP client because
|
|
79
|
+
// that client also backs the browser package, where the header is
|
|
80
|
+
// forbidden and the request would be rejected. On Node it identifies the
|
|
81
|
+
// SDK and its release on REST calls the way it already does on the two
|
|
82
|
+
// OTLP streams, and rides `advancedOptions` so the Runner's DP client
|
|
83
|
+
// inherits it. Merged first, so an explicit `additionalHeaders` wins.
|
|
84
|
+
const additionalHeaders = {
|
|
85
|
+
"User-Agent": USER_AGENT,
|
|
86
|
+
...(devTarget ? { [DEV_TARGET_HEADER]: devTarget } : {}),
|
|
87
|
+
...advanced.additionalHeaders,
|
|
88
|
+
};
|
|
80
89
|
this.advancedOptions = { ...advanced, additionalHeaders };
|
|
81
90
|
// CP HTTP client — talks to the customer-facing API with the customer
|
|
82
91
|
// API key. Runners get their own HttpClient instances pointed at the
|
package/dist/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAGH,OAAO,EAAE,MAAM,IAAI,SAAS,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAGH,OAAO,EAAE,MAAM,IAAI,SAAS,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7D,OAAO,EAAE,mBAAmB,EAAkC,MAAM,WAAW,CAAC;AAChF,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EACL,cAAc,GAGf,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,iBAAiB,GAGlB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,aAAa,EAAmB,MAAM,wBAAwB,CAAC;AACxE,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAEtE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,OAAO,mBAAmB;IAC9B,2EAA2E;IAClE,MAAM,CAAa;IAC5B,mFAAmF;IAC1E,eAAe,CAAkB;IAE1C;;;;OAIG;IACM,QAAQ,CAAqC;IAEtD;;;OAGG;IACM,WAAW,CAA2C;IAE/D;;;;OAIG;IACM,OAAO,CAAa;IAE7B,YAAY,UAAsC,EAAE;QAClD,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,OAAO,CAAC,GAAG,CAAC,mBAAmB,IAAI,EAAE,CAAC;QACrE,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,IAAI,EAAE,CAAC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AAC;IACvE,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACH,MAAM,CAAC,KAAK,CAAC,kBAAkB,CAC7B,MAA4D;QAE5D,MAAM,EAAE,YAAY,EAAE,GAAG,MAAM,mBAAmB,CAAC,MAAM,CAAC,CAAC;QAC3D,OAAO,IAAI,mBAAmB,CAAC;YAC7B,KAAK,EAAE,YAAY;YACnB,WAAW,EAAE,MAAM,CAAC,WAAW;YAC/B,QAAQ,EAAE,EAAE,UAAU,EAAE,MAAM,CAAC,UAAU,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE;SACjE,CAAC,CAAC;IACL,CAAC;IAED,wCAAwC;IACxC,KAAK,CAAC,QAAQ;QACZ,kEAAkE;QAClE,gDAAgD;QAChD,SAAS,CAAC,KAAK,CAAC,uCAAuC,CAAC,CAAC;IAC3D,CAAC;CACF"}
|
package/dist/dev-target.js
CHANGED
|
@@ -35,7 +35,7 @@ export const DEV_TARGET_HEADER = "x-introspection-dev-target";
|
|
|
35
35
|
/** The env var `introspection dev` prints and both the CLI and SDK read. */
|
|
36
36
|
export const DEV_TARGET_ENV = "INTROSPECTION_DEV_TARGET";
|
|
37
37
|
/**
|
|
38
|
-
* Percent-encode to RFC 3986, so the
|
|
38
|
+
* Percent-encode to RFC 3986, so the header carries identical bytes on the
|
|
39
39
|
* wire for the same target.
|
|
40
40
|
*
|
|
41
41
|
* `encodeURIComponent` leaves `!'()*` alone where Python's `quote(safe="")`
|
package/dist/index.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export type { ServiceAccountTokenParams, ServiceAccountToken, TokenExchangeParam
|
|
|
14
14
|
export type { AdvancedOptions, IntrospectionClientOptions, FeedbackOptions, UserTraits, } from "./types.js";
|
|
15
15
|
export { ConversationItemsApi, ConversationsApi, EventsApi, FileVersionsApi, FilesApi, MetricsApi, RunHandle, SharesApi, TaskRunsApi, TasksApi, } from "@introspection-sdk/http";
|
|
16
16
|
export { streamResumable } from "@introspection-sdk/http";
|
|
17
|
+
export { TranscriptAccumulator, foldAgui, foldSpans, mergeTranscripts, } from "@introspection-sdk/http";
|
|
17
18
|
export { ArrowPages } from "@introspection-sdk/http";
|
|
18
19
|
export type { EventArrowParams, FileUploadBody, ListReadParams, StartParams, StreamOptions, } from "@introspection-sdk/http";
|
|
19
20
|
export { HttpClient } from "./http.js";
|
|
@@ -21,18 +22,14 @@ export type { ResolvedApiConfig } from "./http.js";
|
|
|
21
22
|
export { EventType } from "@introspection-sdk/types";
|
|
22
23
|
export { Runner } from "./runner.js";
|
|
23
24
|
export type { RunnerSource } from "./runner.js";
|
|
24
|
-
export { RuntimesApi, RuntimeHandle, attachRuntimes,
|
|
25
|
+
export { RuntimesApi, RuntimeHandle, attachRuntimes, } from "./resources/runtimes.js";
|
|
25
26
|
export type { RuntimeHandleFactory } from "./resources/runtimes.js";
|
|
26
27
|
export { ExperimentsApi, ExperimentHandle, attachExperiments, } from "./resources/experiments.js";
|
|
27
28
|
export type { ExperimentHandleFactory } from "./resources/experiments.js";
|
|
28
29
|
export { RecipesApi, attachRecipes } from "./resources/recipes.js";
|
|
29
|
-
export type { AGUIEvent, BaseEvent, Interrupt, Message, ResumeEntry, RunAgentInput, Paginated, ListParams, Task, TaskCreateParams, TaskUpdateParams, TaskListParams,
|
|
30
|
+
export type { AGUIEvent, BaseEvent, Interrupt, Message, ResumeEntry, RunAgentInput, Paginated, ListParams, Task, TaskCreateParams, TaskUpdateParams, TaskListParams, TaskKind, TaskStatus, TaskRunKind, TaskPrompt, TaskRun, TaskRunCreateParams, TaskRunResumeParams, TaskRunResponse, TaskCreateResponse, TaskFileRef, TaskRepoRequest, TaskCancelResponse, TaskCancelOptions, AgentInfo, File, FileType, FileListParams, FileUpdateParams, FileCreateTextParams, Runtime, RuntimeListParams, Experiment, ExperimentListParams, ExperimentStatus, ExperimentGoal, ExperimentGoalComponent, ExperimentGoalDirection, ExperimentGoalGuard, JudgeGoalComponent, TelemetryGoalComponent, ExperimentArm, Recipe, RecipeListParams, RunnerSpec, RunnerDeployment, RunnerContext, RunnerRecipeSummary, RunnerIdentity, RunRequest, RunCaller, RunCallerLibrary, RunCallerPage, RunIdentityInput, GenAiSpan, GenAiSpanList, GenAiSpanAttributes, GenAiSpanStatus, Conversation, ConversationAgent, ConversationUsage, ConversationCost, ConversationMetrics, IntrospectionSpanAttributes, IntrospectionConversation, SpanAttributes, SpanResource, ConversationItemInclude, ConversationSortField, ConversationListParams, ConversationItemListParams, ConversationExportParams, Trajectory, TrajectoryRecord, TrajectoryToolCall, ConversationsMethod, SpanEvent, SpanKind, SpanStatus, ReadFormat, ReadWindowParams, IntrospectionEventName, IntrospectionEventEnvelope, ObservationPayload, PatternPayload, PatternAssignmentPayload, ClusteringRunPayload, FeedbackPayload, JudgementPayload, ObservationEvent, PatternEvent, PatternAssignmentEvent, ClusteringRunEvent, FeedbackEvent, JudgementEvent, Event, UnknownEvent, EventForName, EventSortField, EventListParams, MetricView, MetricAggregation, MetricFilterOperator, MetricInterval, MetricSpec, MetricDimension, MetricFilter, MetricTimeDimension, MetricOrderBy, MetricHaving, MetricQueryConfig, MetricQueryRequest, MetricDimensionValue, MetricResultValue, MetricResultRow, MetricEffectiveWindow, MetricQueryMeta, MetricQueryResponse, } from "@introspection-sdk/types";
|
|
30
31
|
export { ConversationsMethods, IntrospectionEventNames, genAiConversationId, genAiInputMessages, genAiOutputMessages, isKnownEvent, } from "@introspection-sdk/types";
|
|
31
|
-
export { IntrospectionAPIError, AuthenticationError, InsufficientScopeError, RunnerExpiredError, NotFoundError, ConflictError, ValidationError, RateLimitError, SandboxUnavailableError,
|
|
32
|
+
export { IntrospectionAPIError, AuthenticationError, InsufficientScopeError, RunnerExpiredError, NotFoundError, ConflictError, ValidationError, RateLimitError, SandboxUnavailableError, NetworkError, apiErrorFromResponse, } from "@introspection-sdk/types";
|
|
32
33
|
export type { GenAiAttributes, InputMessage, OutputMessage, SystemInstruction, ToolDefinition, TextPart, ToolCallRequestPart, ToolCallResponsePart, CompactionPart, MediaUrlPart, BinaryDataPart, MessagePart, } from "@introspection-sdk/types";
|
|
33
34
|
export { toAttributes } from "@introspection-sdk/types";
|
|
34
|
-
export { convertResponsesInputsToSemconv, convertResponsesOutputsToSemconv, convertResponsesToolsToSemconv, convertResponsesInstructionsToSemconv, } from "./converters/openai.js";
|
|
35
|
-
export type { ResponseInputItem, ResponseOutputItem, ResponseTool, ResponseUsage, Response as OpenAIResponse, } from "./converters/openai.js";
|
|
36
|
-
export { convertGeminiContentsToInputMessages, convertGeminiCandidatesToOutputMessages, convertGeminiSystemInstructionToSemconv, convertGeminiToolsToToolDefinitions, } from "./converters/gemini.js";
|
|
37
|
-
export type { GeminiCandidate, GeminiContent, GeminiFunctionDeclaration, GeminiPart, GeminiTool, } from "./converters/gemini.js";
|
|
38
35
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAGlD,OAAO,EACL,mBAAmB,EACnB,aAAa,EACb,sBAAsB,GACvB,MAAM,WAAW,CAAC;AACnB,YAAY,EACV,yBAAyB,EACzB,mBAAmB,EACnB,mBAAmB,EACnB,uBAAuB,EACvB,UAAU,GACX,MAAM,WAAW,CAAC;AAGnB,YAAY,EACV,eAAe,EACf,0BAA0B,EAC1B,eAAe,EACf,UAAU,GACX,MAAM,YAAY,CAAC;AAIpB,OAAO,EACL,oBAAoB,EACpB,gBAAgB,EAChB,SAAS,EACT,eAAe,EACf,QAAQ,EACR,UAAU,EACV,SAAS,EACT,SAAS,EACT,WAAW,EACX,QAAQ,GACT,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,YAAY,EACV,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,WAAW,EACX,aAAa,GACd,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,YAAY,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAGrD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EACL,WAAW,EACX,aAAa,EACb,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAGlD,OAAO,EACL,mBAAmB,EACnB,aAAa,EACb,sBAAsB,GACvB,MAAM,WAAW,CAAC;AACnB,YAAY,EACV,yBAAyB,EACzB,mBAAmB,EACnB,mBAAmB,EACnB,uBAAuB,EACvB,UAAU,GACX,MAAM,WAAW,CAAC;AAGnB,YAAY,EACV,eAAe,EACf,0BAA0B,EAC1B,eAAe,EACf,UAAU,GACX,MAAM,YAAY,CAAC;AAIpB,OAAO,EACL,oBAAoB,EACpB,gBAAgB,EAChB,SAAS,EACT,eAAe,EACf,QAAQ,EACR,UAAU,EACV,SAAS,EACT,SAAS,EACT,WAAW,EACX,QAAQ,GACT,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EACL,qBAAqB,EACrB,QAAQ,EACR,SAAS,EACT,gBAAgB,GACjB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,YAAY,EACV,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,WAAW,EACX,aAAa,GACd,MAAM,yB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AAa,EACb,iBAAiB,EACjB,cAAc,EACd,QAAQ,EACR,mBAAmB,EACnB,oBAAoB,EACpB,cAAc,EACd,YAAY,EACZ,cAAc,EACd,WAAW,GACZ,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -16,19 +16,16 @@ export { serviceAccountToken, tokenExchange, authorizationCodeToken, } from "./a
|
|
|
16
16
|
// runner.conversations) + HTTP.
|
|
17
17
|
export { ConversationItemsApi, ConversationsApi, EventsApi, FileVersionsApi, FilesApi, MetricsApi, RunHandle, SharesApi, TaskRunsApi, TasksApi, } from "@introspection-sdk/http";
|
|
18
18
|
export { streamResumable } from "@introspection-sdk/http";
|
|
19
|
+
export { TranscriptAccumulator, foldAgui, foldSpans, mergeTranscripts, } from "@introspection-sdk/http";
|
|
19
20
|
export { ArrowPages } from "@introspection-sdk/http";
|
|
20
21
|
export { HttpClient } from "./http.js";
|
|
21
22
|
export { EventType } from "@introspection-sdk/types";
|
|
22
23
|
// Runner + CP resources.
|
|
23
24
|
export { Runner } from "./runner.js";
|
|
24
|
-
export { RuntimesApi, RuntimeHandle, attachRuntimes,
|
|
25
|
+
export { RuntimesApi, RuntimeHandle, attachRuntimes, } from "./resources/runtimes.js";
|
|
25
26
|
export { ExperimentsApi, ExperimentHandle, attachExperiments, } from "./resources/experiments.js";
|
|
26
27
|
export { RecipesApi, attachRecipes } from "./resources/recipes.js";
|
|
27
28
|
export { ConversationsMethods, IntrospectionEventNames, genAiConversationId, genAiInputMessages, genAiOutputMessages, isKnownEvent, } from "@introspection-sdk/types";
|
|
28
|
-
export { IntrospectionAPIError, AuthenticationError, InsufficientScopeError, RunnerExpiredError, NotFoundError, ConflictError, ValidationError, RateLimitError, SandboxUnavailableError,
|
|
29
|
+
export { IntrospectionAPIError, AuthenticationError, InsufficientScopeError, RunnerExpiredError, NotFoundError, ConflictError, ValidationError, RateLimitError, SandboxUnavailableError, NetworkError, apiErrorFromResponse, } from "@introspection-sdk/types";
|
|
29
30
|
export { toAttributes } from "@introspection-sdk/types";
|
|
30
|
-
// OpenAI converter exports (pure functions, no OTel SDK imports).
|
|
31
|
-
export { convertResponsesInputsToSemconv, convertResponsesOutputsToSemconv, convertResponsesToolsToSemconv, convertResponsesInstructionsToSemconv, } from "./converters/openai.js";
|
|
32
|
-
// Gemini converters (pure functions, no OTel SDK imports).
|
|
33
|
-
export { convertGeminiContentsToInputMessages, convertGeminiCandidatesToOutputMessages, convertGeminiSystemInstructionToSemconv, convertGeminiToolsToToolDefinitions, } from "./converters/gemini.js";
|
|
34
31
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,eAAe;AACf,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAElD,0DAA0D;AAC1D,OAAO,EACL,mBAAmB,EACnB,aAAa,EACb,sBAAsB,GACvB,MAAM,WAAW,CAAC;AAiBnB,4DAA4D;AAC5D,gCAAgC;AAChC,OAAO,EACL,oBAAoB,EACpB,gBAAgB,EAChB,SAAS,EACT,eAAe,EACf,QAAQ,EACR,UAAU,EACV,SAAS,EACT,SAAS,EACT,WAAW,EACX,QAAQ,GACT,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAQrD,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAEvC,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAErD,yBAAyB;AACzB,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,OAAO,EACL,WAAW,EACX,aAAa,EACb,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","source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AAoB,GACrB,MAAM,0BAA0B,CAAC;AAiBlC,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC"}
|
package/dist/otel/index.d.ts
CHANGED
|
@@ -13,20 +13,7 @@ export { setupTracing } from "./setup.js";
|
|
|
13
13
|
export type { SetupTracingOptions, ConflictBehavior } from "./setup.js";
|
|
14
14
|
export { IntrospectionSpanProcessor } from "./span-processor.js";
|
|
15
15
|
export type { IntrospectionSpanProcessorOptions } from "./span-processor.js";
|
|
16
|
-
export {
|
|
17
|
-
export type { OpenAIEmbeddingsClient, TracedEmbeddingsOptions, } from "./openai.js";
|
|
18
|
-
export { IntrospectionTracingProcessor } from "./tracing-processor.js";
|
|
19
|
-
export type { IntrospectionTracingProcessorOptions, TracingProcessorAdvancedOptions, } from "./tracing-processor.js";
|
|
20
|
-
export { IntrospectionClaudeHooks } from "./claude-hooks.js";
|
|
21
|
-
export type { IntrospectionClaudeHooksOptions, ClaudeHooksAdvancedOptions, ClaudeHooksConfig, ClaudeHookCallbackMatcher, ClaudeHookEvent, ClaudeHookInput, ClaudeHookOutput, ClaudeHookCallback, ClaudeUsage, ClaudeModelUsage, ClaudeResultMessage, ClaudeAssistantMessage, ClaudeSDKMessage, } from "./claude-hooks.js";
|
|
22
|
-
export { withIntrospection } from "./claude-wrapper.js";
|
|
23
|
-
export type { WithIntrospectionOptions, InstrumentedClaudeAgentSDK, ClaudeAgentSDKModule, } from "./claude-wrapper.js";
|
|
24
|
-
export { AnthropicInstrumentor, tracedMessagesCreate, REDACTED_THINKING_CONTENT, } from "./anthropic.js";
|
|
25
|
-
export { IntrospectionPiInstrumentor } from "./pi.js";
|
|
26
|
-
export type { IntrospectionPiInstrumentorOptions, AgentMeta as PiAgentMeta, } from "./pi.js";
|
|
27
|
-
export { GeminiInstrumentor } from "./gemini.js";
|
|
28
|
-
export { addOpenInferenceAttributes, OpenInferenceSpanExporter, } from "../converters/openinference.js";
|
|
29
|
-
export { init, shutdown, track, feedback, identify, conversation, withAgent, withConversation, withUserId, withAnonymousId, newConversationId, getClient, getTracerProvider, getLangchainHandler, getMastraExporter, instrumentPi, instrumentClaudeAgent, _resetForTests, } from "./init.js";
|
|
16
|
+
export { init, shutdown, track, feedback, identify, conversation, withAgent, withConversation, withUserId, withAnonymousId, newConversationId, getClient, getTracerProvider, instrumentPi, _resetForTests, } from "./init.js";
|
|
30
17
|
export type { InitOptions } from "./init.js";
|
|
31
18
|
export { registerOTelGlobals } from "./setup.js";
|
|
32
19
|
export { DidNotEnable, discoverIntegrations, setupIntegrations, resetInstalledForTests, } from "./integrations/index.js";
|
package/dist/otel/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/otel/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC9C,YAAY,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAC;AAI1D,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,YAAY,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAGxE,OAAO,EAAE,0BAA0B,EAAE,MAAM,qBAAqB,CAAC;AACjE,YAAY,EAAE,iCAAiC,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/otel/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC9C,YAAY,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAC;AAI1D,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,YAAY,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAGxE,OAAO,EAAE,0BAA0B,EAAE,MAAM,qBAAqB,CAAC;AACjE,YAAY,EAAE,iCAAiC,EAAE,MAAM,qBAAqB,CAAC;AAe7E,OAAO,EACL,IAAI,EACJ,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,SAAS,EACT,gBAAgB,EAChB,UAAU,EACV,eAAe,EACf,iBAAiB,EACjB,SAAS,EACT,iBAAiB,EACjB,YAAY,EACZ,cAAc,GACf,MAAM,WAAW,CAAC;AACnB,YAAY,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAG7C,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAGjD,OAAO,EACL,YAAY,EACZ,oBAAoB,EACpB,iBAAiB,EACjB,sBAAsB,GACvB,MAAM,yBAAyB,CAAC;AACjC,YAAY,EACV,WAAW,EACX,uBAAuB,EACvB,kBAAkB,GACnB,MAAM,yBAAyB,CAAC"}
|
package/dist/otel/index.js
CHANGED
|
@@ -15,27 +15,19 @@ export { IntrospectionLogs } from "./logs.js";
|
|
|
15
15
|
export { setupTracing } from "./setup.js";
|
|
16
16
|
// Span processor — attach to your own TracerProvider.
|
|
17
17
|
export { IntrospectionSpanProcessor } from "./span-processor.js";
|
|
18
|
-
//
|
|
19
|
-
|
|
20
|
-
//
|
|
21
|
-
|
|
22
|
-
//
|
|
23
|
-
|
|
24
|
-
//
|
|
25
|
-
|
|
26
|
-
//
|
|
27
|
-
export { AnthropicInstrumentor, tracedMessagesCreate, REDACTED_THINKING_CONTENT, } from "./anthropic.js";
|
|
28
|
-
// Pi Agent SDK instrumentor.
|
|
29
|
-
export { IntrospectionPiInstrumentor } from "./pi.js";
|
|
30
|
-
// Gemini SDK instrumentor.
|
|
31
|
-
export { GeminiInstrumentor } from "./gemini.js";
|
|
32
|
-
// OpenInference span exporter (drops Arize/OpenInference attrs onto a
|
|
33
|
-
// downstream OTel SpanExporter).
|
|
34
|
-
export { addOpenInferenceAttributes, OpenInferenceSpanExporter, } from "../converters/openinference.js";
|
|
18
|
+
// Pi Agent SDK instrumentor: `@introspection-sdk/introspection-node/otel/pi`.
|
|
19
|
+
//
|
|
20
|
+
// Deliberately not re-exported here. `./pi.js` reaches
|
|
21
|
+
// `@earendil-works/pi-ai` for a value (`createAssistantMessageEventStream`),
|
|
22
|
+
// so a static export would make importing this barrel throw
|
|
23
|
+
// ERR_MODULE_NOT_FOUND for every user who does not have Pi installed --
|
|
24
|
+
// exactly the invariant `integrations/base.ts` states. `init()` still wires
|
|
25
|
+
// Pi automatically when it is present, via the lazy integration loader, and
|
|
26
|
+
// exposes the bound handle as `introspection.instrumentPi()`.
|
|
35
27
|
// One-liner bootstrap (`introspection.init()`) + analytics proxies and the
|
|
36
28
|
// per-framework handle accessors it binds. Auto-detects installed frameworks
|
|
37
29
|
// and wires them into one shared provider.
|
|
38
|
-
export { init, shutdown, track, feedback, identify, conversation, withAgent, withConversation, withUserId, withAnonymousId, newConversationId, getClient, getTracerProvider,
|
|
30
|
+
export { init, shutdown, track, feedback, identify, conversation, withAgent, withConversation, withUserId, withAnonymousId, newConversationId, getClient, getTracerProvider, instrumentPi, _resetForTests, } from "./init.js";
|
|
39
31
|
// Low-level OTel registration helper (also used by `init`).
|
|
40
32
|
export { registerOTelGlobals } from "./setup.js";
|
|
41
33
|
// Integration registry — for custom integrations passed to `init`.
|
package/dist/otel/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/otel/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,sEAAsE;AACtE,4EAA4E;AAC5E,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAG9C,uEAAuE;AACvE,wDAAwD;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAG1C,sDAAsD;AACtD,OAAO,EAAE,0BAA0B,EAAE,MAAM,qBAAqB,CAAC;AAGjE,8EAA8E;AAC9E,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/otel/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,sEAAsE;AACtE,4EAA4E;AAC5E,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAG9C,uEAAuE;AACvE,wDAAwD;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAG1C,sDAAsD;AACtD,OAAO,EAAE,0BAA0B,EAAE,MAAM,qBAAqB,CAAC;AAGjE,8EAA8E;AAC9E,EAAE;AACF,uDAAuD;AACvD,6EAA6E;AAC7E,4DAA4D;AAC5D,wEAAwE;AACxE,4EAA4E;AAC5E,4EAA4E;AAC5E,8DAA8D;AAE9D,2EAA2E;AAC3E,6EAA6E;AAC7E,2CAA2C;AAC3C,OAAO,EACL,IAAI,EACJ,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,SAAS,EACT,gBAAgB,EAChB,UAAU,EACV,eAAe,EACf,iBAAiB,EACjB,SAAS,EACT,iBAAiB,EACjB,YAAY,EACZ,cAAc,GACf,MAAM,WAAW,CAAC;AAGnB,4DAA4D;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEjD,mEAAmE;AACnE,OAAO,EACL,YAAY,EACZ,oBAAoB,EACpB,iBAAiB,EACjB,sBAAsB,GACvB,MAAM,yBAAyB,CAAC"}
|
package/dist/otel/init.d.ts
CHANGED
|
@@ -2,18 +2,13 @@
|
|
|
2
2
|
* One-liner bootstrap for the Introspection OTel surface.
|
|
3
3
|
*
|
|
4
4
|
* `init()` detects the installed LLM frameworks and wires them into one shared
|
|
5
|
-
* pipeline
|
|
5
|
+
* pipeline:
|
|
6
6
|
*
|
|
7
7
|
* ```ts
|
|
8
8
|
* import * as introspection from "@introspection-sdk/introspection-node/otel";
|
|
9
|
-
* import Anthropic from "@anthropic-ai/sdk";
|
|
10
9
|
*
|
|
11
10
|
* await introspection.init({ serviceName: "my-app" });
|
|
12
|
-
*
|
|
13
|
-
* const client = new Anthropic(); // auto-traced — no per-client wiring
|
|
14
|
-
* await introspection.conversation(() =>
|
|
15
|
-
* client.messages.create({ ... }),
|
|
16
|
-
* );
|
|
11
|
+
* // An installed Pi agent is wired into the shared provider automatically.
|
|
17
12
|
* ```
|
|
18
13
|
*
|
|
19
14
|
* It also exposes the `track` / `feedback` / `identify` analytics surface and a
|
|
@@ -22,7 +17,6 @@
|
|
|
22
17
|
import { type TracerProvider } from "@opentelemetry/api";
|
|
23
18
|
import type { SpanProcessor } from "@opentelemetry/sdk-trace-base";
|
|
24
19
|
import type { AdvancedOptions, FeedbackOptions, UserTraits } from "../types.js";
|
|
25
|
-
import type { InstrumentedClaudeAgentSDK } from "./claude-wrapper.js";
|
|
26
20
|
import { type Integration } from "./integrations/index.js";
|
|
27
21
|
import type { Agent } from "@earendil-works/pi-agent-core";
|
|
28
22
|
import type { AgentMeta } from "./pi.js";
|
|
@@ -44,7 +38,7 @@ export interface InitOptions {
|
|
|
44
38
|
/**
|
|
45
39
|
* Extra span processors composed onto the provider `init()` creates — the
|
|
46
40
|
* one-call dual-export path. Each runs alongside the Introspection processor,
|
|
47
|
-
* e.g. `init({ spanProcessors: [new BatchSpanProcessor(
|
|
41
|
+
* e.g. `init({ spanProcessors: [new BatchSpanProcessor(otherBackendExporter)] })`.
|
|
48
42
|
* Ignored when `tracerProvider` is supplied.
|
|
49
43
|
*/
|
|
50
44
|
spanProcessors?: SpanProcessor[];
|
|
@@ -57,7 +51,7 @@ export interface InitOptions {
|
|
|
57
51
|
/** Advanced configuration (custom exporter, headers, …). */
|
|
58
52
|
advanced?: AdvancedOptions;
|
|
59
53
|
}
|
|
60
|
-
/** Generate a fresh conversation id
|
|
54
|
+
/** Generate a fresh conversation id in the format the backend expects. */
|
|
61
55
|
export declare function newConversationId(): string;
|
|
62
56
|
/**
|
|
63
57
|
* Detect installed LLM frameworks and wire them into one shared provider.
|
|
@@ -86,6 +80,14 @@ export declare function identify(userId: string, traits?: UserTraits, anonymousI
|
|
|
86
80
|
* await introspection.conversation((id) => client.messages.create({ ... }));
|
|
87
81
|
* await introspection.conversation("conv_123", (id) => run());
|
|
88
82
|
* ```
|
|
83
|
+
*
|
|
84
|
+
* Unlike the `with*` helpers below, this does not require {@link init}: a
|
|
85
|
+
* conversation id is minted locally and scoped on W3C baggage, which is
|
|
86
|
+
* ordinary OpenTelemetry context and needs no exporter behind it. Routing it
|
|
87
|
+
* through the global client made `conversation()` throw before `init()` even
|
|
88
|
+
* though nothing in it had anything to send -- so the id a caller wanted to
|
|
89
|
+
* mint before configuring telemetry, or to hand to a service that exports on
|
|
90
|
+
* its own, was unreachable.
|
|
89
91
|
*/
|
|
90
92
|
export declare function conversation<T>(callback: (conversationId: string) => T | Promise<T>): Promise<T>;
|
|
91
93
|
export declare function conversation<T>(conversationId: string, callback: (conversationId: string) => T | Promise<T>): Promise<T>;
|
|
@@ -105,21 +107,17 @@ export declare function withConversation<T>(conversationId: string | undefined,
|
|
|
105
107
|
export declare function withUserId<T>(userId: string, callback: () => T | Promise<T>): Promise<T>;
|
|
106
108
|
/** Run `callback` with `identity.anonymous_id` on the baggage. Requires {@link init} first. */
|
|
107
109
|
export declare function withAnonymousId<T>(anonymousId: string, callback: () => T | Promise<T>): Promise<T>;
|
|
108
|
-
/**
|
|
109
|
-
* The LangChain handler bound by `init()`. Attach it per-invoke:
|
|
110
|
-
* `chain.invoke(input, { callbacks: [introspection.getLangchainHandler()] })`.
|
|
111
|
-
*/
|
|
112
|
-
export declare function getLangchainHandler(): import("./langchain-handler.js").IntrospectionCallbackHandler;
|
|
113
|
-
/** The Mastra exporter bound by `init()`. Put it in `observability.configs`. */
|
|
114
|
-
export declare function getMastraExporter(): any;
|
|
115
110
|
/** Instrument a Pi `Agent` against the shared provider. Requires {@link init}. */
|
|
116
111
|
export declare function instrumentPi(agent: Agent, meta: AgentMeta): void;
|
|
117
112
|
/**
|
|
118
|
-
*
|
|
119
|
-
*
|
|
113
|
+
* Flush and shut down the logs client and, if `init()` created it, the
|
|
114
|
+
* provider.
|
|
115
|
+
*
|
|
116
|
+
* A provider you passed via `init({ tracerProvider })` is **yours** — this
|
|
117
|
+
* leaves it running, so any processors you attached to it (a second
|
|
118
|
+
* OTLP backend, for instance) are not flushed. Call `provider.shutdown()`
|
|
119
|
+
* yourself after this.
|
|
120
120
|
*/
|
|
121
|
-
export declare function instrumentClaudeAgent(sdk: any): InstrumentedClaudeAgentSDK;
|
|
122
|
-
/** Flush and shut down the logs client and (if owned) the provider. */
|
|
123
121
|
export declare function shutdown(): Promise<void>;
|
|
124
122
|
/** Reset module state. Test-only utility. */
|
|
125
123
|
export declare function _resetForTests(): void;
|
package/dist/otel/init.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/otel/init.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/otel/init.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAwB,KAAK,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAK/E,OAAO,KAAK,EAEV,aAAa,EACd,MAAM,+BAA+B,CAAC;AAIvC,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEhF,OAAO,EAIL,KAAK,WAAW,EAGjB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AAE3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,KAAK,gBAAgB,EAAuB,MAAM,YAAY,CAAC;AAGxE,gCAAgC;AAChC,MAAM,WAAW,WAAW;IAC1B,uDAAuD;IACvD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0EAA0E;IAC1E,WAAW,CAAC,EAAE,M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