raindrop-ai 0.0.70 → 0.0.71-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/dist/index.d.mts CHANGED
@@ -407,6 +407,39 @@ interface AnalyticsConfig {
407
407
  * Useful for development/test environments.
408
408
  */
409
409
  disabled?: boolean;
410
+ /**
411
+ * Explicitly specify modules to instrument. Optional.
412
+ *
413
+ * Pass the module constructors/namespaces you want to instrument:
414
+ * @example
415
+ * ```ts
416
+ * import OpenAI from "openai";
417
+ * import Anthropic from "@anthropic-ai/sdk";
418
+ *
419
+ * const raindrop = new Raindrop({
420
+ * writeKey: "xxx",
421
+ * instrumentModules: {
422
+ * openAI: OpenAI,
423
+ * anthropic: Anthropic,
424
+ * },
425
+ * });
426
+ * ```
427
+ */
428
+ instrumentModules?: {
429
+ openAI?: unknown;
430
+ anthropic?: unknown;
431
+ cohere?: unknown;
432
+ bedrock?: unknown;
433
+ google_vertexai?: unknown;
434
+ google_aiplatform?: unknown;
435
+ pinecone?: unknown;
436
+ together?: unknown;
437
+ langchain?: boolean;
438
+ llamaIndex?: unknown;
439
+ chromadb?: unknown;
440
+ qdrant?: unknown;
441
+ mcp?: unknown;
442
+ } & Record<string, unknown>;
410
443
  }
411
444
  declare const MAX_INGEST_SIZE_BYTES: number;
412
445
  declare class Raindrop {
package/dist/index.d.ts CHANGED
@@ -407,6 +407,39 @@ interface AnalyticsConfig {
407
407
  * Useful for development/test environments.
408
408
  */
409
409
  disabled?: boolean;
410
+ /**
411
+ * Explicitly specify modules to instrument. Optional.
412
+ *
413
+ * Pass the module constructors/namespaces you want to instrument:
414
+ * @example
415
+ * ```ts
416
+ * import OpenAI from "openai";
417
+ * import Anthropic from "@anthropic-ai/sdk";
418
+ *
419
+ * const raindrop = new Raindrop({
420
+ * writeKey: "xxx",
421
+ * instrumentModules: {
422
+ * openAI: OpenAI,
423
+ * anthropic: Anthropic,
424
+ * },
425
+ * });
426
+ * ```
427
+ */
428
+ instrumentModules?: {
429
+ openAI?: unknown;
430
+ anthropic?: unknown;
431
+ cohere?: unknown;
432
+ bedrock?: unknown;
433
+ google_vertexai?: unknown;
434
+ google_aiplatform?: unknown;
435
+ pinecone?: unknown;
436
+ together?: unknown;
437
+ langchain?: boolean;
438
+ llamaIndex?: unknown;
439
+ chromadb?: unknown;
440
+ qdrant?: unknown;
441
+ mcp?: unknown;
442
+ } & Record<string, unknown>;
410
443
  }
411
444
  declare const MAX_INGEST_SIZE_BYTES: number;
412
445
  declare class Raindrop {
package/dist/index.js CHANGED
@@ -128,7 +128,7 @@ var CategorizationRequestSchema = import_zod.z.object({
128
128
  // package.json
129
129
  var package_default = {
130
130
  name: "raindrop-ai",
131
- version: "0.0.70",
131
+ version: "0.0.71",
132
132
  main: "dist/index.js",
133
133
  module: "dist/index.mjs",
134
134
  types: "dist/index.d.ts",
@@ -623,7 +623,8 @@ var Raindrop = class {
623
623
  logLevel: this.debugLogs ? "debug" : "error",
624
624
  // If the user wants to use span processor
625
625
  // we disable tracing so that traceloop doesn't initialize OTEL tracing
626
- tracingEnabled: config.disableTracing === true || this.disabled ? false : true
626
+ tracingEnabled: config.disableTracing === true || this.disabled ? false : true,
627
+ instrumentModules: config.instrumentModules
627
628
  },
628
629
  this.debugLogs
629
630
  );
package/dist/index.mjs CHANGED
@@ -104,7 +104,7 @@ var CategorizationRequestSchema = z.object({
104
104
  // package.json
105
105
  var package_default = {
106
106
  name: "raindrop-ai",
107
- version: "0.0.70",
107
+ version: "0.0.71",
108
108
  main: "dist/index.js",
109
109
  module: "dist/index.mjs",
110
110
  types: "dist/index.d.ts",
@@ -395,7 +395,8 @@ var Raindrop = class {
395
395
  logLevel: this.debugLogs ? "debug" : "error",
396
396
  // If the user wants to use span processor
397
397
  // we disable tracing so that traceloop doesn't initialize OTEL tracing
398
- tracingEnabled: config.disableTracing === true || this.disabled ? false : true
398
+ tracingEnabled: config.disableTracing === true || this.disabled ? false : true,
399
+ instrumentModules: config.instrumentModules
399
400
  },
400
401
  this.debugLogs
401
402
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "raindrop-ai",
3
- "version": "0.0.70",
3
+ "version": "0.0.71-otelv2",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",
@@ -50,7 +50,7 @@
50
50
  "zod": "^3.23.8"
51
51
  },
52
52
  "optionalDependencies": {
53
- "@traceloop/node-server-sdk": "0.19.0-otel-v1"
53
+ "@traceloop/node-server-sdk": "0.22.2"
54
54
  },
55
55
  "publishConfig": {
56
56
  "access": "public",