langwatch 0.37.0 → 1.1.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.
Files changed (38) hide show
  1. package/dist/{chunk-F3CCZPMR.mjs → chunk-5AGWTUI2.mjs} +2 -2
  2. package/dist/chunk-5AGWTUI2.mjs.map +1 -0
  3. package/dist/{chunk-W5LSH44Z.mjs → chunk-EW233MAD.mjs} +2 -2
  4. package/dist/{chunk-C323F5VC.mjs → chunk-PYODMDPV.mjs} +1 -1
  5. package/dist/chunk-PYODMDPV.mjs.map +1 -0
  6. package/dist/{chunk-XL6DKL2L.js → chunk-R7NIGAEB.js} +2 -2
  7. package/dist/chunk-R7NIGAEB.js.map +1 -0
  8. package/dist/{chunk-ADJOFPAZ.js → chunk-SCLFEMNK.js} +1 -1
  9. package/dist/chunk-SCLFEMNK.js.map +1 -0
  10. package/dist/{chunk-LDN74L7R.js → chunk-Z7RP3LP5.js} +12 -12
  11. package/dist/{chunk-LDN74L7R.js.map → chunk-Z7RP3LP5.js.map} +1 -1
  12. package/dist/cli/bundle.js +165 -148
  13. package/dist/{implementation-CPfDot-W.d.mts → implementation-DmWrukzX.d.mts} +1 -1
  14. package/dist/{implementation-aYHmyVZ_.d.ts → implementation-Psro9xt4.d.ts} +1 -1
  15. package/dist/index.d.mts +225 -3
  16. package/dist/index.d.ts +225 -3
  17. package/dist/index.js +244 -35
  18. package/dist/index.js.map +1 -1
  19. package/dist/index.mjs +225 -16
  20. package/dist/index.mjs.map +1 -1
  21. package/dist/observability-sdk/index.d.mts +3 -3
  22. package/dist/observability-sdk/index.d.ts +3 -3
  23. package/dist/observability-sdk/index.js +3 -3
  24. package/dist/observability-sdk/index.mjs +2 -2
  25. package/dist/observability-sdk/instrumentation/langchain/index.d.mts +1 -1
  26. package/dist/observability-sdk/instrumentation/langchain/index.d.ts +1 -1
  27. package/dist/observability-sdk/instrumentation/langchain/index.js +3 -3
  28. package/dist/observability-sdk/instrumentation/langchain/index.mjs +1 -1
  29. package/dist/observability-sdk/setup/node/index.js +3 -3
  30. package/dist/observability-sdk/setup/node/index.mjs +2 -2
  31. package/dist/{types-Cw-3VUv7.d.mts → types-Ck1U3XCH.d.mts} +6060 -5780
  32. package/dist/{types-CeZ-M8JZ.d.ts → types-DGBGlP9B.d.ts} +6060 -5780
  33. package/package.json +1 -1
  34. package/dist/chunk-ADJOFPAZ.js.map +0 -1
  35. package/dist/chunk-C323F5VC.mjs.map +0 -1
  36. package/dist/chunk-F3CCZPMR.mjs.map +0 -1
  37. package/dist/chunk-XL6DKL2L.js.map +0 -1
  38. /package/dist/{chunk-W5LSH44Z.mjs.map → chunk-EW233MAD.mjs.map} +0 -0
@@ -1,9 +1,9 @@
1
- export { F as FilterableBatchSpanProcessor, L as LangWatchExporter, b as LangWatchExporterOptions, c as LangWatchLogger, L as LangWatchTraceExporter, b as LangWatchTraceExporterOptions, S as SpanProcessingExcludeRule, g as getLangWatchLogger, d as getLangWatchLoggerFromProvider, a as getLangWatchTracer, e as getLangWatchTracerFromProvider } from '../implementation-CPfDot-W.mjs';
1
+ export { F as FilterableBatchSpanProcessor, L as LangWatchExporter, b as LangWatchExporterOptions, c as LangWatchLogger, L as LangWatchTraceExporter, b as LangWatchTraceExporterOptions, S as SpanProcessingExcludeRule, g as getLangWatchLogger, d as getLangWatchLoggerFromProvider, a as getLangWatchTracer, e as getLangWatchTracerFromProvider } from '../implementation-DmWrukzX.mjs';
2
2
  import { OTLPLogExporter } from '@opentelemetry/exporter-logs-otlp-http';
3
3
  import { D as DataCaptureMode } from '../types-DLfhJb38.mjs';
