langwatch 1.19.0 → 2.0.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 (91) hide show
  1. package/README.md +27 -13
  2. package/dist/agent/index.d.mts +122 -79
  3. package/dist/agent/index.d.ts +122 -79
  4. package/dist/agent/index.js +541 -301
  5. package/dist/agent/index.js.map +1 -1
  6. package/dist/agent/index.mjs +540 -302
  7. package/dist/agent/index.mjs.map +1 -1
  8. package/dist/{chunk-NPEK4RSD.mjs → chunk-2GKEMCKT.mjs} +7757 -2409
  9. package/dist/chunk-2GKEMCKT.mjs.map +1 -0
  10. package/dist/chunk-5VYEG3RS.js +117 -0
  11. package/dist/chunk-5VYEG3RS.js.map +1 -0
  12. package/dist/chunk-AYPQNLCC.mjs +852 -0
  13. package/dist/chunk-AYPQNLCC.mjs.map +1 -0
  14. package/dist/chunk-BL3GHEKF.js +59 -0
  15. package/dist/chunk-BL3GHEKF.js.map +1 -0
  16. package/dist/chunk-C7IWJ2GJ.mjs +59 -0
  17. package/dist/chunk-C7IWJ2GJ.mjs.map +1 -0
  18. package/dist/chunk-DLZCOUXC.js +852 -0
  19. package/dist/chunk-DLZCOUXC.js.map +1 -0
  20. package/dist/{chunk-O4J3ZPZY.js → chunk-F7BVJW3S.js} +7912 -2564
  21. package/dist/chunk-F7BVJW3S.js.map +1 -0
  22. package/dist/{chunk-SY5HSL5G.mjs → chunk-M3DSPR5S.mjs} +124 -112
  23. package/dist/chunk-M3DSPR5S.mjs.map +1 -0
  24. package/dist/{chunk-CSV7B7B5.js → chunk-MAO3SIBB.js} +141 -129
  25. package/dist/chunk-MAO3SIBB.js.map +1 -0
  26. package/dist/{chunk-LCG5Y2EG.js → chunk-N76BG37W.js} +15 -101
  27. package/dist/chunk-N76BG37W.js.map +1 -0
  28. package/dist/chunk-SERULD4Z.mjs +117 -0
  29. package/dist/chunk-SERULD4Z.mjs.map +1 -0
  30. package/dist/{chunk-73QOHSHU.js → chunk-WDUUAIG3.js} +2 -2
  31. package/dist/chunk-WDUUAIG3.js.map +1 -0
  32. package/dist/{chunk-WMDQVWA6.mjs → chunk-WSGVZ3J2.mjs} +22 -108
  33. package/dist/chunk-WSGVZ3J2.mjs.map +1 -0
  34. package/dist/{chunk-57L2K66L.mjs → chunk-XQ4CP2JK.mjs} +2 -2
  35. package/dist/chunk-XQ4CP2JK.mjs.map +1 -0
  36. package/dist/cli/bundle.js +853 -552
  37. package/dist/implementation-BXVPzwOt.d.mts +261 -0
  38. package/dist/implementation-DJ-JveZl.d.ts +261 -0
  39. package/dist/index.d.mts +479 -1130
  40. package/dist/index.d.ts +479 -1130
  41. package/dist/index.js +7908 -3525
  42. package/dist/index.js.map +1 -1
  43. package/dist/index.mjs +7883 -3500
  44. package/dist/index.mjs.map +1 -1
  45. package/dist/observability-sdk/index.d.mts +16 -76
  46. package/dist/observability-sdk/index.d.ts +16 -76
  47. package/dist/observability-sdk/index.js +8 -5
  48. package/dist/observability-sdk/index.js.map +1 -1
  49. package/dist/observability-sdk/index.mjs +13 -10
  50. package/dist/observability-sdk/instrumentation/langchain/index.d.mts +3 -5
  51. package/dist/observability-sdk/instrumentation/langchain/index.d.ts +3 -5
  52. package/dist/observability-sdk/instrumentation/langchain/index.js +160 -112
  53. package/dist/observability-sdk/instrumentation/langchain/index.js.map +1 -1
  54. package/dist/observability-sdk/instrumentation/langchain/index.mjs +148 -100
  55. package/dist/observability-sdk/instrumentation/langchain/index.mjs.map +1 -1
  56. package/dist/observability-sdk/semconv/index.d.mts +37 -0
  57. package/dist/observability-sdk/semconv/index.d.ts +37 -0
  58. package/dist/observability-sdk/semconv/index.js +121 -0
  59. package/dist/observability-sdk/semconv/index.js.map +1 -0
  60. package/dist/observability-sdk/semconv/index.mjs +121 -0
  61. package/dist/observability-sdk/semconv/index.mjs.map +1 -0
  62. package/dist/observability-sdk/setup/node/index.d.mts +73 -313
  63. package/dist/observability-sdk/setup/node/index.d.ts +73 -313
  64. package/dist/observability-sdk/setup/node/index.js +6 -4
  65. package/dist/observability-sdk/setup/node/index.js.map +1 -1
  66. package/dist/observability-sdk/setup/node/index.mjs +5 -3
  67. package/dist/types--ExXvd26.d.mts +16583 -0
  68. package/dist/{types-VOZv9LYO.d.ts → types-CoS5PmeU.d.mts} +22 -59
  69. package/dist/{types-VOZv9LYO.d.mts → types-CoS5PmeU.d.ts} +22 -59
  70. package/dist/types-CpT3iEIj.d.ts +16583 -0
  71. package/dist/{types-DLfhJb38.d.mts → types-RkiBQZ9j.d.mts} +1 -6
  72. package/dist/{types-DLfhJb38.d.ts → types-RkiBQZ9j.d.ts} +1 -6
  73. package/dist/values-1yj9l0Sa.d.mts +112 -0
  74. package/dist/values-1yj9l0Sa.d.ts +112 -0
  75. package/package.json +94 -64
  76. package/dist/chunk-57L2K66L.mjs.map +0 -1
  77. package/dist/chunk-73QOHSHU.js.map +0 -1
  78. package/dist/chunk-CSV7B7B5.js.map +0 -1
  79. package/dist/chunk-LCG5Y2EG.js.map +0 -1
  80. package/dist/chunk-NPEK4RSD.mjs.map +0 -1
  81. package/dist/chunk-O4J3ZPZY.js.map +0 -1
  82. package/dist/chunk-PIYOJF6V.mjs +0 -566
  83. package/dist/chunk-PIYOJF6V.mjs.map +0 -1
  84. package/dist/chunk-SY5HSL5G.mjs.map +0 -1
  85. package/dist/chunk-WGLVIV4J.js +0 -566
  86. package/dist/chunk-WGLVIV4J.js.map +0 -1
  87. package/dist/chunk-WMDQVWA6.mjs.map +0 -1
  88. package/dist/implementation-CeTvnq6e.d.mts +0 -716
  89. package/dist/implementation-CsQrexpY.d.ts +0 -716
  90. package/dist/types-ofe1fAYQ.d.mts +0 -38143
  91. package/dist/types-wuYJPoFb.d.ts +0 -38143
