Partitions, offsets, groups and generations are the nouns you already debug with. Tracewell keeps them first-class instead of flattening everything into service maps.
01One trace per event, across every hop
produceappendin partitionhandlesinkcommit
The SDK writes a W3C traceparent into the record headers on produce and reads it back on fetch. Each hop becomes a span: produce, broker append, time sitting in the partition, poll, your handler, the sink write, the commit. Stream processors that copy headers keep the chain intact.
Kafka Streams, Flink 1.18+, Kinesis Data Streams, Debezium source records
02Lag per partition, in offsets and in seconds
committed 48 233lag 9 records, 41 sLEO 48 242
Offset lag tells you how many records are waiting. Time lag tells you how stale the sink is. Tracewell reports both for every partition of every group, keeps 30 days of history, and alerts on the slope instead of a fixed threshold, so a hot key on one partition shows up before the group total moves.
Consumer groups, Kafka Connect sink tasks, Kinesis shards per iterator age
03Rebalances on a timeline
gen 141.8 sgen 15 · P2, P3 reassigned
Every generation is recorded with who joined, who left, which partitions were revoked and how long processing stopped. Compare eager and cooperative-sticky assignors on your own traffic, and see when max.poll.interval.ms kicked a slow member out.
range, roundrobin, sticky, cooperative-sticky, KIP-848 consumer protocol
04Find the poison message, then move it
stuck at 48 241, 3 attemptsorders.v3.dlq
When a partition’s committed offset stops advancing while its log end keeps growing, Tracewell names the offset, the exception and the schema id. Route it to a dead-letter topic with the original headers plus tw-error-class and tw-original-offset, and the group resumes.
DLQ routing from the SDK or from the console, with an audit entry for each move
05Replay a slice of a partition, safely
48 210 to 48 260scratch topic500 rec/s cap
Pick a partition and an offset range, and Tracewell re-produces those records to a scratch topic or feeds a shadow consumer group. It is rate-limited and idempotent. Rewinding the production group’s committed offsets needs a second approver and shows the exact offset diff first.
Range by offset or by timestamp; dry run lists record count and bytes
06Understands exactly-once
LSOaborted records shadedHWM
Transactional producers write records that may later be aborted. Tracewell marks aborted batches, shows the last stable offset next to the high watermark, and computes lag the way a read_committed consumer actually experiences it, so open transactions do not look like a stuck consumer.
transactional.id fencing events, producer epoch bumps, hanging transactions
07Decodes with your schema registry
0000 00 01 9CAvro payload
Payloads are decoded by the schema id in the wire format, against your registry, only when you open a record. A record whose id the registry does not know, or whose schema breaks the subject’s compatibility rule, is flagged on the trace instead of failing silently in a consumer.
Avro, Protobuf, JSON Schema; Confluent-compatible registries, Apicurio, AWS Glue