Tracing
Sampling
Platform export uses ParentBased(TraceIdRatioBased) head sampling with a BatchSpanProcessor. Customer sampling is whatever your collectors send — Mydle does not invent dropped spans.
Platform sampler
For mydle-web and mydle-worker:
- Sampler: ParentBased + TraceIdRatioBased (root ratio from env; default 1 when OTLP export is enabled).
- Processor:
BatchSpanProcessorwith bounded queue and export timeout. - Fail-open: sampling / export issues never throw into business handlers.
Customer collectors
Your SDKs and collectors decide what reaches POST /api/traces/v1/otlp. Unsampled or never-exported work does not appear in Mydle. Ingest does not backfill missing children.
Limitations
- Incomplete traces after head sampling are expected — not a product bug inventing siblings.
- Platform sampling config does not rewrite customer OTLP payloads.