test(data-pipeline): gate telemetry-only tests behind the telemetry feature#2204
test(data-pipeline): gate telemetry-only tests behind the telemetry feature#2204iunanua wants to merge 1 commit into
Conversation
📚 Documentation Check Results📦
|
8ba55ab to
fbfc3de
Compare
Clippy Allow Annotation ReportComparing clippy allow annotations between branches:
Summary by Rule
Annotation Counts by File
Annotation Stats by Crate
About This ReportThis report tracks Clippy allow annotations for specific rules, showing how they've changed in this PR. Decreasing the number of these annotations generally improves code quality. |
🔒 Cargo Deny Results📦
|
🎉 All green!🧪 All tests passed 🎯 Code Coverage (details) 🔗 Commit SHA: 7c1d432 | Docs | Datadog PR Page | Give us feedback! |
Artifact Size Benchmark Reportaarch64-alpine-linux-musl
aarch64-unknown-linux-gnu
libdatadog-x64-windows
libdatadog-x86-windows
x86_64-alpine-linux-musl
x86_64-unknown-linux-gnu
|
…eature Building the crate with `--no-default-features` (telemetry off) failed to compile because several tests and one example referenced `TelemetryConfig` and `TraceExporterBuilder::enable_telemetry`, both of which are gated behind the `telemetry` feature. Gate the telemetry-dependent test code and the `send-traces-with-stats` example accordingly, and silence an unused-variable warning in stats.rs for non-telemetry builds. Non-telemetry tests in `test_new`/`test_new_defaults` still run. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
fbfc3de to
7c1d432
Compare
| metrics_endpoint.assert_calls(1); | ||
| } | ||
|
|
||
| #[cfg(feature = "telemetry")] |
There was a problem hiding this comment.
Nit: 3 tests is in the gray zone, but would that make sense to gather those tests under a separate submodule and gate the submodule once and for all?
What does this PR do?
Building the crate with
--no-default-features(telemetry off) failed to compile because several tests and one example referencedTelemetryConfigandTraceExporterBuilder::enable_telemetry, both of which are gated behind thetelemetryfeature.Gate the telemetry-dependent test code and the
send-traces-with-statsexample accordingly, and silence an unused-variable warning in stats.rs for non-telemetry builds. Non-telemetry tests intest_new/test_new_defaultsstill run.