@langfuse/tracing 4.2.1 → 4.4.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/index.cjs +4 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -7
- package/dist/index.d.ts +1 -7
- package/dist/index.mjs +4 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -27,7 +27,7 @@ __export(index_exports, {
|
|
|
27
27
|
LangfuseEvent: () => LangfuseEvent,
|
|
28
28
|
LangfuseGeneration: () => LangfuseGeneration,
|
|
29
29
|
LangfuseGuardrail: () => LangfuseGuardrail,
|
|
30
|
-
LangfuseOtelSpanAttributes: () =>
|
|
30
|
+
LangfuseOtelSpanAttributes: () => import_core5.LangfuseOtelSpanAttributes,
|
|
31
31
|
LangfuseRetriever: () => LangfuseRetriever,
|
|
32
32
|
LangfuseSpan: () => LangfuseSpan,
|
|
33
33
|
LangfuseTool: () => LangfuseTool,
|
|
@@ -39,6 +39,7 @@ __export(index_exports, {
|
|
|
39
39
|
getLangfuseTracer: () => getLangfuseTracer,
|
|
40
40
|
getLangfuseTracerProvider: () => getLangfuseTracerProvider,
|
|
41
41
|
observe: () => observe,
|
|
42
|
+
propagateAttributes: () => import_core4.propagateAttributes,
|
|
42
43
|
setLangfuseTracerProvider: () => setLangfuseTracerProvider,
|
|
43
44
|
startActiveObservation: () => startActiveObservation,
|
|
44
45
|
startObservation: () => startObservation,
|
|
@@ -233,12 +234,6 @@ var LangfuseBaseObservation = class {
|
|
|
233
234
|
}
|
|
234
235
|
/**
|
|
235
236
|
* Updates the parent trace with new attributes.
|
|
236
|
-
*
|
|
237
|
-
* This sets trace-level attributes that apply to the entire trace,
|
|
238
|
-
* not just this specific observation.
|
|
239
|
-
*
|
|
240
|
-
* @param attributes - Trace attributes to set
|
|
241
|
-
* @returns This observation for method chaining
|
|
242
237
|
*/
|
|
243
238
|
updateTrace(attributes) {
|
|
244
239
|
this.otelSpan.setAttributes(createTraceAttributes(attributes));
|
|
@@ -451,6 +446,7 @@ var LangfuseEvent = class extends LangfuseBaseObservation {
|
|
|
451
446
|
|
|
452
447
|
// src/index.ts
|
|
453
448
|
var import_core4 = require("@langfuse/core");
|
|
449
|
+
var import_core5 = require("@langfuse/core");
|
|
454
450
|
function createOtelSpan(params) {
|
|
455
451
|
return getLangfuseTracer().startSpan(
|
|
456
452
|
params.name,
|
|
@@ -794,6 +790,7 @@ function getActiveSpanId() {
|
|
|
794
790
|
getLangfuseTracer,
|
|
795
791
|
getLangfuseTracerProvider,
|
|
796
792
|
observe,
|
|
793
|
+
propagateAttributes,
|
|
797
794
|
setLangfuseTracerProvider,
|
|
798
795
|
startActiveObservation,
|
|
799
796
|
startObservation,
|