Skip to content

Child agent sessions produce isolated traces — no linkage to parent trace #8

Description

@x-xiang

Problem

When a parent agent spawns child agents (sub-agents), each child session creates an independent
trace with its own traceId. There is no way to view the full parent → child orchestration as a
single connected trace in Langfuse.

Expected Behavior

Child agent sessions should be linked to the parent session's trace, so the entire multi-agent call
chain is visible as one trace in the Langfuse UI.

Current Behavior

A multi-agent workflow (e.g., 1 parent + 3 child agents) produces 4 completely disconnected traces.
There is no correlation between them — the parent trace has no reference to child traces, and vice
versa.

Environment

  • OpenCode: 1.15.5
  • Plugin: 0.1.0
  • Langfuse: Self-hosted

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions