[Bug]: Memory config accepts zero MaxTraces
Author: DsThakurRawatCreated Sep 23, 2026Updated Sep 23, 2026
Requirement
The v2 in-memory store should reject an invalid trace capacity during configuration validation, before store initialization.
Problem
Configuration.MaxTraces documents zero as unbounded, but the fixed-size ring buffer requires a positive capacity. Configuration.Validate currently accepts zero and negative values, while NewStore and NewFactory reject them later.
Proposal
- Require
MaxTraces > 0inConfiguration.Validate. - Correct the field documentation.
- Add regression coverage for valid, zero, negative, and OTel configuration paths.
Open questions
None.
Source: jaegertracing/jaeger