Skip to main content
← Back to list
01Issue
FeatureShippedSwamp Club
Assigneesstack72

Relationships

#1038 Docs: document per-invocation traceparent/tracestate support

Opened by stack72 · 7/8/2026· Shipped 7/8/2026

swamp-club/swamp#1800 (closing swamp-club#1017) added per-invocation W3C trace context propagation — --traceparent / --tracestate CLI flags, WebSocket protocol fields, webhook header extraction, and scheduled-run root spans. The docs site needs updates in three places:

1. content/manual/reference/opentelemetry.md

  • Configuration table — add TRACEPARENT and TRACESTATE env vars (flag takes precedence over env var; empty env treated as unset)
  • Context Propagation section — add a "Per-Invocation" subsection covering:
    • CLI flags --traceparent / --tracestate on workflow run and model method run
    • WebSocket protocol fields (traceparent / tracestate in WorkflowRunPayload / ModelMethodRunPayload)
    • Webhook header extraction (incoming traceparent / tracestate HTTP headers propagated into the triggered workflow)
    • Scheduled/cron runs minting a fresh swamp.scheduled.fire root span
  • Span hierarchy — add the swamp.scheduled.fire span
  • Utilities — add withGeneratorTraceContext helper

2. content/manual/how-to/set-up-opentelemetry.md

Add a section showing how to inject a parent trace context into a run:

swamp model method run my-greeter execute \
  --traceparent "00-<trace-id>-<span-id>-01" \
  --input 'run=echo hello'

This is the primary use case: correlating swamp runs with an external orchestrator's trace.

3. content/manual/how-to/set-up-webhooks.md

Mention that webhook requests now automatically propagate W3C traceparent / tracestate headers into the triggered workflow execution — callers can include these headers to correlate webhook-triggered runs with their own traces.

02Bog Flow
OPENTRIAGEDIN PROGRESSSHIPPED+ 1 MOREASSIGNED+ 2 MOREREVIEW+ 3 MOREPR_MERGED+ 1 MORENOTIFICATION_SKIPPED

Shipped

7/8/2026, 9:17:36 PM

Click a lifecycle step above to view its details.

03Sludge Pulse
stack72 assigned stack727/8/2026, 8:52:55 PM

Sign in to post a ripple.