raindrop-ai 0.3.1 → 0.4.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/dist/{chunk-4TM4IWHB.mjs → chunk-MZZJWWWB.mjs} +519 -77
- package/dist/{index-DuXeVnSq.d.mts → index-CDmWtd83.d.mts} +40 -3
- package/dist/{index-DuXeVnSq.d.ts → index-CDmWtd83.d.ts} +40 -3
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +561 -132
- package/dist/index.mjs +1 -1
- package/dist/tracing/index.d.mts +4 -4
- package/dist/tracing/index.d.ts +4 -4
- package/dist/tracing/index.js +546 -117
- package/dist/tracing/index.mjs +1 -1
- package/package.json +26 -5
package/dist/index.mjs
CHANGED
package/dist/tracing/index.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Instrumentation } from '@opentelemetry/instrumentation';
|
|
2
|
-
import { R as Raindrop, a as RaindropSpanProcessor, P as PartialAiTrackEvent,
|
|
3
|
-
import * as traceloop from '@traceloop/node-server-sdk';
|
|
2
|
+
import { R as Raindrop, I as InitializeOptions, S as SpanProcessorOptions, a as RaindropSpanProcessor, P as PartialAiTrackEvent, b as Interaction, A as AiTrackUsage, C as CarrierHeaders, T as TraceCarrier, c as SubagentResumeOptions, d as SubagentRun, e as Tracer } from '../index-CDmWtd83.mjs';
|
|
4
3
|
import '@opentelemetry/api';
|
|
5
4
|
import 'zod';
|
|
5
|
+
import '@opentelemetry/sdk-trace-base';
|
|
6
6
|
|
|
7
|
-
interface TracingOptions extends
|
|
7
|
+
interface TracingOptions extends InitializeOptions {
|
|
8
8
|
/**
|
|
9
9
|
* Set to true when you have your own OpenTelemetry NodeSDK.
|
|
10
10
|
*
|
|
@@ -86,7 +86,7 @@ declare const tracing: (analytics: Raindrop, apiUrl: string, writeKey: string, o
|
|
|
86
86
|
* });
|
|
87
87
|
* ```
|
|
88
88
|
*/
|
|
89
|
-
createSpanProcessor(processorOptions?:
|
|
89
|
+
createSpanProcessor(processorOptions?: SpanProcessorOptions): RaindropSpanProcessor;
|
|
90
90
|
begin(traceContext: PartialAiTrackEvent): Interaction;
|
|
91
91
|
recordModelUsage: (params: {
|
|
92
92
|
eventId: string;
|
package/dist/tracing/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Instrumentation } from '@opentelemetry/instrumentation';
|
|
2
|
-
import { R as Raindrop, a as RaindropSpanProcessor, P as PartialAiTrackEvent,
|
|
3
|
-
import * as traceloop from '@traceloop/node-server-sdk';
|
|
2
|
+
import { R as Raindrop, I as InitializeOptions, S as SpanProcessorOptions, a as RaindropSpanProcessor, P as PartialAiTrackEvent, b as Interaction, A as AiTrackUsage, C as CarrierHeaders, T as TraceCarrier, c as SubagentResumeOptions, d as SubagentRun, e as Tracer } from '../index-CDmWtd83.js';
|
|
4
3
|
import '@opentelemetry/api';
|
|
5
4
|
import 'zod';
|
|
5
|
+
import '@opentelemetry/sdk-trace-base';
|
|
6
6
|
|
|
7
|
-
interface TracingOptions extends
|
|
7
|
+
interface TracingOptions extends InitializeOptions {
|
|
8
8
|
/**
|
|
9
9
|
* Set to true when you have your own OpenTelemetry NodeSDK.
|
|
10
10
|
*
|
|
@@ -86,7 +86,7 @@ declare const tracing: (analytics: Raindrop, apiUrl: string, writeKey: string, o
|
|
|
86
86
|
* });
|
|
87
87
|
* ```
|
|
88
88
|
*/
|
|
89
|
-
createSpanProcessor(processorOptions?:
|
|
89
|
+
createSpanProcessor(processorOptions?: SpanProcessorOptions): RaindropSpanProcessor;
|
|
90
90
|
begin(traceContext: PartialAiTrackEvent): Interaction;
|
|
91
91
|
recordModelUsage: (params: {
|
|
92
92
|
eventId: string;
|