@@ -1,56 +1,28 @@
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-CeTvnq6e.mjs';
2
- import { OTLPLogExporter } from '@opentelemetry/exporter-logs-otlp-http';
3
- import { D as DataCaptureMode } from '../types-DLfhJb38.mjs';
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-ofe1fAYQ.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-ofe1fAYQ.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-BXVPzwOt.mjs';
2
+ import { OTLPLogExporter } from '@opentelemetry/exporter-logs-otlp-proto';
3
+ import { CompressionAlgorithm } from '@opentelemetry/otlp-exporter-base';
4
+ import { D as DataCaptureMode } from '../types-RkiBQZ9j.mjs';
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--ExXvd26.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--ExXvd26.mjs';
7
8
  import { Span } from '@opentelemetry/api';
8
- export { S as SemConvAttributeKey, a as SemConvAttributes, b as SemConvLogRecordAttributes, l as attributes } from '../types-VOZv9LYO.mjs';
9
+ export { S as SemConvAttributeKey, a as SemConvAttributes, b as SemConvLogRecordAttributes, l as attributes } from '../types-CoS5PmeU.mjs';
9
10
  import '@opentelemetry/sdk-trace-base';
10
- import '@opentelemetry/exporter-trace-otlp-http';
11
11
  import '@opentelemetry/core';
