Skip to content

[pull] main from danny-avila:main#103

Merged
pull[bot] merged 1 commit into
innFactory:mainfrom
danny-avila:main
Jun 5, 2026
Merged

[pull] main from danny-avila:main#103
pull[bot] merged 1 commit into
innFactory:mainfrom
danny-avila:main

Conversation

@pull

@pull pull Bot commented Jun 5, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

Add an opt-in `LangfuseConfig.deterministicTraceId`. When enabled, a run's
root Langfuse trace id is derived from its runId as sha256(runId) -> first
32 hex chars (matching @langfuse/tracing's createTraceId) instead of a
random id. This lets external systems attach scores or observations to the
trace afterwards by regenerating the same id from the run/message id, with
no trace lookup. Off by default; fully backwards compatible.

Implemented via a custom IdGenerator on the Langfuse BasicTracerProvider
that reads a per-run seed from an AsyncLocalStorage; Run.processStream wraps
stream execution in runWithTraceIdSeed(runId) only when the flag is set. The
title-generation trace is intentionally left untouched.

Companion to danny-avila/LibreChat#13537 (surfacing message feedback as
Langfuse scores).

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@pull pull Bot locked and limited conversation to collaborators Jun 5, 2026
@pull pull Bot added the ⤵️ pull label Jun 5, 2026
@pull pull Bot merged commit d2e6b62 into innFactory:main Jun 5, 2026
1 check passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant