LangfuseTracingWorkflow in app/launchpad/workflows/examples/langfuse_tracing/ and is registered as WorkflowRegistry.LANGFUSE_TRACING.
For how tracing is wired into the core
Workflow class, see Langfuse Integration.What the workflow does
A simple moderation pipeline for user comments:ViolationDetectionNode— anAgentNodethat classifies whether a comment violates policy.ContextSummaryResult— anAgentNodethat summarizes the comment for the audit log.RemoveCommentNode— a plainNodethat deletes the comment when the previous step flagged it.
enable_tracing=True, so you can see timings, inputs, outputs, and LLM calls for the whole run in the Langfuse dashboard.
Schema
Workflow definition
Violation detection node
ContextSummaryResult follows the same pattern with a summarization prompt, and RemoveCommentNode reads ViolationDetectionNode.OutputType via get_output() and logs the deletion.
Running the example
1
Set Langfuse credentials
Add to
.env (or your shell environment):2
Run the playground script
app/launchpad/workflows/examples/langfuse_tracing/request_examples/violation.json, instantiates the workflow via WorkflowRegistry.LANGFUSE_TRACING.value(), and runs it.3
Inspect the trace
Open the Langfuse dashboard. You should see a trace named
LangfuseTracingWorkflow with child spans for each node (ViolationDetectionNode, ContextSummaryResult, RemoveCommentNode) and the underlying LLM generations.Example event
app/launchpad/workflows/examples/langfuse_tracing/request_examples/violation.json: