type TracePlan
import bend-trace-context@0.2.0.0/trace_context.bend as TraceContextimport Base
286# What a new trace needs, a root or a restart: the trace ID that its trace
287# ID must not repeat (`excluded`), none for a root and the received one for
288# a restart, and the sampled indication of the context that it creates.
289# TracePlan.root and TracePlan.restart give the plans of a root and a
290# restart; the generation machine (TracePlan.draw), the generation that a
291# host feeds (Generation.new_trace) and the composition on a caller's source
292# (TracePlan.generate_with) each run one plan, so a root and a restart
293# differ only in it.
294type TracePlan is Data:
295 TracePlan{excluded: Maybe<&2, TraceId>, sampled: Bool}