Menu

1 / 2

Trace ID load balancing: route spans before tail sampling in the OTel Collector

DEV Community: kubernetes·Span Observer·4 days ago
#Xpfc1OV3
#devtokubernetes#devto#dev#trace#readme
Reading 0:00
15s threshold

A single Collector samples without trouble, but as soon as replicas are added, decisions become inconsistent. Trace ID load balancing fixes this: a first tier of Collectors spreads spans by traceID , so every span of a trace lands on the same instance of the second tier, the one running the tail_sampling processor.

Goal: build this two-tier architecture with the load_balancing exporter from the OpenTelemetry Collector contrib repository, check it works and know its limits (pods added or removed, data loss). The principle is backend-independent: it applies to Dynatrace SaaS and Dynatrace Managed alike, because everything happens in the Collector, before the OTLP export.

This article complements the OpenTelemetry tail sampling tutorial , which covers sampling policies.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.