12
+ import '@opentelemetry/exporter-trace-otlp-proto';
12
13
  import '@opentelemetry/api-logs';
14
+ import '../values-1yj9l0Sa.mjs';
13
15
  import 'zod';
14
- import '@opentelemetry/semantic-conventions';
15
- import '@opentelemetry/semantic-conventions/incubating';
16
16
 
17
17
  interface LangWatchLogsExporterOptions {
18
18
  endpoint?: string;
19
19
  apiKey?: string;
20
+ /** Request compression: gzip unless an OTEL_EXPORTER_OTLP_*COMPRESSION env var is set. */
21
+ compression?: CompressionAlgorithm;
20
22
  }
21
- /**
22
- * LangWatchLogsExporter extends the OpenTelemetry OTLP HTTP logs exporter
23
- * to send logs to LangWatch with proper authentication and metadata headers.
24
- *
25
- * This exporter automatically configures:
26
- * - Authorization headers using the provided API key or environment variables/fallback
27
- * - SDK version and language identification headers
28
- * - Proper endpoint configuration for LangWatch ingestion using provided URL or environment variables/fallback
29
- *
30
- * @example
31
- * ```typescript
32
- * import { LangWatchLogsExporter } from '@langwatch/observability';
33
- *
34
- * // Using environment variables/fallback configuration
35
- * const exporter = new LangWatchLogsExporter();
36
- *
37
- * // Using custom options
38
- * const exporter = new LangWatchLogsExporter({
39
- * apiKey: 'your-api-key',
40
- * endpoint: 'https://custom.langwatch.com'
41
- * });
42
- * ```
43
- */
23
+ /** Extends OpenTelemetry OTLP HTTP logs exporter to send logs to LangWatch with authentication. */
44
24
  declare class LangWatchLogsExporter extends OTLPLogExporter {
45
- /**
46
- * Creates a new LangWatchLogsExporter instance.
47
- *
48
- * @param opts - Optional configuration options for the exporter.
49
- * @param opts.apiKey - Optional API key for LangWatch authentication. If not provided,
50
- * will use environment variables or fallback configuration.
51
- * @param opts.endpoint - Optional custom endpoint URL for LangWatch ingestion.
52
- * If not provided, will use environment variables or fallback configuration.
53
- */
25
+ /** Configures auth headers and endpoint; reads defaults from environment if needed. */
54
26
  constructor(opts?: LangWatchLogsExporterOptions);
55
27
  }
56
28
 
