raindrop-ai 1.0.5 → 1.0.6-otelv2

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 CHANGED
@@ -547,6 +547,14 @@ Carriers are also readable in LangSmith's `langsmith-trace` +
547
547
  `langsmith-metadata` shape, so a service already propagating those links with no
548
548
  call-site change.
549
549
 
550
+ ## Tool spans with a saved parent
551
+
552
+ `interaction.trackTool({ name, ..., traceId, parentSpanId })` records a
553
+ retroactive tool span under a span you saved earlier (W3C hex ids, for example
554
+ from another process). The saved parent is honored in both modes: the default
555
+ OpenTelemetry mode and `bypassOtelForTools: true`. Without valid ids the span
556
+ nests under the active context as usual.
557
+
550
558
  ## Payload size limits
551
559
 
552
560
  Text fields (ai input/output, tool span I/O, span content) are capped at
@@ -565,8 +573,10 @@ const raindrop = new Raindrop({
565
573
 
566
574
  A stricter `OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT` env var is still honored
567
575
  for span content. All outbound HTTP carries finite timeouts, and
568
- `raindrop.close()` runs under a 10s deadline so a dead network can never
569
- wedge your process exit.
576
+ `raindrop.close()` runs under a 10s deadline (`flushTimeoutMs`) so a dead
577
+ network can never wedge your process exit. Like `forceFlush()`, it resolves
578
+ (never rejects) to `{ delivered, timedOut, dropped, queued, inFlight }`;
579
+ ignoring the result is fine.
570
580
 
571
581
  ## Notes
572
582
 
@@ -1214,7 +1214,7 @@ async function evaluatePortableEvaluator(evaluator, input) {
1214
1214
  if (new Set(input.traces.map((trace) => trace.event.id)).size !== input.traces.length) {
1215
1215
  throw new Error("Raindrop portable evaluator input trace ids must be unique");
1216
1216
  }
1217
- const { runPortableEvaluator } = await import("./portable-runtime-DTCO6KZY.mjs");
1217
+ const { runPortableEvaluator } = await import("./portable-runtime-4KVE4EYZ.mjs");
1218
1218
  const cases = ((_a = input.rows) != null ? _a : []).map(({ rowId, ...pair }) => ({ ...pair, caseId: rowId }));
1219
1219
  if (cases.length > 0 && (cases.length !== input.traces.length || cases.some(
1220
1220
  (entry, index) => {