raindrop-ai 0.0.49 → 0.0.51
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/{index-C86NGhKr.d.mts → index-BAwkDswC.d.mts} +8 -0
- package/dist/{index-C86NGhKr.d.ts → index-BAwkDswC.d.ts} +8 -0
- package/dist/index.d.mts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +8 -2
- package/dist/index.mjs +8 -2
- package/dist/tracing/index.d.mts +1 -1
- package/dist/tracing/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { Attachment } from '@dawn/schemas/ingest';
|
|
2
2
|
import { Span } from '@opentelemetry/api';
|
|
3
|
+
import { SpanProcessor } from '@opentelemetry/sdk-trace-node';
|
|
4
|
+
import { SpanProcessorOptions } from '@traceloop/node-server-sdk';
|
|
3
5
|
|
|
4
6
|
/**
|
|
5
7
|
* Interface for tracking events.
|
|
@@ -326,6 +328,11 @@ interface AnalyticsConfig {
|
|
|
326
328
|
debugLogs?: boolean;
|
|
327
329
|
endpoint?: string;
|
|
328
330
|
redactPii?: boolean;
|
|
331
|
+
/**
|
|
332
|
+
* false by default. If true, raindrop doesn't initialize OTEL tracing.
|
|
333
|
+
* you can then use the span processor using raindrop.createSpanProcessor()
|
|
334
|
+
*/
|
|
335
|
+
disableTracing?: boolean;
|
|
329
336
|
}
|
|
330
337
|
declare const MAX_INGEST_SIZE_BYTES: number;
|
|
331
338
|
declare class Raindrop {
|
|
@@ -362,6 +369,7 @@ declare class Raindrop {
|
|
|
362
369
|
* @returns The tracer object.
|
|
363
370
|
*/
|
|
364
371
|
tracer(globalProperties?: Record<string, string>): Tracer;
|
|
372
|
+
createSpanProcessor(processorOptions?: SpanProcessorOptions): SpanProcessor;
|
|
365
373
|
/**
|
|
366
374
|
* Resumes an existing interaction.
|
|
367
375
|
*
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { Attachment } from '@dawn/schemas/ingest';
|
|
2
2
|
import { Span } from '@opentelemetry/api';
|
|
3
|
+
import { SpanProcessor } from '@opentelemetry/sdk-trace-node';
|
|
4
|
+
import { SpanProcessorOptions } from '@traceloop/node-server-sdk';
|
|
3
5
|
|
|
4
6
|
/**
|
|
5
7
|
* Interface for tracking events.
|
|
@@ -326,6 +328,11 @@ interface AnalyticsConfig {
|
|
|
326
328
|
debugLogs?: boolean;
|
|
327
329
|
endpoint?: string;
|
|
328
330
|
redactPii?: boolean;
|
|
331
|
+
/**
|
|
332
|
+
* false by default. If true, raindrop doesn't initialize OTEL tracing.
|
|
333
|
+
* you can then use the span processor using raindrop.createSpanProcessor()
|
|
334
|
+
*/
|
|
335
|
+
disableTracing?: boolean;
|
|
329
336
|
}
|
|
330
337
|
declare const MAX_INGEST_SIZE_BYTES: number;
|
|
331
338
|
declare class Raindrop {
|
|
@@ -362,6 +369,7 @@ declare class Raindrop {
|
|
|
362
369
|
* @returns The tracer object.
|
|
363
370
|
*/
|
|
364
371
|
tracer(globalProperties?: Record<string, string>): Tracer;
|
|
372
|
+
createSpanProcessor(processorOptions?: SpanProcessorOptions): SpanProcessor;
|
|
365
373
|
/**
|
|
366
374
|
* Resumes an existing interaction.
|
|
367
375
|
*
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
export { M as MAX_INGEST_SIZE_BYTES, R as Raindrop, R as default } from './index-
|
|
1
|
+
export { M as MAX_INGEST_SIZE_BYTES, R as Raindrop, R as default } from './index-BAwkDswC.mjs';
|
|
2
|
+
import '@opentelemetry/sdk-trace-node';
|
|
3
|
+
import '@traceloop/node-server-sdk';
|
|
2
4
|
import '@dawn/schemas/ingest';
|
|
3
5
|
import '@opentelemetry/api';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
export { M as MAX_INGEST_SIZE_BYTES, R as Raindrop, R as default } from './index-
|
|
1
|
+
export { M as MAX_INGEST_SIZE_BYTES, R as Raindrop, R as default } from './index-BAwkDswC.js';
|
|
2
|
+
import '@opentelemetry/sdk-trace-node';
|
|
3
|
+
import '@traceloop/node-server-sdk';
|
|
2
4
|
import '@dawn/schemas/ingest';
|
|
3
5
|
import '@opentelemetry/api';
|
package/dist/index.js
CHANGED
|
@@ -7961,7 +7961,7 @@ var CategorizationRequestSchema = import_zod.z.object({
|
|
|
7961
7961
|
// package.json
|
|
7962
7962
|
var package_default = {
|
|
7963
7963
|
name: "raindrop-ai",
|
|
7964
|
-
version: "0.0.
|
|
7964
|
+
version: "0.0.51",
|
|
7965
7965
|
main: "dist/index.js",
|
|
7966
7966
|
module: "dist/index.mjs",
|
|
7967
7967
|
types: "dist/index.d.ts",
|
|
@@ -8372,7 +8372,10 @@ var Raindrop = class {
|
|
|
8372
8372
|
this.writeKey,
|
|
8373
8373
|
{
|
|
8374
8374
|
disableBatch: false,
|
|
8375
|
-
logLevel: this.debugLogs ? "debug" : "error"
|
|
8375
|
+
logLevel: this.debugLogs ? "debug" : "error",
|
|
8376
|
+
// If the user wants to use span processor
|
|
8377
|
+
// we disable tracing so that traceloop doesn't initialize OTEL tracing
|
|
8378
|
+
tracingEnabled: config.disableTracing === true ? false : true
|
|
8376
8379
|
},
|
|
8377
8380
|
this.debugLogs
|
|
8378
8381
|
);
|
|
@@ -8402,6 +8405,9 @@ var Raindrop = class {
|
|
|
8402
8405
|
tracer(globalProperties) {
|
|
8403
8406
|
return this._tracing.tracer(globalProperties);
|
|
8404
8407
|
}
|
|
8408
|
+
createSpanProcessor(processorOptions) {
|
|
8409
|
+
return this._tracing.createSpanProcessor(processorOptions);
|
|
8410
|
+
}
|
|
8405
8411
|
/**
|
|
8406
8412
|
* Resumes an existing interaction.
|
|
8407
8413
|
*
|
package/dist/index.mjs
CHANGED
|
@@ -84,7 +84,7 @@ var CategorizationRequestSchema = z.object({
|
|
|
84
84
|
// package.json
|
|
85
85
|
var package_default = {
|
|
86
86
|
name: "raindrop-ai",
|
|
87
|
-
version: "0.0.
|
|
87
|
+
version: "0.0.51",
|
|
88
88
|
main: "dist/index.js",
|
|
89
89
|
module: "dist/index.mjs",
|
|
90
90
|
types: "dist/index.d.ts",
|
|
@@ -297,7 +297,10 @@ var Raindrop = class {
|
|
|
297
297
|
this.writeKey,
|
|
298
298
|
{
|
|
299
299
|
disableBatch: false,
|
|
300
|
-
logLevel: this.debugLogs ? "debug" : "error"
|
|
300
|
+
logLevel: this.debugLogs ? "debug" : "error",
|
|
301
|
+
// If the user wants to use span processor
|
|
302
|
+
// we disable tracing so that traceloop doesn't initialize OTEL tracing
|
|
303
|
+
tracingEnabled: config.disableTracing === true ? false : true
|
|
301
304
|
},
|
|
302
305
|
this.debugLogs
|
|
303
306
|
);
|
|
@@ -327,6 +330,9 @@ var Raindrop = class {
|
|
|
327
330
|
tracer(globalProperties) {
|
|
328
331
|
return this._tracing.tracer(globalProperties);
|
|
329
332
|
}
|
|
333
|
+
createSpanProcessor(processorOptions) {
|
|
334
|
+
return this._tracing.createSpanProcessor(processorOptions);
|
|
335
|
+
}
|
|
330
336
|
/**
|
|
331
337
|
* Resumes an existing interaction.
|
|
332
338
|
*
|
package/dist/tracing/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SpanProcessor } from '@opentelemetry/sdk-trace-node';
|
|
2
2
|
import * as traceloop from '@traceloop/node-server-sdk';
|
|
3
|
-
import { R as Raindrop, P as PartialAiTrackEvent, I as Interaction, T as Tracer } from '../index-
|
|
3
|
+
import { R as Raindrop, P as PartialAiTrackEvent, I as Interaction, T as Tracer } from '../index-BAwkDswC.mjs';
|
|
4
4
|
import '@dawn/schemas/ingest';
|
|
5
5
|
import '@opentelemetry/api';
|
|
6
6
|
|
package/dist/tracing/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SpanProcessor } from '@opentelemetry/sdk-trace-node';
|
|
2
2
|
import * as traceloop from '@traceloop/node-server-sdk';
|
|
3
|
-
import { R as Raindrop, P as PartialAiTrackEvent, I as Interaction, T as Tracer } from '../index-
|
|
3
|
+
import { R as Raindrop, P as PartialAiTrackEvent, I as Interaction, T as Tracer } from '../index-BAwkDswC.js';
|
|
4
4
|
import '@dawn/schemas/ingest';
|
|
5
5
|
import '@opentelemetry/api';
|
|
6
6
|
|