test(otel): port otel tracestate sampling tests to parametric - #7518
test(otel): port otel tracestate sampling tests to parametric#7518MilanGarnier wants to merge 10 commits into
Conversation
|
|
|
|
@codex review |
|
Codex Review: Didn't find any major issues. What shall we delve into next? Reviewed commit: ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d74e159d04
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
|
||
| @features.w3c_headers_injection_and_extraction | ||
| @scenarios.parametric | ||
| class Test_OtelTracestateSampling: |
There was a problem hiding this comment.
Preserve the C++ skips for ported tracestate tests
For C++ PARAMETRIC runs, this new test file is enabled by default: I checked manifests/cpp.yml and there is no entry for tests/parametric/test_otel_tracestate_sampling.py, while this commit removes the previous C++ missing_feature entries for the old APMAPI-2171/APMAPI-2172 classes and the same manifest still disables neighboring OTel parametric tests because C++ does not implement OpenTelemetry. Please add the corresponding C++ manifest entries so the port does not start failing unsupported C++ jobs. .cursor/rules/pr-review.mdcL49-L52
Useful? React with 👍 / 👎.
| tests/parametric/test_otel_span_methods.py::Test_Otel_Span_Methods::test_otel_start_span: missing_feature (New operation name mapping not yet implemented) | ||
| tests/parametric/test_otel_span_with_baggage.py::Test_Otel_Span_With_Baggage: *ref_5_32_0 | ||
| tests/parametric/test_otel_tracer.py::Test_Otel_Tracer::test_otel_force_flush: missing_feature (Not implemented) | ||
| tests/parametric/test_otel_tracestate_sampling.py::Test_OtelTracestateSampling: missing_feature (APMAPI-2171) |
There was a problem hiding this comment.
Keep nodejs activation granular for ported cases
For nodejs this class-level missing_feature now skips every ported APMAPI-2171 parametric case, but the deleted nodejs manifest entries only skipped some old classes unconditionally; forwarding/no-fabrication cases such as Test_ForwardInboundOtUnchanged, Test_PreserveDdAndOtherVendors, and Test_ThOnlyDoesNotFabricateRv were enabled for supported nodejs weblogs at >=6.8.0. Collapsing them into a single class skip loses existing coverage for current nodejs versions, so please carry over the old per-test activation rather than disabling the whole class.
Useful? React with 👍 / 👎.
Ports the OpenTelemetry
ot.th/ot.rvsampling coverage from #7372 to parametric tests.Reason : We want to have a single source of truth for all tracers and dd-trace-cpp does not have a weblog.
Test correspondence
Several end-to-end tests are consolidated into parameterized parametric tests.
test_emits_probability_sampling_vectorstest_emit_ot_on_probability_decisiontest_forwards_and_sanitizes_inbound_ottest_forward_inbound_ot_unchangedtest_th_only_does_not_fabricate_rvtest_preserve_dd_and_other_vendorstest_malformed_rv_and_th_treated_as_absentth-only, and malformed-otinputs; the inherited case also preservesddandcongo.test_forwards_unknown_inbound_ot_subkeystest_forward_inbound_ot_unknown_subkeyotsubkey cases.test_forwards_dropped_inbound_ottest_forward_inbound_ot_unchanged_when_droppedrv/thdecision.test_dropped_th_only_does_not_fabricate_rvtest_th_only_does_not_fabricate_rv_when_droppedth-only decision.test_force_keep_clears_thtest_force_keep_with_no_inbound_ottest_force_keep_forwards_inherited_rvtest_force_keep_overrides_inherited_drop_decisionot, inherited-rv, and inherited-drop inputs; every resulting span assertsUSER_KEEP.test_sampled_without_ot_does_not_fabricate_ittest_sampled_without_ot_not_fabricatedotmember.test_malformed_th_preserves_rvtest_malformed_th_only_treated_as_absentrvis retained while malformedthis removed.test_precision_boundary_decisionstest_precision_boundary_decisiontest_otlp_carries_probability_sampling_ottest_otlp_carries_ototfields.What's being tested