Repository navigation
feat(pipecat): record committed conversation turns on the conversation span - #797
Merged
Merged
Conversation
…n span
Mapped exporters now register a Pipecat setup file (PIPECAT_SETUP_FILES,
appended once, existing entries kept). For each traced pipeline worker it
attaches Pipecat's EvalConversationObserver (Pipecat 1.13+) and, when the
conversation ends, writes fi.conversation.transcript on the worker's
parentless conversation span: committed user and assistant turns in order
as {role, content} rows. Tool rows are dropped.
- Nothing is attached when any FI input/output content hide setting is on.
- Each turn is masked with the matching input/output policy; a failed mask
omits the whole attribute. No timestamps.
- Older Pipecat without the observer, disabled tracing, or a missing,
ended or child conversation span: no-op.
Part of TH-2379 (Linear).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The shared helper is exported only from fi_instrumentation.instrumentation.transcript; older core releases keep the local six-setting fallback. Part of TH-2379 (Linear). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
Review at
|
nik13
marked this pull request as ready for review
November 25, 2026 06:09
This was referenced Nov 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Pipecat calls now include the conversation in
fi.conversation.transcripton the worker's parentlessconversationspan.PIPECAT_SETUP_FILES, appended once with existing entries kept. For each traced pipeline worker it attaches Pipecat's ownEvalConversationObserver(Pipecat 1.13+). When the conversation ends, it writes the committed user and assistant turns in order as[{"role": "user"|"assistant", "content": "..."}]. Tool rows are dropped. The attribute is set on the conversation span itself, so any other exporter on the same provider also receives the masked transcript.Why
Products that read a call's conversation from
fi.conversation.transcripton the call root currently get nothing for Pipecat calls.Tests
tests/test_transcript.py:Part of TH-2379 (Linear).
🤖 Generated with Claude Code