chore(config): use typed OTLP traces configuration - #2260
Conversation
Binary Size Analysis (Agent Data Plane)Baseline: ae0fae9 · Comparison: ada1d81 · diff ✅ Binary size difference within thresholdChanges by Module
Detailed Symbol Changes |
Regression Detector (Agent Data Plane)Run ID: Optimization Goals: ✅ No significant changes detectedFine details of change detection per experiment (5)Experiments configured
Bounds Checks: ✅ Passed (5)
ExplanationA change is flagged as a regression when |Δ mean %| > 5.00% in the regressing direction for its optimization goal AND SMP marks the experiment as a regression ( |
There was a problem hiding this comment.
More details
The typed OTLP trace model preserves the prior translator flags and now carries the validated interner size through both native ingestion and proxy decoding; no diff-only behavioral regression was identified. Runtime adversarial execution was blocked before compilation because the sandbox could not fetch the repository's pinned hyper-http-proxy dependency.
🤖 Datadog Autotest · Commit 1b5d6d1 · What is Autotest? · @DataDog review to ask questions · Any feedback? Reach out in #autotest
| fn translate(resource_spans: ResourceSpans) -> Vec<Trace> { | ||
| let mut translator = OtlpTracesTranslator::new(TracesConfig::default(), NonZeroUsize::new(64 * 1024).unwrap()); | ||
| let mut translator = OtlpTracesTranslator::new(domains::otlp::Traces { | ||
| string_interner_size: std::num::NonZeroUsize::new(64 * 1024).unwrap(), |
There was a problem hiding this comment.
Trying to understand this bit... is this not actually configurable? If not, should it just be a constant somewhere instead of passing it in like this?
007041c to
fd91e24
Compare
There was a problem hiding this comment.
More details
The typed configuration migration preserves the reviewed runtime paths: generated Datadog defaults still populate schema-backed sampler and OTLP values, while Saluki-only defaults and overrides seed the moved fields. No diff-only behavioral regression was found; runtime tests were blocked by unavailable Rust 1.94 and an uncached git dependency.
🤖 Datadog Autotest · Commit fd91e24 · What is Autotest? · @DataDog review to ask questions · Any feedback? Reach out in #autotest
## Summary Replace the local OTLP trace configuration with the resolved typed `otlp::Traces` model across the OTLP source, decoder, and trace translator. This removes duplicate configuration fields and keeps the interner size and trace options on one configuration path. ## Change Type - [x] Non-functional (chore, refactoring, docs) ## How did you test this PR? - `make fmt` - `make check-docs` - `make check-clippy` - `make check-all` - Targeted OTLP trace translator tests - `cargo check -p agent-data-plane --tests` ## References - Progresses #2169 - Progresses #2193 18ea9f3

Summary
Replace the local OTLP trace configuration with the resolved typed
otlp::Tracesmodel across the OTLP source, decoder, and trace translator. This removes duplicate configuration fields and keeps the interner size and trace options on one configuration path.Change Type
How did you test this PR?
make fmtmake check-docsmake check-clippymake check-allcargo check -p agent-data-plane --testsReferences