You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/direct-object-store-export.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,6 +57,8 @@ sdk.start();
57
57
awaitsdk.shutdown();
58
58
```
59
59
60
+
NodeSDK wraps `traceExporter` in a `BatchSpanProcessor`. AgentPond preserves each exporter invocation as one immutable object-store object, so a batch of spans is written as one object. If you configure span processors directly, prefer `BatchSpanProcessor` for production and force-flush at the application's real lifecycle boundary.
Copy file name to clipboardExpand all lines: skills/agentpond-instrumentation/SKILL.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -63,7 +63,7 @@ Stop after presenting the proposal and ask for explicit confirmation before inst
63
63
3. Create or update one centralized server instrumentation module.
64
64
4. Reuse an existing default Firebase Admin app. Add default initialization only when it is absent; follow [references/firebase.md](references/firebase.md).
65
65
5. Create `createFirebaseSpanExporter()` after the default app exists.
66
-
6. Add the exporter to the existing provider. When no provider exists, create one using APIs supported by the installed OpenTelemetry version and a processor appropriate for direct export.
66
+
6. Add the exporter to the existing provider. When no provider exists, create one using APIs supported by the installed OpenTelemetry version and prefer NodeSDK's batched `traceExporter` configuration or an explicit `BatchSpanProcessor`.
67
67
7. Register the selected OpenInference instrumentation before AI clients are created.
68
68
8. Add manual CHAIN and TOOL spans only where auto-instrumentation leaves important application behavior invisible.
69
69
9. Preserve one `session.id` across all turns in the same conversation.
// Add the integration selected for the detected AI SDK or framework.
52
49
],
@@ -55,7 +52,9 @@ const sdk = new NodeSDK({
55
52
sdk.start();
56
53
```
57
54
58
-
Adapt the construction to the installed SDK API and project lifecycle. Initialize the module before instrumented clients. Force-flush at a real lifecycle boundary when required; do not shut down a reusable Functions instance after every request.
55
+
NodeSDK wraps `traceExporter` in a `BatchSpanProcessor`, so each exporter invocation can contain multiple spans and AgentPond writes one object per exported batch. When constructing a provider manually or tuning queue and batch settings, create a `BatchSpanProcessor` explicitly instead. Do not use `SimpleSpanProcessor` for normal production export because it invokes the exporter separately for every ended span.
56
+
57
+
Adapt the construction to the installed SDK API and project lifecycle. Initialize the module before instrumented clients. Force-flush at a real lifecycle boundary when required so queued batches finish exporting; do not shut down a reusable Functions instance after every request.
0 commit comments