4
4
  export { a as DataCaptureConfig, b as DataCaptureContext, c as DataCaptureOptions, d as DataCapturePredicate } from '../types-DLfhJb38.mjs';
5
- import { L as LangWatchSpan } from '../types-Cw-3VUv7.mjs';
6
- export { A as AddEvaluationParams, E as EvaluationStatus, e as EvaluationTimestamps, I as INPUT_OUTPUT_TYPES, f as InputOutputType, J as JsonSerializable, g as LangWatchSpanMetrics, h as LangWatchSpanOptions, i as LangWatchSpanRAGContext, j as LangWatchTracer, S as SimpleChatMessage, k as SpanType, l as emitEvaluationEvent, s as spanTypes } from '../types-Cw-3VUv7.mjs';
5
+ import { L as LangWatchSpan } from '../types-Ck1U3XCH.mjs';
6
+ export { A as AddEvaluationParams, E as EvaluationStatus, e as EvaluationTimestamps, I as INPUT_OUTPUT_TYPES, f as InputOutputType, J as JsonSerializable, g as LangWatchSpanMetrics, h as LangWatchSpanOptions, i as LangWatchSpanRAGContext, j as LangWatchTracer, S as SimpleChatMessage, k as SpanType, l as emitEvaluationEvent, s as spanTypes } from '../types-Ck1U3XCH.mjs';
7
7
  import { Span } from '@opentelemetry/api';
8
8
  export { S as SemConvAttributeKey, a as SemConvAttributes, b as SemConvLogRecordAttributes, l as attributes } from '../types-VOZv9LYO.mjs';
9
9
  import '@opentelemetry/sdk-trace-base';
@@ -1,9 +1,9 @@
1
- export { F as FilterableBatchSpanProcessor, L as LangWatchExporter, b as LangWatchExporterOptions, c as LangWatchLogger, L as LangWatchTraceExporter, b as LangWatchTraceExporterOptions, S as SpanProcessingExcludeRule, g as getLangWatchLogger, d as getLangWatchLoggerFromProvider, a as getLangWatchTracer, e as getLangWatchTracerFromProvider } from '../implementation-aYHmyVZ_.js';
1
+ export { F as FilterableBatchSpanProcessor, L as LangWatchExporter, b as LangWatchExporterOptions, c as LangWatchLogger, L as LangWatchTraceExporter, b as LangWatchTraceExporterOptions, S as SpanProcessingExcludeRule, g as getLangWatchLogger, d as getLangWatchLoggerFromProvider, a as getLangWatchTracer, e as getLangWatchTracerFromProvider } from '../implementation-Psro9xt4.js';
2
2
  import { OTLPLogExporter } from '@opentelemetry/exporter-logs-otlp-http';
3
3
  import { D as DataCaptureMode } from '../types-DLfhJb38.js';
4
4
  export { a as DataCaptureConfig, b as DataCaptureContext, c as DataCaptureOptions, d as DataCapturePredicate } from '../types-DLfhJb38.js';
5
- import { L as LangWatchSpan } from '../types-CeZ-M8JZ.js';
6
- export { A as AddEvaluationParams, E as EvaluationStatus, e as EvaluationTimestamps, I as INPUT_OUTPUT_TYPES, f as InputOutputType, J as JsonSerializable, g as LangWatchSpanMetrics, h as LangWatchSpanOptions, i as LangWatchSpanRAGContext, j as LangWatchTracer, S as SimpleChatMessage, k as SpanType, l as emitEvaluationEvent, s as spanTypes } from '../types-CeZ-M8JZ.js';
5
+ import { L as LangWatchSpan } from '../types-DGBGlP9B.js';
6
+ export { A as AddEvaluationParams, E as EvaluationStatus, e as EvaluationTimestamps, I as INPUT_OUTPUT_TYPES, f as InputOutputType, J as JsonSerializable, g as LangWatchSpanMetrics, h as LangWatchSpanOptions, i as LangWatchSpanRAGContext, j as LangWatchTracer, S as SimpleChatMessage, k as SpanType, l as emitEvaluationEvent, s as spanTypes } from '../types-DGBGlP9B.js';
7
7
  import { Span } from '@opentelemetry/api';
8
8
  export { S as SemConvAttributeKey, a as SemConvAttributes, b as SemConvLogRecordAttributes, l as attributes } from '../types-VOZv9LYO.js';
9
9
  import '@opentelemetry/sdk-trace-base';
@@ -8,13 +8,13 @@ var _chunkIUSLT65Zjs = require('../chunk-IUSLT65Z.js');
8
8
 
9
9
 
10
10
 
