enable language detection components only if both reporting and language detection are enabled#23621
Conversation
2bd8e34 to
bd9d793
Compare
…age detection are enabled
bd9d793 to
9e5bc7f
Compare
Bloop Bleep... Dogbot HereRegression Detector ResultsRun ID: 21250623-a945-44e2-abbf-24583a989246 Performance changes are noted in the perf column of each table:
No significant changes in experiment optimization goalsConfidence level: 90.00% There were no significant changes in experiment optimization goals at this confidence level and effect size tolerance.
|
| perf | experiment | goal | Δ mean % | Δ mean % CI |
|---|---|---|---|---|
| ➖ | file_to_blackhole | % cpu utilization | +0.28 | [-6.28, +6.83] |
Fine details of change detection per experiment
| perf | experiment | goal | Δ mean % | Δ mean % CI |
|---|---|---|---|---|
| ➖ | basic_py_check | % cpu utilization | +0.84 | [-1.44, +3.12] |
| ➖ | otel_to_otel_logs | ingress throughput | +0.52 | [-0.12, +1.16] |
| ➖ | process_agent_real_time_mode | memory utilization | +0.31 | [+0.27, +0.35] |
| ➖ | file_to_blackhole | % cpu utilization | +0.28 | [-6.28, +6.83] |
| ➖ | process_agent_standard_check | memory utilization | +0.25 | [+0.21, +0.28] |
| ➖ | idle | memory utilization | +0.02 | [-0.01, +0.05] |
| ➖ | trace_agent_json | ingress throughput | +0.01 | [-0.02, +0.04] |
| ➖ | tcp_dd_logs_filter_exclude | ingress throughput | +0.00 | [-0.00, +0.00] |
| ➖ | trace_agent_msgpack | ingress throughput | +0.00 | [-0.00, +0.00] |
| ➖ | uds_dogstatsd_to_api | ingress throughput | +0.00 | [-0.00, +0.00] |
| ➖ | file_tree | memory utilization | -0.07 | [-0.14, +0.01] |
| ➖ | process_agent_standard_check_with_stats | memory utilization | -0.14 | [-0.18, -0.11] |
| ➖ | tcp_syslog_to_blackhole | ingress throughput | -0.21 | [-0.26, -0.16] |
| ➖ | uds_dogstatsd_to_api_cpu | % cpu utilization | -1.09 | [-2.52, +0.34] |
Explanation
A regression test is an A/B test of target performance in a repeatable rig, where "performance" is measured as "comparison variant minus baseline variant" for an optimization goal (e.g., ingress throughput). Due to intrinsic variability in measuring that goal, we can only estimate its mean value for each experiment; we report uncertainty in that value as a 90.00% confidence interval denoted "Δ mean % CI".
For each experiment, we decide whether a change in performance is a "regression" -- a change worth investigating further -- if all of the following criteria are true:
-
Its estimated |Δ mean %| ≥ 5.00%, indicating the change is big enough to merit a closer look.
-
Its 90.00% confidence interval "Δ mean % CI" does not contain zero, indicating that if our statistical model is accurate, there is at least a 90.00% chance there is a difference in performance between baseline and comparison variants.
-
Its configuration does not mark it "erratic".
|
/merge |
|
🚂 MergeQueue Pull request added to the queue. There are 2 builds ahead! (estimated merge in less than 29m) Use |
…age detection are enabled (#23621)
What does this PR do?
This PR checks for both
language_detection.reporting.enabledandlanguage_detection.enabledwhen deciding whether or not to activate components of language detection and library injection.Motivation
Avoid unexpected behaviour in case of miss-configuration.
For example, if
language_detection.enabledis set tofalse, whilelanguage_detection.reporting.enabledis set totrue, we should not activate any component, since it will lead to wasting resources for no benefit (e.g. enabling the deployment collector in workloadmeta, enabling the handler and patcher, etc.)Additional Notes
Possible Drawbacks / Trade-offs
Describe how to test/QA your changes
language_detection.enabledis set tofalsewhereaslanguage_detection.reporting.enabledis set totrue. (See sample QA below)Deploying with the operator:
Create any deployment.
Ensure that:
Starting language detection patcher)Starting language detection client)