@@ -81,55 +53,23 @@ declare const DataCapturePresets: {
81
53
  *
82
54
  * @param span - The OpenTelemetry Span to add LangWatch methods to
83
55
  * @returns A LangWatchSpan with additional methods for LLM/GenAI observability
84
- *
85
- * @example
86
- * ```typescript
87
- * import { createLangWatchSpan } from './span';
88
- * const otelSpan = tracer.startSpan('llm-call');
89
- * const span = createLangWatchSpan(otelSpan);
90
- * span.setType('llm').setInput('Prompt').setOutput('Completion');
91
- * ```
92
56
  */
93
57
  declare function createLangWatchSpan(span: Span): LangWatchSpan;
94
58
 
95
59
  /**
96
- * Determines the effective data capture mode.
97
- *
60
+ * Determines the effective data capture mode from config (string, function,
61
+ * or object), defaulting to "all" when unspecified.
98
62
  * @returns The resolved {@link DataCaptureMode} ("all", "input", or "output").
99
- *
100
- * @remarks
101
- * The mode is determined by the configuration, which can be a string, function, or object. Defaults to "all" if not specified.
102
- *
103
- * @example
104
- * ```ts
105
- * const mode = getDataCaptureMode();
106
- * ```
107
63
  */
108
64
  declare function getDataCaptureMode(): DataCaptureMode;
109
65
  /**
110
66
  * Determines if input data should be captured.
111
- *
112
67
  * @returns `true` if input should be captured, otherwise `false`.
113
- *
114
- * @example
115
- * ```ts
116
- * if (shouldCaptureInput()) {
117
- * // Capture input
118
- * }
119
- * ```
120
68
  */
121
69
  declare function shouldCaptureInput(): boolean;
122
70
  /**
123
71
  * Determines if output data should be captured.
124
- *
125
72
  * @returns `true` if output should be captured, otherwise `false`.
126
- *
127
- * @example
128
- * ```ts
129
- * if (shouldCaptureOutput()) {
130
- * // Capture output
131
- * }
132
- * ```
133
73
  */
134
74
  declare function shouldCaptureOutput(): boolean;
135
75
 
@@ -1,56 +1,28 @@
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-CsQrexpY.js';
2
- import { OTLPLogExporter } from '@opentelemetry/exporter-logs-otlp-http';
3
- import { D as DataCaptureMode } from '../types-DLfhJb38.js';
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-wuYJPoFb.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-wuYJPoFb.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-DJ-JveZl.js';
2
+ import { OTLPLogExporter } from '@opentelemetry/exporter-logs-otlp-proto';
3
+ import { CompressionAlgorithm } from '@opentelemetry/otlp-exporter-base';
4
+ import { D as DataCaptureMode } from '../types-RkiBQZ9j.js';
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-CpT3iEIj.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-CpT3iEIj.js';
7
8
  import { Span } from '@opentelemetry/api';
8
- export { S as SemConvAttributeKey, a as SemConvAttributes, b as SemConvLogRecordAttributes, l as attributes } from '../types-VOZv9LYO.js';
9
+ export { S as SemConvAttributeKey, a as SemConvAttributes, b as SemConvLogRecordAttributes, l as attributes } from '../types-CoS5PmeU.js';
9
10
  import '@opentelemetry/sdk-trace-base';
10
- import '@opentelemetry/exporter-trace-otlp-http';
11
11
  import '@opentelemetry/core';
12
+ import '@opentelemetry/exporter-trace-otlp-proto';
12
13
  import '@opentelemetry/api-logs';
14
+ import '../values-1yj9l0Sa.js';
13
15
  import 'zod';
14
- import '@opentelemetry/semantic-conventions';
15
- import '@opentelemetry/semantic-conventions/incubating';
16
16
 
17
17
  interface LangWatchLogsExporterOptions {
18
18
  endpoint?: string;
19
19
  apiKey?: string;
20
+ /** Request compression: gzip unless an OTEL_EXPORTER_OTLP_*COMPRESSION env var is set. */
21
+ compression?: CompressionAlgorithm;
20
22
  }
21
- /**
22
- * LangWatchLogsExporter extends the OpenTelemetry OTLP HTTP logs exporter
23
- * to send logs to LangWatch with proper authentication and metadata headers.
24
- *
25
- * This exporter automatically configures:
26
- * - Authorization headers using the provided API key or environment variables/fallback
27
- * - SDK version and language identification headers
28
- * - Proper endpoint configuration for LangWatch ingestion using provided URL or environment variables/fallback
29
- *
30
- * @example
31
- * ```typescript
32
- * import { LangWatchLogsExporter } from '@langwatch/observability';
33
- *
34
- * // Using environment variables/fallback configuration
35
- * const exporter = new LangWatchLogsExporter();
36
- *
37
- * // Using custom options
38
- * const exporter = new LangWatchLogsExporter({
39
- * apiKey: 'your-api-key',
40
- * endpoint: 'https://custom.langwatch.com'
41
- * });
42
- * ```
43
- */
23
+ /** Extends OpenTelemetry OTLP HTTP logs exporter to send logs to LangWatch with authentication. */
44
24
  declare class LangWatchLogsExporter extends OTLPLogExporter {
45
- /**
46
- * Creates a new LangWatchLogsExporter instance.
47
- *
48
- * @param opts - Optional configuration options for the exporter.
49
- * @param opts.apiKey - Optional API key for LangWatch authentication. If not provided,
50
- * will use environment variables or fallback configuration.
51
- * @param opts.endpoint - Optional custom endpoint URL for LangWatch ingestion.
52
- * If not provided, will use environment variables or fallback configuration.
53
- */
25
+ /** Configures auth headers and endpoint; reads defaults from environment if needed. */
54
26
  constructor(opts?: LangWatchLogsExporterOptions);
55
27
  }
56
28
 
@@ -81,55 +53,23 @@ declare const DataCapturePresets: {
81
53
  *
82
54
  * @param span - The OpenTelemetry Span to add LangWatch methods to
83
55
  * @returns A LangWatchSpan with additional methods for LLM/GenAI observability
84
- *
85
- * @example
86
- * ```typescript
87
- * import { createLangWatchSpan } from './span';
88
- * const otelSpan = tracer.startSpan('llm-call');
89
- * const span = createLangWatchSpan(otelSpan);
90
- * span.setType('llm').setInput('Prompt').setOutput('Completion');
91
- * ```
92
56
  */
93
57
  declare function createLangWatchSpan(span: Span): LangWatchSpan;
94
58
 
95
59
  /**
96
- * Determines the effective data capture mode.
97
- *
60
+ * Determines the effective data capture mode from config (string, function,
61
+ * or object), defaulting to "all" when unspecified.
98
62
  * @returns The resolved {@link DataCaptureMode} ("all", "input", or "output").
99
- *
100
- * @remarks
101
- * The mode is determined by the configuration, which can be a string, function, or object. Defaults to "all" if not specified.
102
- *
103
- * @example
104
- * ```ts
105
- * const mode = getDataCaptureMode();
106
- * ```
107
63
  */
108
64
  declare function getDataCaptureMode(): DataCaptureMode;
109
65
  /**
110
66
  * Determines if input data should be captured.
111
- *
112
67
  * @returns `true` if input should be captured, otherwise `false`.
113
- *
114
- * @example
115
- * ```ts
116
- * if (shouldCaptureInput()) {
117
- * // Capture input
118
- * }
119
- * ```
120
68
  */
121
69
  declare function shouldCaptureInput(): boolean;
122
70
  /**
123
71
  * Determines if output data should be captured.
124
- *
125
72
  * @returns `true` if output should be captured, otherwise `false`.
126
- *
127
- * @example
128
- * ```ts
129
- * if (shouldCaptureOutput()) {
130
- * // Capture output
131
- * }
132
- * ```
133
73
  */
134
74
  declare function shouldCaptureOutput(): boolean;
135
75
 
@@ -1,27 +1,29 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunk73QOHSHUjs = require('../chunk-73QOHSHU.js');
4
+ var _chunkWDUUAIG3js = require('../chunk-WDUUAIG3.js');
5
5
 
6
6
 
7
7
 
8
8
 
9
9
 
10
+ var _chunkMAO3SIBBjs = require('../chunk-MAO3SIBB.js');
11
+ require('../chunk-BL3GHEKF.js');
10
12
 
11
- var _chunkO4J3ZPZYjs = require('../chunk-O4J3ZPZY.js');
12
13
 
13
14
 
14
15
 
15
16
 
16
17
 
17
- var _chunkCSV7B7B5js = require('../chunk-CSV7B7B5.js');
18
+ var _chunkF7BVJW3Sjs = require('../chunk-F7BVJW3S.js');
18
19
 
19
20
 
20
21
 
21
22
 
23
+ var _chunk5VYEG3RSjs = require('../chunk-5VYEG3RS.js');
22
24
 
23
- var _chunkLCG5Y2EGjs = require('../chunk-LCG5Y2EG.js');
24
25
 
26
+ var _chunkN76BG37Wjs = require('../chunk-N76BG37W.js');
25
27
 
26
28
 
27
29
 
@@ -38,5 +40,6 @@ var _chunkLCG5Y2EGjs = require('../chunk-LCG5Y2EG.js');
38
40
 
39
41
 
40
42
 
41
- exports.DataCapturePresets = _chunk73QOHSHUjs.DataCapturePresets; exports.FilterableBatchSpanProcessor = _chunk73QOHSHUjs.FilterableBatchSpanProcessor; exports.LangWatchExporter = _chunkCSV7B7B5js.LangWatchTraceExporter; exports.LangWatchLogsExporter = _chunkCSV7B7B5js.LangWatchLogsExporter; exports.LangWatchTraceExporter = _chunkCSV7B7B5js.LangWatchTraceExporter; exports.attributes = _chunkLCG5Y2EGjs.attributes_exports; exports.createLangWatchSpan = _chunkO4J3ZPZYjs.createLangWatchSpan; exports.emitEvaluationEvent = _chunkO4J3ZPZYjs.emitEvaluationEvent; exports.getDataCaptureMode = _chunkLCG5Y2EGjs.getDataCaptureMode; exports.getLangWatchLogger = _chunkCSV7B7B5js.getLangWatchLogger; exports.getLangWatchLoggerFromProvider = _chunkCSV7B7B5js.getLangWatchLoggerFromProvider; exports.getLangWatchTracer = _chunkO4J3ZPZYjs.getLangWatchTracer; exports.getLangWatchTracerFromProvider = _chunkO4J3ZPZYjs.getLangWatchTracerFromProvider; exports.shouldCaptureInput = _chunkLCG5Y2EGjs.shouldCaptureInput; exports.shouldCaptureOutput = _chunkLCG5Y2EGjs.shouldCaptureOutput; exports.spanTypes = _chunkO4J3ZPZYjs.spanTypes;
43
+
44
+ exports.DataCapturePresets = _chunkWDUUAIG3js.DataCapturePresets; exports.FilterableBatchSpanProcessor = _chunkWDUUAIG3js.FilterableBatchSpanProcessor; exports.LangWatchExporter = _chunkMAO3SIBBjs.LangWatchTraceExporter; exports.LangWatchLogsExporter = _chunkMAO3SIBBjs.LangWatchLogsExporter; exports.LangWatchTraceExporter = _chunkMAO3SIBBjs.LangWatchTraceExporter; exports.attributes = _chunkN76BG37Wjs.attributes_exports; exports.createLangWatchSpan = _chunkF7BVJW3Sjs.createLangWatchSpan; exports.emitEvaluationEvent = _chunkF7BVJW3Sjs.emitEvaluationEvent; exports.getDataCaptureMode = _chunk5VYEG3RSjs.getDataCaptureMode; exports.getLangWatchLogger = _chunkMAO3SIBBjs.getLangWatchLogger; exports.getLangWatchLoggerFromProvider = _chunkMAO3SIBBjs.getLangWatchLoggerFromProvider; exports.getLangWatchTracer = _chunkF7BVJW3Sjs.getLangWatchTracer; exports.getLangWatchTracerFromProvider = _chunkF7BVJW3Sjs.getLangWatchTracerFromProvider; exports.shouldCaptureInput = _chunk5VYEG3RSjs.shouldCaptureInput; exports.shouldCaptureOutput = _chunk5VYEG3RSjs.shouldCaptureOutput; exports.spanTypes = _chunkF7BVJW3Sjs.spanTypes;
42
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;AACA;AACF,uDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACF,uDAA6B;AAC7B;AACE;AACA;AACA;AACA;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"}
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,gCAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACF,uDAA6B;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"}
@@ -1,26 +1,29 @@
1
1
  import {
2
2
  DataCapturePresets,
3
3
  FilterableBatchSpanProcessor
4
- } from "../chunk-57L2K66L.mjs";
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";
5
12
  import {
6
13
  createLangWatchSpan,
7
14
  emitEvaluationEvent,
8
15
  getLangWatchTracer,
9
16
  getLangWatchTracerFromProvider,
10
17
  spanTypes
11
- } from "../chunk-NPEK4RSD.mjs";
18
+ } from "../chunk-2GKEMCKT.mjs";
12
19
  import {
13
- LangWatchLogsExporter,
14
- LangWatchTraceExporter,
15
- getLangWatchLogger,
16
- getLangWatchLoggerFromProvider
17
- } from "../chunk-SY5HSL5G.mjs";
18
- import {
19
- attributes_exports,
20
20
  getDataCaptureMode,
21
21
  shouldCaptureInput,
22
22
  shouldCaptureOutput
23
- } from "../chunk-WMDQVWA6.mjs";
23
+ } from "../chunk-SERULD4Z.mjs";
24
+ import {
25
+ attributes_exports
26
+ } from "../chunk-WSGVZ3J2.mjs";
24
27
  export {
25
28
  DataCapturePresets,
26
29
  FilterableBatchSpanProcessor,
@@ -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-ofe1fAYQ.mjs';
3
+ import { j as LangWatchTracer, L as LangWatchSpan, m as ChatMessage } from '../../../types--ExXvd26.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';
@@ -9,10 +9,8 @@ import { BaseMessage } from '@langchain/core/messages';
9
9
  import { LLMResult } from '@langchain/core/outputs';
10
10
  import { ChainValues } from '@langchain/core/utils/types';
11
11
  import 'zod';
12
- import '../../../types-VOZv9LYO.mjs';
12
+ import '../../../types-CoS5PmeU.mjs';
13
13
  import '@opentelemetry/api-logs';
14
- import '@opentelemetry/semantic-conventions';
15
- import '@opentelemetry/semantic-conventions/incubating';
16
14
 
17
15
  type RunKind = "llm" | "chat" | "chain" | "tool" | "retriever";
18
16
  declare class LangWatchCallbackHandler extends BaseCallbackHandler {
@@ -37,7 +35,7 @@ declare class LangWatchCallbackHandler extends BaseCallbackHandler {
37
35
  handleToolEnd(output: string, runId: string, parentRunId?: string): Promise<void>;
38
36
  handleToolError(err: Error, runId: string, parentRunId?: string, tags?: string[]): Promise<void>;
39
37
  handleRetrieverStart(retriever: Serialized, query: string, runId: string, parentRunId?: string, tags?: string[], metadata?: Record<string, unknown>, name?: string): Promise<void>;
40
- handleRetrieverEnd(documents: DocumentInterface<Record<string, any>>[], runId: string, parentRunId?: string, tags?: string[]): Promise<void>;
38
+ handleRetrieverEnd(documents: DocumentInterface[], runId: string, parentRunId?: string, tags?: string[]): Promise<void>;
41
39
  handleRetrieverError(err: Error, runId: string, parentRunId?: string, tags?: string[]): Promise<void>;
42
40
  handleAgentAction(_action: AgentAction, runId: string, parentRunId?: string, tags?: string[]): Promise<void>;
43
41
  handleAgentEnd(action: AgentFinish, runId: string, parentRunId?: string, tags?: string[]): Promise<void>;
@@ -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-wuYJPoFb.js';
3
+ import { j as LangWatchTracer, L as LangWatchSpan, m as ChatMessage } from '../../../types-CpT3iEIj.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';
@@ -9,10 +9,8 @@ import { BaseMessage } from '@langchain/core/messages';
9
9
  import { LLMResult } from '@langchain/core/outputs';
10
10
  import { ChainValues } from '@langchain/core/utils/types';
11
11
  import 'zod';
12
- import '../../../types-VOZv9LYO.js';
12
+ import '../../../types-CoS5PmeU.js';
13
13
  import '@opentelemetry/api-logs';
14
- import '@opentelemetry/semantic-conventions';
15
- import '@opentelemetry/semantic-conventions/incubating';
16
14
 
17
15
  type RunKind = "llm" | "chat" | "chain" | "tool" | "retriever";
18
16
  declare class LangWatchCallbackHandler extends BaseCallbackHandler {
@@ -37,7 +35,7 @@ declare class LangWatchCallbackHandler extends BaseCallbackHandler {
37
35
  handleToolEnd(output: string, runId: string, parentRunId?: string): Promise<void>;
38
36
  handleToolError(err: Error, runId: string, parentRunId?: string, tags?: string[]): Promise<void>;
39
37
  handleRetrieverStart(retriever: Serialized, query: string, runId: string, parentRunId?: string, tags?: string[], metadata?: Record<string, unknown>, name?: string): Promise<void>;
40
- handleRetrieverEnd(documents: DocumentInterface<Record<string, any>>[], runId: string, parentRunId?: string, tags?: string[]): Promise<void>;
38
+ handleRetrieverEnd(documents: DocumentInterface[], runId: string, parentRunId?: string, tags?: string[]): Promise<void>;
41
39
  handleRetrieverError(err: Error, runId: string, parentRunId?: string, tags?: string[]): Promise<void>;
42
40
  handleAgentAction(_action: AgentAction, runId: string, parentRunId?: string, tags?: string[]): Promise<void>;
43
41
  handleAgentEnd(action: AgentFinish, runId: string, parentRunId?: string, tags?: string[]): Promise<void>;