Documentation
¶
Overview ¶
Package itemflow puts a call made for one item in that item's flow. An item's flow id is a W3C trace id, so a call carries it as the trace id of its traceparent, under a span of its own, and names the item's key in its baggage. This is W3C Trace Context's propagation, as OpenTelemetry's instrumented clients carry a trace across a service's calls: the trace rides in the call's context, and the client's transport writes it as headers. A worker's service clients write it through goclikit.TraceForwardingTransport, so a destination or a dispatch service that reads trace context places each call in the item's trace.
Index ¶
Constants ¶
const KeyBaggage = "ingestion.item.key"
KeyBaggage is the baggage member that names the item a call is made for.
Variables ¶
This section is empty.
Functions ¶
func Join ¶
Join is ctx in the flow of the item under key: a new sampled span in the trace that flow names, as ctx's remote parent, and baggage naming key beside ctx's other members. Each call made in it sends traceparent 00-<flow>-<that span>-01. A flow that is no trace id leaves ctx's span as it is, and the key still rides in its baggage.
Types ¶
This section is empty.