itemflow

package
v0.53.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2026 License: MIT Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

View Source
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

func Join(ctx context.Context, flow, key string) context.Context

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL