Skip to main content
← Back to list
01Issue
BugShippedSwamp CLIPublic
Assigneeshammz

Relationships

#2589 swamp.model.method spans are parented to the workflow run span instead of their swamp.workflow.step span

Opened by hammz · 9/28/2026· Shipped 9/28/2026

Problem

WorkflowExecutionService.runStep (src/domain/workflows/execution_service.ts, around line 3479) creates the swamp.workflow.step span with getTracer().startSpan(...) but never makes it the active context (no context.with / trace.setSpan around the step body). Spans created while the step runs, notably swamp.model.method from method_execution_service, therefore pick up the enclosing swamp.workflow.run.command span as their parent. In a trace the step span and its method span appear as siblings, and the step span has no children.

Reproduction

With OTEL_TRACES_EXPORTER=console, run any workflow with a model-method step. Console exporter output shows, for one step:

  • swamp.workflow.step id=f6ef3254765efb51 parentId=2b26d0bf54d03fa5 (run.command)
  • swamp.model.method id=356f47f238a5a025 parentId=2b26d0bf54d03fa5 (run.command, expected f6ef3254765efb51)

Expected

swamp.model.method (and everything under it, including the traceparent handed to the method) is a child of the swamp.workflow.step span for that step, so traces nest run > step > method.

Found while reproducing swamp-club#2556.

02Bog Flow
✓OPEN✓TRIAGED✓IN PROGRESS✓SHIPPED+ 1 MOREASSIGNED+ 8 MOREREVIEW+ 14 MOREPR_MERGED+ 2 MORESESSION_SUMMARIZED

Shipped

9/28/2026, 9:00:08 PM

Click a lifecycle step above to view its details.

03Sludge Pulse
hammz assigned hammz9/28/2026, 7:10:39 PM

Sign in to post a ripple.