langwatch 2.0.0 → 2.2.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/agent/index.js +1 -1
- package/dist/agent/index.js.map +1 -1
- package/dist/agent/index.mjs +1 -1
- package/dist/agent/index.mjs.map +1 -1
- package/dist/{chunk-F7BVJW3S.js → chunk-E35GFO25.js} +16 -3
- package/dist/chunk-E35GFO25.js.map +1 -0
- package/dist/{chunk-2GKEMCKT.mjs → chunk-FXCZARU3.mjs} +16 -3
- package/dist/{chunk-2GKEMCKT.mjs.map → chunk-FXCZARU3.mjs.map} +1 -1
- package/dist/{chunk-AYPQNLCC.mjs → chunk-OAAGWSLX.mjs} +2 -2
- package/dist/{chunk-M3DSPR5S.mjs → chunk-P65KWWFU.mjs} +2 -2
- package/dist/{chunk-M3DSPR5S.mjs.map → chunk-P65KWWFU.mjs.map} +1 -1
- package/dist/{chunk-MAO3SIBB.js → chunk-PDTYQM5C.js} +2 -2
- package/dist/{chunk-MAO3SIBB.js.map → chunk-PDTYQM5C.js.map} +1 -1
- package/dist/{chunk-DLZCOUXC.js → chunk-TQJS5H5P.js} +12 -12
- package/dist/{chunk-DLZCOUXC.js.map → chunk-TQJS5H5P.js.map} +1 -1
- package/dist/cli/bundle.js +957 -451
- package/dist/{implementation-BXVPzwOt.d.mts → implementation-CMJfitMa.d.mts} +1 -1
- package/dist/{implementation-DJ-JveZl.d.ts → implementation-CaKFOMnp.d.ts} +1 -1
- package/dist/index.d.mts +80 -8
- package/dist/index.d.ts +80 -8
- package/dist/index.js +195 -94
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +120 -19
- package/dist/index.mjs.map +1 -1
- package/dist/observability-sdk/index.d.mts +3 -3
- package/dist/observability-sdk/index.d.ts +3 -3
- package/dist/observability-sdk/index.js +4 -4
- package/dist/observability-sdk/index.js.map +1 -1
- package/dist/observability-sdk/index.mjs +8 -8
- package/dist/observability-sdk/instrumentation/langchain/index.d.mts +1 -1
- package/dist/observability-sdk/instrumentation/langchain/index.d.ts +1 -1
- package/dist/observability-sdk/instrumentation/langchain/index.js +4 -4
- package/dist/observability-sdk/instrumentation/langchain/index.mjs +1 -1
- package/dist/observability-sdk/setup/node/index.js +3 -3
- package/dist/observability-sdk/setup/node/index.mjs +2 -2
- package/dist/{types-CpT3iEIj.d.ts → types-0leNdzy4.d.ts} +581 -23
- package/dist/{types--ExXvd26.d.mts → types-DNjiOkpS.d.mts} +581 -23
- package/package.json +1 -1
- package/dist/chunk-F7BVJW3S.js.map +0 -1
- /package/dist/{chunk-AYPQNLCC.mjs.map → chunk-OAAGWSLX.mjs.map} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
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-
|
|
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-CMJfitMa.mjs';
|
|
2
2
|
import { OTLPLogExporter } from '@opentelemetry/exporter-logs-otlp-proto';
|
|
3
3
|
import { CompressionAlgorithm } from '@opentelemetry/otlp-exporter-base';
|
|
4
4
|
import { D as DataCaptureMode } from '../types-RkiBQZ9j.mjs';
|
|
5
5
|
export { a as DataCaptureConfig, b as DataCaptureContext, c as DataCaptureOptions, d as DataCapturePredicate } from '../types-RkiBQZ9j.mjs';
|
|
6
|
-
import { L as LangWatchSpan } from '../types
|
|
7
|
-
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
|
|
6
|
+
import { L as LangWatchSpan } from '../types-DNjiOkpS.mjs';
|
|
7
|
+
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-DNjiOkpS.mjs';
|
|
8
8
|
import { Span } from '@opentelemetry/api';
|
|
9
9
|
export { S as SemConvAttributeKey, a as SemConvAttributes, b as SemConvLogRecordAttributes, l as attributes } from '../types-CoS5PmeU.mjs';
|
|
10
10
|
import '@opentelemetry/sdk-trace-base';
|
|
@@ -1,10 +1,10 @@
|
|
|
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-
|
|
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-CaKFOMnp.js';
|
|
2
2
|
import { OTLPLogExporter } from '@opentelemetry/exporter-logs-otlp-proto';
|
|
3
3
|
import { CompressionAlgorithm } from '@opentelemetry/otlp-exporter-base';
|
|
4
4
|
import { D as DataCaptureMode } from '../types-RkiBQZ9j.js';
|
|
5
5
|
export { a as DataCaptureConfig, b as DataCaptureContext, c as DataCaptureOptions, d as DataCapturePredicate } from '../types-RkiBQZ9j.js';
|
|
6
|
-
import { L as LangWatchSpan } from '../types-
|
|
7
|
-
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-
|
|
6
|
+
import { L as LangWatchSpan } from '../types-0leNdzy4.js';
|
|
7
|
+
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-0leNdzy4.js';
|
|
8
8
|
import { Span } from '@opentelemetry/api';
|
|
9
9
|
export { S as SemConvAttributeKey, a as SemConvAttributes, b as SemConvLogRecordAttributes, l as attributes } from '../types-CoS5PmeU.js';
|
|
10
10
|
import '@opentelemetry/sdk-trace-base';
|
|
@@ -7,15 +7,15 @@ var _chunkWDUUAIG3js = require('../chunk-WDUUAIG3.js');
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var _chunkMAO3SIBBjs = require('../chunk-MAO3SIBB.js');
|
|
11
|
-
require('../chunk-BL3GHEKF.js');
|
|
12
10
|
|
|
11
|
+
var _chunkE35GFO25js = require('../chunk-E35GFO25.js');
|
|
13
12
|
|
|
14
13
|
|
|
15
14
|
|
|
16
15
|
|
|
17
16
|
|
|
18
|
-
var
|
|
17
|
+
var _chunkPDTYQM5Cjs = require('../chunk-PDTYQM5C.js');
|
|
18
|
+
require('../chunk-BL3GHEKF.js');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -41,5 +41,5 @@ var _chunkN76BG37Wjs = require('../chunk-N76BG37W.js');
|
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
exports.DataCapturePresets = _chunkWDUUAIG3js.DataCapturePresets; exports.FilterableBatchSpanProcessor = _chunkWDUUAIG3js.FilterableBatchSpanProcessor; exports.LangWatchExporter =
|
|
44
|
+
exports.DataCapturePresets = _chunkWDUUAIG3js.DataCapturePresets; exports.FilterableBatchSpanProcessor = _chunkWDUUAIG3js.FilterableBatchSpanProcessor; exports.LangWatchExporter = _chunkPDTYQM5Cjs.LangWatchTraceExporter; exports.LangWatchLogsExporter = _chunkPDTYQM5Cjs.LangWatchLogsExporter; exports.LangWatchTraceExporter = _chunkPDTYQM5Cjs.LangWatchTraceExporter; exports.attributes = _chunkN76BG37Wjs.attributes_exports; exports.createLangWatchSpan = _chunkE35GFO25js.createLangWatchSpan; exports.emitEvaluationEvent = _chunkE35GFO25js.emitEvaluationEvent; exports.getDataCaptureMode = _chunk5VYEG3RSjs.getDataCaptureMode; exports.getLangWatchLogger = _chunkPDTYQM5Cjs.getLangWatchLogger; exports.getLangWatchLoggerFromProvider = _chunkPDTYQM5Cjs.getLangWatchLoggerFromProvider; exports.getLangWatchTracer = _chunkE35GFO25js.getLangWatchTracer; exports.getLangWatchTracerFromProvider = _chunkE35GFO25js.getLangWatchTracerFromProvider; exports.shouldCaptureInput = _chunk5VYEG3RSjs.shouldCaptureInput; exports.shouldCaptureOutput = _chunk5VYEG3RSjs.shouldCaptureOutput; exports.spanTypes = _chunkE35GFO25js.spanTypes;
|
|
45
45
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/langwatch/langwatch/sdks/typescript/dist/observability-sdk/index.js"],"names":[],"mappings":"AAAA;AACE;AACA;AACF,uDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACF,uDAA6B;AAC7B
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/langwatch/langwatch/sdks/typescript/dist/observability-sdk/index.js"],"names":[],"mappings":"AAAA;AACE;AACA;AACF,uDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACF,uDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACF,uDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACA;AACF,uDAA6B;AAC7B;AACE;AACF,uDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,gmCAAC","file":"/home/runner/work/langwatch/langwatch/sdks/typescript/dist/observability-sdk/index.js"}
|
|
@@ -2,20 +2,20 @@ import {
|
|
|
2
2
|
DataCapturePresets,
|
|
3
3
|
FilterableBatchSpanProcessor
|
|
4
4
|
} from "../chunk-XQ4CP2JK.mjs";
|
|
5
|
-
import {
|
|
6
|
-
LangWatchLogsExporter,
|
|
7
|
-
LangWatchTraceExporter,
|
|
8
|
-
getLangWatchLogger,
|
|
9
|
-
getLangWatchLoggerFromProvider
|
|
10
|
-
} from "../chunk-M3DSPR5S.mjs";
|
|
11
|
-
import "../chunk-C7IWJ2GJ.mjs";
|
|
12
5
|
import {
|
|
13
6
|
createLangWatchSpan,
|
|
14
7
|
emitEvaluationEvent,
|
|
15
8
|
getLangWatchTracer,
|
|
16
9
|
getLangWatchTracerFromProvider,
|
|
17
10
|
spanTypes
|
|
18
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-FXCZARU3.mjs";
|
|
12
|
+
import {
|
|
13
|
+
LangWatchLogsExporter,
|
|
14
|
+
LangWatchTraceExporter,
|
|
15
|
+
getLangWatchLogger,
|
|
16
|
+
getLangWatchLoggerFromProvider
|
|
17
|
+
} from "../chunk-P65KWWFU.mjs";
|
|
18
|
+
import "../chunk-C7IWJ2GJ.mjs";
|
|
19
19
|
import {
|
|
20
20
|
getDataCaptureMode,
|
|
21
21
|
shouldCaptureInput,
|
|
@@ -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
|
|
3
|
+
import { j as LangWatchTracer, L as LangWatchSpan, m as ChatMessage } from '../../../types-DNjiOkpS.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-
|
|
3
|
+
import { j as LangWatchTracer, L as LangWatchSpan, m as ChatMessage } from '../../../types-0leNdzy4.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';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkE35GFO25js = require('../../../chunk-E35GFO25.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -30,7 +30,7 @@ var LangWatchCallbackHandler = class extends _base.BaseCallbackHandler {
|
|
|
30
30
|
constructor() {
|
|
31
31
|
super(...arguments);
|
|
32
32
|
this.name = "LangWatchCallbackHandler";
|
|
33
|
-
this.tracer =
|
|
33
|
+
this.tracer = _chunkE35GFO25js.getLangWatchTracer.call(void 0, "langwatch.instrumentation.langchain");
|
|
34
34
|
this.spans = {};
|
|
35
35
|
this.parentOf = {};
|
|
36
36
|
this.skipped = {};
|
|
@@ -336,7 +336,7 @@ function setRunInput(span, input) {
|
|
|
336
336
|
if (input && typeof input === "object" && "type" in input && "value" in input) {
|
|
337
337
|
span.setAttribute(
|
|
338
338
|
_chunkN76BG37Wjs.ATTR_LANGWATCH_INPUT,
|
|
339
|
-
JSON.stringify(
|
|
339
|
+
JSON.stringify(_chunkE35GFO25js.processSpanInputOutput.call(void 0, input.type, input.value))
|
|
340
340
|
);
|
|
341
341
|
return;
|
|
342
342
|
}
|
|
@@ -376,7 +376,7 @@ function wrapNonScalarValues(value) {
|
|
|
376
376
|
if (value === null) return JSON.stringify(null);
|
|
377
377
|
if (typeof value === "string" || typeof value === "number" || typeof value === "boolean")
|
|
378
378
|
return value;
|
|
379
|
-
const chatMessages =
|
|
379
|
+
const chatMessages = _chunkE35GFO25js.chatMessageSchema.array().safeParse(value);
|
|
380
380
|
if (Array.isArray(value) && chatMessages.success) {
|
|
381
381
|
return JSON.stringify({ type: "chat_messages", value: chatMessages.data });
|
|
382
382
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('../../../chunk-
|
|
4
|
+
var _chunkTQJS5H5Pjs = require('../../../chunk-TQJS5H5P.js');
|
|
5
|
+
require('../../../chunk-PDTYQM5C.js');
|
|
6
6
|
require('../../../chunk-BL3GHEKF.js');
|
|
7
7
|
require('../../../chunk-5VYEG3RS.js');
|
|
8
8
|
require('../../../chunk-N76BG37W.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
exports.ensureSetup =
|
|
12
|
+
exports.ensureSetup = _chunkTQJS5H5Pjs.ensureSetup; exports.setupObservability = _chunkTQJS5H5Pjs.setupObservability;
|
|
13
13
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ensureSetup,
|
|
3
3
|
setupObservability
|
|
4
|
-
} from "../../../chunk-
|
|
5
|
-
import "../../../chunk-
|
|
4
|
+
} from "../../../chunk-OAAGWSLX.mjs";
|
|
5
|
+
import "../../../chunk-P65KWWFU.mjs";
|
|
6
6
|
import "../../../chunk-C7IWJ2GJ.mjs";
|
|
7
7
|
import "../../../chunk-SERULD4Z.mjs";
|
|
8
8
|
import "../../../chunk-WSGVZ3J2.mjs";
|