11
- var _chunkADJOFPAZjs = require('../chunk-ADJOFPAZ.js');
11
+ var _chunkSCLFEMNKjs = require('../chunk-SCLFEMNK.js');
12
12
 
13
13
 
14
14
 
15
15
 
16
16
 
17
- var _chunkXL6DKL2Ljs = require('../chunk-XL6DKL2L.js');
17
+ var _chunkR7NIGAEBjs = require('../chunk-R7NIGAEB.js');
18
18
 
19
19
 
20
20
 
@@ -38,5 +38,5 @@ var _chunkTKSTXX3Djs = require('../chunk-TKSTXX3D.js');
38
38
 
39
39
 
40
40
 
41
- exports.DataCapturePresets = _chunkIUSLT65Zjs.DataCapturePresets; exports.FilterableBatchSpanProcessor = _chunkIUSLT65Zjs.FilterableBatchSpanProcessor; exports.LangWatchExporter = _chunkXL6DKL2Ljs.LangWatchTraceExporter; exports.LangWatchLogsExporter = _chunkXL6DKL2Ljs.LangWatchLogsExporter; exports.LangWatchTraceExporter = _chunkXL6DKL2Ljs.LangWatchTraceExporter; exports.attributes = _chunkTKSTXX3Djs.attributes_exports; exports.createLangWatchSpan = _chunkADJOFPAZjs.createLangWatchSpan; exports.emitEvaluationEvent = _chunkADJOFPAZjs.emitEvaluationEvent; exports.getDataCaptureMode = _chunkTKSTXX3Djs.getDataCaptureMode; exports.getLangWatchLogger = _chunkXL6DKL2Ljs.getLangWatchLogger; exports.getLangWatchLoggerFromProvider = _chunkXL6DKL2Ljs.getLangWatchLoggerFromProvider; exports.getLangWatchTracer = _chunkADJOFPAZjs.getLangWatchTracer; exports.getLangWatchTracerFromProvider = _chunkADJOFPAZjs.getLangWatchTracerFromProvider; exports.shouldCaptureInput = _chunkTKSTXX3Djs.shouldCaptureInput; exports.shouldCaptureOutput = _chunkTKSTXX3Djs.shouldCaptureOutput; exports.spanTypes = _chunkADJOFPAZjs.spanTypes;
41
+ exports.DataCapturePresets = _chunkIUSLT65Zjs.DataCapturePresets; exports.FilterableBatchSpanProcessor = _chunkIUSLT65Zjs.FilterableBatchSpanProcessor; exports.LangWatchExporter = _chunkR7NIGAEBjs.LangWatchTraceExporter; exports.LangWatchLogsExporter = _chunkR7NIGAEBjs.LangWatchLogsExporter; exports.LangWatchTraceExporter = _chunkR7NIGAEBjs.LangWatchTraceExporter; exports.attributes = _chunkTKSTXX3Djs.attributes_exports; exports.createLangWatchSpan = _chunkSCLFEMNKjs.createLangWatchSpan; exports.emitEvaluationEvent = _chunkSCLFEMNKjs.emitEvaluationEvent; exports.getDataCaptureMode = _chunkTKSTXX3Djs.getDataCaptureMode; exports.getLangWatchLogger = _chunkR7NIGAEBjs.getLangWatchLogger; exports.getLangWatchLoggerFromProvider = _chunkR7NIGAEBjs.getLangWatchLoggerFromProvider; exports.getLangWatchTracer = _chunkSCLFEMNKjs.getLangWatchTracer; exports.getLangWatchTracerFromProvider = _chunkSCLFEMNKjs.getLangWatchTracerFromProvider; exports.shouldCaptureInput = _chunkTKSTXX3Djs.shouldCaptureInput; exports.shouldCaptureOutput = _chunkTKSTXX3Djs.shouldCaptureOutput; exports.spanTypes = _chunkSCLFEMNKjs.spanTypes;
42
42
  //# sourceMappingURL=index.js.map
@@ -8,13 +8,13 @@ import {
8
8
  getLangWatchTracer,
9
9
  getLangWatchTracerFromProvider,
10
10
  spanTypes
11
- } from "../chunk-C323F5VC.mjs";
11
+ } from "../chunk-PYODMDPV.mjs";
12
12
  import {
13
13
  LangWatchLogsExporter,
14
14
  LangWatchTraceExporter,
15
15
  getLangWatchLogger,
16
16
  getLangWatchLoggerFromProvider
17
- } from "../chunk-F3CCZPMR.mjs";
17
+ } from "../chunk-5AGWTUI2.mjs";
18
18
  import {
19
19
  attributes_exports,
20
20
  getDataCaptureMode,
@@ -1,6 +1,6 @@
1
1
  import * as _opentelemetry_api from '@opentelemetry/api';
2
2
  import { Attributes } from '@opentelemetry/api';
3
- import { j as LangWatchTracer, L as LangWatchSpan, m as ChatMessage } from '../../../types-Cw-3VUv7.mjs';
3
+ import { j as LangWatchTracer, L as LangWatchSpan, m as ChatMessage } from '../../../types-Ck1U3XCH.mjs';
4
4
  import { AgentAction, AgentFinish } from '@langchain/core/agents';
5
5
  import { BaseCallbackHandler } from '@langchain/core/callbacks/base';
6
6
  import { DocumentInterface } from '@langchain/core/documents';
@@ -1,6 +1,6 @@
1
1
  import * as _opentelemetry_api from '@opentelemetry/api';
2
2
  import { Attributes } from '@opentelemetry/api';
3
- import { j as LangWatchTracer, L as LangWatchSpan, m as ChatMessage } from '../../../types-CeZ-M8JZ.js';
3
+ import { j as LangWatchTracer, L as LangWatchSpan, m as ChatMessage } from '../../../types-DGBGlP9B.js';
4
4
  import { AgentAction, AgentFinish } from '@langchain/core/agents';
5
5
  import { BaseCallbackHandler } from '@langchain/core/callbacks/base';
6
6
  import { DocumentInterface } from '@langchain/core/documents';
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkADJOFPAZjs = require('../../../chunk-ADJOFPAZ.js');
4
+ var _chunkSCLFEMNKjs = require('../../../chunk-SCLFEMNK.js');
5
5
 
6
6
 
7
7
 
@@ -29,7 +29,7 @@ var LangWatchCallbackHandler = class extends _base.BaseCallbackHandler {
29
29
  constructor() {
30
30
  super(...arguments);
31
31
  this.name = "LangWatchCallbackHandler";
32
- this.tracer = _chunkADJOFPAZjs.getLangWatchTracer.call(void 0, "langwatch.instrumentation.langchain");
32
+ this.tracer = _chunkSCLFEMNKjs.getLangWatchTracer.call(void 0, "langwatch.instrumentation.langchain");
33
33
  this.spans = {};
34
34
  this.parentOf = {};
35
35
  this.skipped = {};
@@ -360,7 +360,7 @@ function wrapNonScalarValues(value) {
360
360
  if (value === null) return JSON.stringify(null);
361
361
  if (typeof value === "string" || typeof value === "number" || typeof value === "boolean")
362
362
  return value;
363
- const chatMessages = _chunkADJOFPAZjs.chatMessageSchema.array().safeParse(value);
363
+ const chatMessages = _chunkSCLFEMNKjs.chatMessageSchema.array().safeParse(value);
364
364
  if (Array.isArray(value) && chatMessages.success) {
365
365
  return JSON.stringify({ type: "chat_messages", value: chatMessages.data });
366
366
  }
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  chatMessageSchema,
3
3
  getLangWatchTracer
4
- } from "../../../chunk-C323F5VC.mjs";
4
+ } from "../../../chunk-PYODMDPV.mjs";
5
5
  import {
6
6
  __spreadValues,
7
7
  shouldCaptureInput,
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkLDN74L7Rjs = require('../../../chunk-LDN74L7R.js');
5
- require('../../../chunk-XL6DKL2L.js');
4
+ var _chunkZ7RP3LP5js = require('../../../chunk-Z7RP3LP5.js');
5
+ require('../../../chunk-R7NIGAEB.js');
6
6
  require('../../../chunk-TKSTXX3D.js');
7
7
 
8
8
 
9
9
 
10
- exports.ensureSetup = _chunkLDN74L7Rjs.ensureSetup; exports.setupObservability = _chunkLDN74L7Rjs.setupObservability;
10
+ exports.ensureSetup = _chunkZ7RP3LP5js.ensureSetup; exports.setupObservability = _chunkZ7RP3LP5js.setupObservability;
11
11
  //# sourceMappingURL=index.js.map
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  ensureSetup,
3
3
  setupObservability
4
- } from "../../../chunk-W5LSH44Z.mjs";
5
- import "../../../chunk-F3CCZPMR.mjs";
4
+ } from "../../../chunk-EW233MAD.mjs";
5
+ import "../../../chunk-5AGWTUI2.mjs";
6
6
  import "../../../chunk-L5KBRKHS.mjs";
7
7
  export {
8
8
  ensureSetup,