Skip to content

Conversation

@ekump
Copy link
Contributor

@ekump ekump commented Apr 10, 2025

What does this PR do?

It rarely happens, but it is possible for the container running the test agent for integration tests to reset the network connection even after the agent is ready. This PR adds retry logic for the http requests we send to the agent that aren't part of what's actually being tested. Currently that is starting a test session, validating test snapshots, and getting all the traces that the agent has received. This should hopefully fix flakiness where you see an error like Request failed: hyper_util::client::legacy::Error(SendRequest, hyper::Error(Io, Os { code: 104, kind: ConnectionReset, message: "Connection reset by peer" }))

Motivation

Baklava should be flaky, not our tests

Additional Notes

How to test the change?

I tested the retry logic works by breaking a snapshot and observing that it retried the correct number of times. I don't really know how to test a connection reset by peer scenario easily.

@ekump ekump requested review from a team as code owners April 10, 2025 01:57
@pr-commenter
Copy link

pr-commenter bot commented Apr 10, 2025

Benchmarks

Comparison

Benchmark execution time: 2025-04-10 13:17:50

Comparing candidate commit 4f6c368 in PR branch ekump/APMSP-1930-add-retry-logic-to-test-agent-requests with baseline commit e1678bf in branch main.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 52 metrics, 2 unstable metrics.

Candidate

Candidate benchmark details

Group 1

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz 4f6c368 1744290353 ekump/APMSP-1930-add-retry-logic-to-test-agent-requests
scenario metric min mean ± sd median ± mad p75 p95 p99 max peak_to_median_ratio skewness kurtosis cv sem runs sample_size
sql/obfuscate_sql_string execution_time 67.648µs 67.851µs ± 0.237µs 67.831µs ± 0.046µs 67.874µs 67.965µs 68.244µs 70.956µs 4.61% 11.374 145.940 0.35% 0.017µs 1 200
scenario metric 95% CI mean Shapiro-Wilk pvalue Ljung-Box pvalue (lag=1) Dip test pvalue
sql/obfuscate_sql_string execution_time [67.818µs; 67.884µs] or [-0.048%; +0.048%] None None None

Group 2

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz 4f6c368 1744290353 ekump/APMSP-1930-add-retry-logic-to-test-agent-requests
scenario metric min mean ± sd median ± mad p75 p95 p99 max peak_to_median_ratio skewness kurtosis cv sem runs sample_size
benching string interning on wordpress profile execution_time 146.653µs 147.374µs ± 0.333µs 147.333µs ± 0.107µs 147.447µs 147.869µs 148.101µs 150.733µs 2.31% 5.383 50.733 0.23% 0.024µs 1 200
scenario metric 95% CI mean Shapiro-Wilk pvalue Ljung-Box pvalue (lag=1) Dip test pvalue
benching string interning on wordpress profile execution_time [147.328µs; 147.420µs] or [-0.031%; +0.031%] None None None

Group 3

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz 4f6c368 1744290353 ekump/APMSP-1930-add-retry-logic-to-test-agent-requests
scenario metric min mean ± sd median ± mad p75 p95 p99 max peak_to_median_ratio skewness kurtosis cv sem runs sample_size
redis/obfuscate_redis_string execution_time 31.645µs 32.426µs ± 1.031µs 31.777µs ± 0.067µs 33.733µs 34.410µs 34.628µs 34.971µs 10.05% 0.991 -0.803 3.17% 0.073µs 1 200
scenario metric 95% CI mean Shapiro-Wilk pvalue Ljung-Box pvalue (lag=1) Dip test pvalue
redis/obfuscate_redis_string execution_time [32.283µs; 32.569µs] or [-0.440%; +0.440%] None None None

Group 4

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz 4f6c368 1744290353 ekump/APMSP-1930-add-retry-logic-to-test-agent-requests
scenario metric min mean ± sd median ± mad p75 p95 p99 max peak_to_median_ratio skewness kurtosis cv sem runs sample_size
normalization/normalize_trace/test_trace execution_time 246.890ns 256.241ns ± 12.232ns 250.367ns ± 2.038ns 255.380ns 282.196ns 289.552ns 293.495ns 17.23% 1.479 0.731 4.76% 0.865ns 1 200
scenario metric 95% CI mean Shapiro-Wilk pvalue Ljung-Box pvalue (lag=1) Dip test pvalue
normalization/normalize_trace/test_trace execution_time [254.545ns; 257.936ns] or [-0.662%; +0.662%] None None None

Group 5

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz 4f6c368 1744290353 ekump/APMSP-1930-add-retry-logic-to-test-agent-requests
scenario metric min mean ± sd median ± mad p75 p95 p99 max peak_to_median_ratio skewness kurtosis cv sem runs sample_size
normalization/normalize_service/normalize_service/A0000000000000000000000000000000000000000000000000... execution_time 504.025µs 505.038µs ± 0.375µs 505.036µs ± 0.244µs 505.279µs 505.628µs 506.051µs 506.125µs 0.22% 0.134 0.039 0.07% 0.027µs 1 200
normalization/normalize_service/normalize_service/A0000000000000000000000000000000000000000000000000... throughput 1975796.059op/s 1980049.021op/s ± 1470.640op/s 1980056.105op/s ± 956.095op/s 1981007.040op/s 1982392.620op/s 1983111.188op/s 1984029.226op/s 0.20% -0.130 0.035 0.07% 103.990op/s 1 200
normalization/normalize_service/normalize_service/Data🐨dog🐶 繋がっ⛰てて execution_time 453.602µs 454.972µs ± 0.494µs 454.935µs ± 0.336µs 455.292µs 455.830µs 456.073µs 456.652µs 0.38% 0.353 0.475 0.11% 0.035µs 1 200
normalization/normalize_service/normalize_service/Data🐨dog🐶 繋がっ⛰てて throughput 2189852.792op/s 2197941.646op/s ± 2384.513op/s 2198115.007op/s ± 1625.182op/s 2199543.463op/s 2201593.875op/s 2202660.753op/s 2204577.762op/s 0.29% -0.345 0.465 0.11% 168.611op/s 1 200
normalization/normalize_service/normalize_service/Test Conversion 0f Weird !@#$%^&**() Characters execution_time 177.048µs 177.551µs ± 0.158µs 177.559µs ± 0.084µs 177.641µs 177.792µs 177.888µs 178.089µs 0.30% -0.199 0.765 0.09% 0.011µs 1 200
normalization/normalize_service/normalize_service/Test Conversion 0f Weird !@#$%^&**() Characters throughput 5615163.022op/s 5632199.366op/s ± 5019.921op/s 5631935.437op/s ± 2656.650op/s 5634679.862op/s 5640883.628op/s 5645956.524op/s 5648194.362op/s 0.29% 0.207 0.766 0.09% 354.962op/s 1 200
normalization/normalize_service/normalize_service/[empty string] execution_time 37.550µs 37.658µs ± 0.045µs 37.653µs ± 0.026µs 37.686µs 37.730µs 37.764µs 37.874µs 0.59% 0.839 2.780 0.12% 0.003µs 1 200
normalization/normalize_service/normalize_service/[empty string] throughput 26403190.826op/s 26554709.426op/s ± 31599.203op/s 26558619.362op/s ± 18657.056op/s 26575113.388op/s 26601017.010op/s 26621438.139op/s 26631081.892op/s 0.27% -0.825 2.724 0.12% 2234.401op/s 1 200
normalization/normalize_service/normalize_service/test_ASCII execution_time 48.084µs 48.317µs ± 0.233µs 48.290µs ± 0.201µs 48.521µs 48.606µs 48.726µs 49.606µs 2.73% 0.940 2.687 0.48% 0.016µs 1 200
normalization/normalize_service/normalize_service/test_ASCII throughput 20158958.929op/s 20697050.110op/s ± 99463.406op/s 20708325.277op/s ± 86443.780op/s 20793405.523op/s 20796098.177op/s 20796835.268op/s 20797014.737op/s 0.43% -0.887 2.317 0.48% 7033.125op/s 1 200
scenario metric 95% CI mean Shapiro-Wilk pvalue Ljung-Box pvalue (lag=1) Dip test pvalue
normalization/normalize_service/normalize_service/A0000000000000000000000000000000000000000000000000... execution_time [504.986µs; 505.090µs] or [-0.010%; +0.010%] None None None
normalization/normalize_service/normalize_service/A0000000000000000000000000000000000000000000000000... throughput [1979845.204op/s; 1980252.837op/s] or [-0.010%; +0.010%] None None None
normalization/normalize_service/normalize_service/Data🐨dog🐶 繋がっ⛰てて execution_time [454.903µs; 455.040µs] or [-0.015%; +0.015%] None None None
normalization/normalize_service/normalize_service/Data🐨dog🐶 繋がっ⛰てて throughput [2197611.176op/s; 2198272.117op/s] or [-0.015%; +0.015%] None None None
normalization/normalize_service/normalize_service/Test Conversion 0f Weird !@#$%^&**() Characters execution_time [177.529µs; 177.573µs] or [-0.012%; +0.012%] None None None
normalization/normalize_service/normalize_service/Test Conversion 0f Weird !@#$%^&**() Characters throughput [5631503.654op/s; 5632895.079op/s] or [-0.012%; +0.012%] None None None
normalization/normalize_service/normalize_service/[empty string] execution_time [37.652µs; 37.664µs] or [-0.017%; +0.017%] None None None
normalization/normalize_service/normalize_service/[empty string] throughput [26550330.081op/s; 26559088.772op/s] or [-0.016%; +0.016%] None None None
normalization/normalize_service/normalize_service/test_ASCII execution_time [48.285µs; 48.350µs] or [-0.067%; +0.067%] None None None
normalization/normalize_service/normalize_service/test_ASCII throughput [20683265.438op/s; 20710834.781op/s] or [-0.067%; +0.067%] None None None

Group 6

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz 4f6c368 1744290353 ekump/APMSP-1930-add-retry-logic-to-test-agent-requests
scenario metric min mean ± sd median ± mad p75 p95 p99 max peak_to_median_ratio skewness kurtosis cv sem runs sample_size
concentrator/add_spans_to_concentrator execution_time 6.000ms 6.013ms ± 0.020ms 6.010ms ± 0.004ms 6.014ms 6.022ms 6.100ms 6.195ms 3.08% 7.643 63.763 0.33% 0.001ms 1 200
scenario metric 95% CI mean Shapiro-Wilk pvalue Ljung-Box pvalue (lag=1) Dip test pvalue
concentrator/add_spans_to_concentrator execution_time [6.010ms; 6.016ms] or [-0.046%; +0.046%] None None None

Group 7

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz 4f6c368 1744290353 ekump/APMSP-1930-add-retry-logic-to-test-agent-requests
scenario metric min mean ± sd median ± mad p75 p95 p99 max peak_to_median_ratio skewness kurtosis cv sem runs sample_size
ip_address/quantize_peer_ip_address_benchmark execution_time 4.911µs 4.979µs ± 0.031µs 4.985µs ± 0.030µs 5.002µs 5.020µs 5.024µs 5.025µs 0.80% -0.235 -1.298 0.63% 0.002µs 1 200
scenario metric 95% CI mean Shapiro-Wilk pvalue Ljung-Box pvalue (lag=1) Dip test pvalue
ip_address/quantize_peer_ip_address_benchmark execution_time [4.974µs; 4.983µs] or [-0.087%; +0.087%] None None None

Group 8

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz 4f6c368 1744290353 ekump/APMSP-1930-add-retry-logic-to-test-agent-requests
scenario metric min mean ± sd median ± mad p75 p95 p99 max peak_to_median_ratio skewness kurtosis cv sem runs sample_size
credit_card/is_card_number/ execution_time 3.896µs 3.913µs ± 0.003µs 3.913µs ± 0.001µs 3.915µs 3.917µs 3.919µs 3.920µs 0.18% -1.659 11.400 0.06% 0.000µs 1 200
credit_card/is_card_number/ throughput 255082488.647op/s 255538924.825op/s ± 165723.759op/s 255533574.050op/s ± 84365.717op/s 255615886.543op/s 255799900.006op/s 255928352.774op/s 256705115.522op/s 0.46% 1.679 11.556 0.06% 11718.439op/s 1 200
credit_card/is_card_number/ 3782-8224-6310-005 execution_time 76.680µs 77.387µs ± 0.425µs 77.328µs ± 0.264µs 77.602µs 78.151µs 78.503µs 79.563µs 2.89% 1.258 3.125 0.55% 0.030µs 1 200
credit_card/is_card_number/ 3782-8224-6310-005 throughput 12568657.510op/s 12922475.172op/s ± 70462.657op/s 12932004.807op/s ± 44138.370op/s 12973929.347op/s 13011353.968op/s 13040242.026op/s 13041264.279op/s 0.84% -1.201 2.832 0.54% 4982.462op/s 1 200
credit_card/is_card_number/ 378282246310005 execution_time 79.750µs 80.384µs ± 0.341µs 80.364µs ± 0.225µs 80.591µs 80.945µs 81.228µs 82.077µs 2.13% 0.982 2.586 0.42% 0.024µs 1 200
credit_card/is_card_number/ 378282246310005 throughput 12183618.238op/s 12440524.578op/s ± 52560.635op/s 12443325.121op/s ± 34809.352op/s 12476456.985op/s 12511613.407op/s 12533390.765op/s 12539133.381op/s 0.77% -0.937 2.376 0.42% 3716.598op/s 1 200
credit_card/is_card_number/37828224631 execution_time 3.892µs 3.912µs ± 0.003µs 3.912µs ± 0.001µs 3.914µs 3.916µs 3.917µs 3.918µs 0.14% -2.109 12.545 0.07% 0.000µs 1 200
credit_card/is_card_number/37828224631 throughput 255240366.324op/s 255617968.288op/s ± 178698.642op/s 255597303.448op/s ± 95352.322op/s 255695157.004op/s 255921143.954op/s 255986737.251op/s 256917756.867op/s 0.52% 2.131 12.735 0.07% 12635.902op/s 1 200
credit_card/is_card_number/378282246310005 execution_time 67.118µs 67.769µs ± 0.346µs 67.744µs ± 0.233µs 67.983µs 68.384µs 68.628µs 68.971µs 1.81% 0.488 0.025 0.51% 0.024µs 1 200
credit_card/is_card_number/378282246310005 throughput 14498952.451op/s 14756350.763op/s ± 75250.107op/s 14761527.769op/s ± 50616.243op/s 14808639.802op/s 14870101.226op/s 14887199.429op/s 14899090.874op/s 0.93% -0.461 -0.023 0.51% 5320.986op/s 1 200
credit_card/is_card_number/37828224631000521389798 execution_time 51.745µs 51.831µs ± 0.036µs 51.829µs ± 0.018µs 51.848µs 51.900µs 51.909µs 51.922µs 0.18% 0.049 0.266 0.07% 0.003µs 1 200
credit_card/is_card_number/37828224631000521389798 throughput 19259579.920op/s 19293605.858op/s ± 13243.823op/s 19294288.892op/s ± 6863.848op/s 19299486.151op/s 19316287.784op/s 19323204.134op/s 19325571.596op/s 0.16% -0.045 0.265 0.07% 936.480op/s 1 200
credit_card/is_card_number/x371413321323331 execution_time 6.028µs 6.044µs ± 0.014µs 6.039µs ± 0.003µs 6.044µs 6.077µs 6.083µs 6.111µs 1.19% 2.086 4.041 0.23% 0.001µs 1 200
credit_card/is_card_number/x371413321323331 throughput 163651911.692op/s 165464683.048op/s ± 374346.917op/s 165603800.464op/s ± 89340.894op/s 165670528.826op/s 165765125.638op/s 165862590.719op/s 165895428.343op/s 0.18% -2.075 3.972 0.23% 26470.324op/s 1 200
credit_card/is_card_number_no_luhn/ execution_time 3.894µs 3.913µs ± 0.003µs 3.913µs ± 0.002µs 3.914µs 3.916µs 3.918µs 3.924µs 0.29% -1.240 7.051 0.08% 0.000µs 1 200
credit_card/is_card_number_no_luhn/ throughput 254825102.346op/s 255585467.220op/s ± 198108.200op/s 255559072.250op/s ± 99370.974op/s 255662592.604op/s 255908902.625op/s 256086617.348op/s 256806760.649op/s 0.49% 1.257 7.140 0.08% 14008.365op/s 1 200
credit_card/is_card_number_no_luhn/ 3782-8224-6310-005 execution_time 65.984µs 66.263µs ± 0.170µs 66.227µs ± 0.083µs 66.320µs 66.653µs 66.813µs 66.843µs 0.93% 1.407 1.939 0.26% 0.012µs 1 200
credit_card/is_card_number_no_luhn/ 3782-8224-6310-005 throughput 14960485.988op/s 15091450.716op/s ± 38659.499op/s 15099507.756op/s ± 18914.971op/s 15117356.241op/s 15132876.705op/s 15144440.233op/s 15155245.416op/s 0.37% -1.392 1.892 0.26% 2733.639op/s 1 200
credit_card/is_card_number_no_luhn/ 378282246310005 execution_time 59.533µs 59.644µs ± 0.049µs 59.642µs ± 0.028µs 59.673µs 59.716µs 59.763µs 59.939µs 0.50% 1.153 5.590 0.08% 0.003µs 1 200
credit_card/is_card_number_no_luhn/ 378282246310005 throughput 16683714.510op/s 16766061.201op/s ± 13891.419op/s 16766809.265op/s ± 7834.610op/s 16774282.928op/s 16785985.716op/s 16794997.124op/s 16797277.161op/s 0.18% -1.137 5.498 0.08% 982.272op/s 1 200
credit_card/is_card_number_no_luhn/37828224631 execution_time 3.896µs 3.913µs ± 0.003µs 3.913µs ± 0.001µs 3.915µs 3.918µs 3.922µs 3.930µs 0.43% 0.037 6.629 0.08% 0.000µs 1 200
credit_card/is_card_number_no_luhn/37828224631 throughput 254449886.513op/s 255540152.773op/s ± 213478.883op/s 255542554.035op/s ± 90703.334op/s 255637188.828op/s 255855138.788op/s 255984069.810op/s 256689209.322op/s 0.45% -0.016 6.642 0.08% 15095.237op/s 1 200
credit_card/is_card_number_no_luhn/378282246310005 execution_time 56.248µs 56.475µs ± 0.101µs 56.472µs ± 0.066µs 56.534µs 56.643µs 56.716µs 56.772µs 0.53% 0.299 0.109 0.18% 0.007µs 1 200
credit_card/is_card_number_no_luhn/378282246310005 throughput 17614343.063op/s 17707137.678op/s ± 31564.313op/s 17707868.625op/s ± 20723.720op/s 17729607.703op/s 17758826.967op/s 17771759.555op/s 17778377.937op/s 0.40% -0.288 0.098 0.18% 2231.934op/s 1 200
credit_card/is_card_number_no_luhn/37828224631000521389798 execution_time 51.747µs 51.826µs ± 0.034µs 51.827µs ± 0.012µs 51.838µs 51.865µs 51.890µs 52.136µs 0.60% 3.690 34.083 0.06% 0.002µs 1 200
credit_card/is_card_number_no_luhn/37828224631000521389798 throughput 19180678.915op/s 19295258.546op/s ± 12541.398op/s 19295137.625op/s ± 4535.042op/s 19299780.465op/s 19315161.727op/s 19318074.283op/s 19324683.418op/s 0.15% -3.646 33.601 0.06% 886.811op/s 1 200
credit_card/is_card_number_no_luhn/x371413321323331 execution_time 6.026µs 6.045µs ± 0.016µs 6.039µs ± 0.003µs 6.043µs 6.076µs 6.097µs 6.116µs 1.27% 1.983 3.687 0.26% 0.001µs 1 200
credit_card/is_card_number_no_luhn/x371413321323331 throughput 163516592.785op/s 165438788.147op/s ± 423544.860op/s 165596261.118op/s ± 83733.628op/s 165667958.328op/s 165800423.751op/s 165887528.228op/s 165934216.658op/s 0.20% -1.970 3.607 0.26% 29949.144op/s 1 200
scenario metric 95% CI mean Shapiro-Wilk pvalue Ljung-Box pvalue (lag=1) Dip test pvalue
credit_card/is_card_number/ execution_time [3.913µs; 3.914µs] or [-0.009%; +0.009%] None None None
credit_card/is_card_number/ throughput [255515957.106op/s; 255561892.544op/s] or [-0.009%; +0.009%] None None None
credit_card/is_card_number/ 3782-8224-6310-005 execution_time [77.328µs; 77.446µs] or [-0.076%; +0.076%] None None None
credit_card/is_card_number/ 3782-8224-6310-005 throughput [12912709.725op/s; 12932240.618op/s] or [-0.076%; +0.076%] None None None
credit_card/is_card_number/ 378282246310005 execution_time [80.337µs; 80.431µs] or [-0.059%; +0.059%] None None None
credit_card/is_card_number/ 378282246310005 throughput [12433240.179op/s; 12447808.976op/s] or [-0.059%; +0.059%] None None None
credit_card/is_card_number/37828224631 execution_time [3.912µs; 3.912µs] or [-0.010%; +0.010%] None None None
credit_card/is_card_number/37828224631 throughput [255593202.374op/s; 255642734.201op/s] or [-0.010%; +0.010%] None None None
credit_card/is_card_number/378282246310005 execution_time [67.721µs; 67.817µs] or [-0.071%; +0.071%] None None None
credit_card/is_card_number/378282246310005 throughput [14745921.822op/s; 14766779.704op/s] or [-0.071%; +0.071%] None None None
credit_card/is_card_number/37828224631000521389798 execution_time [51.826µs; 51.836µs] or [-0.010%; +0.010%] None None None
credit_card/is_card_number/37828224631000521389798 throughput [19291770.392op/s; 19295441.324op/s] or [-0.010%; +0.010%] None None None
credit_card/is_card_number/x371413321323331 execution_time [6.042µs; 6.046µs] or [-0.032%; +0.032%] None None None
credit_card/is_card_number/x371413321323331 throughput [165412802.166op/s; 165516563.931op/s] or [-0.031%; +0.031%] None None None
credit_card/is_card_number_no_luhn/ execution_time [3.912µs; 3.913µs] or [-0.011%; +0.011%] None None None
credit_card/is_card_number_no_luhn/ throughput [255558011.329op/s; 255612923.111op/s] or [-0.011%; +0.011%] None None None
credit_card/is_card_number_no_luhn/ 3782-8224-6310-005 execution_time [66.240µs; 66.287µs] or [-0.036%; +0.036%] None None None
credit_card/is_card_number_no_luhn/ 3782-8224-6310-005 throughput [15086092.882op/s; 15096808.551op/s] or [-0.036%; +0.036%] None None None
credit_card/is_card_number_no_luhn/ 378282246310005 execution_time [59.637µs; 59.651µs] or [-0.011%; +0.011%] None None None
credit_card/is_card_number_no_luhn/ 378282246310005 throughput [16764135.984op/s; 16767986.419op/s] or [-0.011%; +0.011%] None None None
credit_card/is_card_number_no_luhn/37828224631 execution_time [3.913µs; 3.914µs] or [-0.012%; +0.012%] None None None
credit_card/is_card_number_no_luhn/37828224631 throughput [255510566.653op/s; 255569738.893op/s] or [-0.012%; +0.012%] None None None
credit_card/is_card_number_no_luhn/378282246310005 execution_time [56.461µs; 56.489µs] or [-0.025%; +0.025%] None None None
credit_card/is_card_number_no_luhn/378282246310005 throughput [17702763.167op/s; 17711512.188op/s] or [-0.025%; +0.025%] None None None
credit_card/is_card_number_no_luhn/37828224631000521389798 execution_time [51.822µs; 51.831µs] or [-0.009%; +0.009%] None None None
credit_card/is_card_number_no_luhn/37828224631000521389798 throughput [19293520.429op/s; 19296996.663op/s] or [-0.009%; +0.009%] None None None
credit_card/is_card_number_no_luhn/x371413321323331 execution_time [6.042µs; 6.047µs] or [-0.036%; +0.036%] None None None
credit_card/is_card_number_no_luhn/x371413321323331 throughput [165380088.903op/s; 165497487.391op/s] or [-0.035%; +0.035%] None None None

Group 9

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz 4f6c368 1744290353 ekump/APMSP-1930-add-retry-logic-to-test-agent-requests
scenario metric min mean ± sd median ± mad p75 p95 p99 max peak_to_median_ratio skewness kurtosis cv sem runs sample_size
benching deserializing traces from msgpack to their internal representation execution_time 55.110ms 55.378ms ± 0.214ms 55.321ms ± 0.048ms 55.369ms 55.820ms 56.088ms 56.683ms 2.46% 2.988 11.188 0.39% 0.015ms 1 200
scenario metric 95% CI mean Shapiro-Wilk pvalue Ljung-Box pvalue (lag=1) Dip test pvalue
benching deserializing traces from msgpack to their internal representation execution_time [55.348ms; 55.407ms] or [-0.054%; +0.054%] None None None

Group 10

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz 4f6c368 1744290353 ekump/APMSP-1930-add-retry-logic-to-test-agent-requests
scenario metric min mean ± sd median ± mad p75 p95 p99 max peak_to_median_ratio skewness kurtosis cv sem runs sample_size
two way interface execution_time 17.613µs 24.925µs ± 9.958µs 17.761µs ± 0.106µs 33.498µs 42.447µs 43.701µs 73.964µs 316.45% 1.420 2.882 39.85% 0.704µs 1 200
scenario metric 95% CI mean Shapiro-Wilk pvalue Ljung-Box pvalue (lag=1) Dip test pvalue
two way interface execution_time [23.545µs; 26.305µs] or [-5.537%; +5.537%] None None None

Group 11

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz 4f6c368 1744290353 ekump/APMSP-1930-add-retry-logic-to-test-agent-requests
scenario metric min mean ± sd median ± mad p75 p95 p99 max peak_to_median_ratio skewness kurtosis cv sem runs sample_size
normalization/normalize_name/normalize_name/Too-Long-.Too-Long-.Too-Long-.Too-Long-.Too-Long-.Too-Lo... execution_time 208.710µs 209.106µs ± 0.156µs 209.098µs ± 0.094µs 209.191µs 209.350µs 209.555µs 209.758µs 0.32% 0.587 1.764 0.07% 0.011µs 1 200
normalization/normalize_name/normalize_name/Too-Long-.Too-Long-.Too-Long-.Too-Long-.Too-Long-.Too-Lo... throughput 4767404.935op/s 4782259.306op/s ± 3566.689op/s 4782442.696op/s ± 2156.279op/s 4784632.240op/s 4787473.512op/s 4790657.223op/s 4791325.784op/s 0.19% -0.580 1.745 0.07% 252.203op/s 1 200
normalization/normalize_name/normalize_name/bad-name execution_time 18.615µs 18.697µs ± 0.123µs 18.684µs ± 0.020µs 18.708µs 18.751µs 18.848µs 20.332µs 8.82% 11.934 155.606 0.66% 0.009µs 1 200
normalization/normalize_name/normalize_name/bad-name throughput 49182507.533op/s 53485766.928op/s ± 326260.618op/s 53522579.501op/s ± 58188.937op/s 53571548.153op/s 53667194.233op/s 53692476.271op/s 53721218.743op/s 0.37% -11.632 150.064 0.61% 23070.110op/s 1 200
normalization/normalize_name/normalize_name/good execution_time 10.939µs 11.009µs ± 0.044µs 11.006µs ± 0.035µs 11.041µs 11.085µs 11.103µs 11.115µs 0.99% 0.291 -0.802 0.39% 0.003µs 1 200
normalization/normalize_name/normalize_name/good throughput 89969756.320op/s 90836123.437op/s ± 358615.380op/s 90862642.943op/s ± 285984.008op/s 91141549.682op/s 91356337.682op/s 91399463.733op/s 91415198.691op/s 0.61% -0.277 -0.815 0.39% 25357.937op/s 1 200
scenario metric 95% CI mean Shapiro-Wilk pvalue Ljung-Box pvalue (lag=1) Dip test pvalue
normalization/normalize_name/normalize_name/Too-Long-.Too-Long-.Too-Long-.Too-Long-.Too-Long-.Too-Lo... execution_time [209.085µs; 209.128µs] or [-0.010%; +0.010%] None None None
normalization/normalize_name/normalize_name/Too-Long-.Too-Long-.Too-Long-.Too-Long-.Too-Long-.Too-Lo... throughput [4781764.997op/s; 4782753.615op/s] or [-0.010%; +0.010%] None None None
normalization/normalize_name/normalize_name/bad-name execution_time [18.680µs; 18.714µs] or [-0.091%; +0.091%] None None None
normalization/normalize_name/normalize_name/bad-name throughput [53440550.344op/s; 53530983.512op/s] or [-0.085%; +0.085%] None None None
normalization/normalize_name/normalize_name/good execution_time [11.003µs; 11.015µs] or [-0.055%; +0.055%] None None None
normalization/normalize_name/normalize_name/good throughput [90786422.794op/s; 90885824.080op/s] or [-0.055%; +0.055%] None None None

Group 12

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz 4f6c368 1744290353 ekump/APMSP-1930-add-retry-logic-to-test-agent-requests
scenario metric min mean ± sd median ± mad p75 p95 p99 max peak_to_median_ratio skewness kurtosis cv sem runs sample_size
write only interface execution_time 1.169µs 3.150µs ± 1.405µs 2.963µs ± 0.023µs 2.984µs 3.589µs 13.743µs 14.729µs 397.04% 7.403 55.740 44.47% 0.099µs 1 200
scenario metric 95% CI mean Shapiro-Wilk pvalue Ljung-Box pvalue (lag=1) Dip test pvalue
write only interface execution_time [2.955µs; 3.345µs] or [-6.179%; +6.179%] None None None

Group 13

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz 4f6c368 1744290353 ekump/APMSP-1930-add-retry-logic-to-test-agent-requests
scenario metric min mean ± sd median ± mad p75 p95 p99 max peak_to_median_ratio skewness kurtosis cv sem runs sample_size
tags/replace_trace_tags execution_time 2.391µs 2.421µs ± 0.022µs 2.417µs ± 0.010µs 2.427µs 2.463µs 2.467µs 2.624µs 8.58% 4.697 38.042 0.89% 0.002µs 1 200
scenario metric 95% CI mean Shapiro-Wilk pvalue Ljung-Box pvalue (lag=1) Dip test pvalue
tags/replace_trace_tags execution_time [2.418µs; 2.424µs] or [-0.124%; +0.124%] None None None

Baseline

Omitted due to size.

@codecov-commenter
Copy link

codecov-commenter commented Apr 10, 2025

Codecov Report

Attention: Patch coverage is 69.86301% with 22 lines in your changes missing coverage. Please review.

Project coverage is 71.50%. Comparing base (e1678bf) to head (4f6c368).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1015      +/-   ##
==========================================
- Coverage   71.55%   71.50%   -0.05%     
==========================================
  Files         337      337              
  Lines       50516    50583      +67     
==========================================
+ Hits        36145    36170      +25     
- Misses      14371    14413      +42     
Components Coverage Δ
crashtracker 42.72% <ø> (+0.05%) ⬆️
crashtracker-ffi 6.30% <ø> (ø)
datadog-alloc 98.73% <ø> (ø)
data-pipeline 90.93% <ø> (ø)
data-pipeline-ffi 90.35% <ø> (ø)
ddcommon 79.98% <ø> (+0.03%) ⬆️
ddcommon-ffi 66.37% <ø> (ø)
ddtelemetry 60.29% <ø> (ø)
ddtelemetry-ffi 21.43% <ø> (ø)
dogstatsd-client 82.57% <ø> (ø)
ipc 82.42% <ø> (ø)
profiling 77.45% <ø> (-0.14%) ⬇️
profiling-ffi 62.28% <ø> (ø)
serverless 0.00% <ø> (ø)
sidecar 41.65% <ø> (ø)
sidecar-ffi 6.02% <ø> (ø)
spawn-worker 54.37% <ø> (ø)
tinybytes 91.59% <ø> (ø)
trace-mini-agent 73.82% <ø> (ø)
trace-normalization 98.24% <ø> (ø)
trace-obfuscation 96.00% <ø> (ø)
trace-protobuf 78.50% <ø> (ø)
trace-utils 92.60% <69.86%> (-0.29%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@r1viollet
Copy link
Contributor

r1viollet commented Apr 10, 2025

Artifact Size Benchmark Report

aarch64-alpine-linux-musl
Artifact Baseline Commit Change
/aarch64-alpine-linux-musl/lib/libdatadog_profiling.a 77.61 MB 77.61 MB 0% (0 B) 👌
/aarch64-alpine-linux-musl/lib/libdatadog_profiling.so 7.78 MB 7.78 MB 0% (0 B) 👌
/aarch64-alpine-linux-musl/lib/libdatadog_profiling.so.debug 23.99 MB 23.99 MB 0% (0 B) 👌
aarch64-unknown-linux-gnu
Artifact Baseline Commit Change
/aarch64-unknown-linux-gnu/lib/libdatadog_profiling.a 71.92 MB 71.92 MB 0% (0 B) 👌
/aarch64-unknown-linux-gnu/lib/libdatadog_profiling.so 7.71 MB 7.71 MB 0% (0 B) 👌
/aarch64-unknown-linux-gnu/lib/libdatadog_profiling.so.debug 22.58 MB 22.58 MB 0% (0 B) 👌
libdatadog-x64-windows
Artifact Baseline Commit Change
/libdatadog-x64-windows/debug/dynamic/datadog_profiling_ffi.dll 16.89 MB 16.89 MB 0% (0 B) 👌
/libdatadog-x64-windows/debug/dynamic/datadog_profiling_ffi.lib 61.83 KB 61.83 KB 0% (0 B) 👌
/libdatadog-x64-windows/debug/dynamic/datadog_profiling_ffi.pdb 113.05 MB 113.05 MB 0% (0 B) 👌
/libdatadog-x64-windows/debug/static/datadog_profiling_ffi.lib 631.14 MB 631.14 MB 0% (0 B) 👌
/libdatadog-x64-windows/release/dynamic/datadog_profiling_ffi.dll 5.05 MB 5.05 MB 0% (0 B) 👌
/libdatadog-x64-windows/release/dynamic/datadog_profiling_ffi.lib 61.83 KB 61.83 KB 0% (0 B) 👌
/libdatadog-x64-windows/release/dynamic/datadog_profiling_ffi.pdb 16.05 MB 16.05 MB 0% (0 B) 👌
/libdatadog-x64-windows/release/static/datadog_profiling_ffi.lib 26.71 MB 26.71 MB 0% (0 B) 👌
libdatadog-x86-windows
Artifact Baseline Commit Change
/libdatadog-x86-windows/debug/dynamic/datadog_profiling_ffi.dll 14.29 MB 14.29 MB 0% (0 B) 👌
/libdatadog-x86-windows/debug/dynamic/datadog_profiling_ffi.lib 62.78 KB 62.78 KB 0% (0 B) 👌
/libdatadog-x86-windows/debug/dynamic/datadog_profiling_ffi.pdb 115.04 MB 115.04 MB 0% (0 B) 👌
/libdatadog-x86-windows/debug/static/datadog_profiling_ffi.lib 623.12 MB 623.12 MB 0% (0 B) 👌
/libdatadog-x86-windows/release/dynamic/datadog_profiling_ffi.dll 3.82 MB 3.82 MB 0% (0 B) 👌
/libdatadog-x86-windows/release/dynamic/datadog_profiling_ffi.lib 62.78 KB 62.78 KB 0% (0 B) 👌
/libdatadog-x86-windows/release/dynamic/datadog_profiling_ffi.pdb 16.68 MB 16.68 MB 0% (0 B) 👌
/libdatadog-x86-windows/release/static/datadog_profiling_ffi.lib 24.61 MB 24.61 MB 0% (0 B) 👌
x86_64-alpine-linux-musl
Artifact Baseline Commit Change
/x86_64-alpine-linux-musl/lib/libdatadog_profiling.a 66.88 MB 66.88 MB 0% (0 B) 👌
/x86_64-alpine-linux-musl/lib/libdatadog_profiling.so 8.24 MB 8.24 MB 0% (0 B) 👌
/x86_64-alpine-linux-musl/lib/libdatadog_profiling.so.debug 23.13 MB 23.13 MB 0% (0 B) 👌
x86_64-unknown-linux-gnu
Artifact Baseline Commit Change
/x86_64-unknown-linux-gnu/lib/libdatadog_profiling.a 67.82 MB 67.82 MB 0% (0 B) 👌
/x86_64-unknown-linux-gnu/lib/libdatadog_profiling.so 8.12 MB 8.12 MB 0% (0 B) 👌
/x86_64-unknown-linux-gnu/lib/libdatadog_profiling.so.debug 20.77 MB 20.77 MB 0% (0 B) 👌

Copy link
Contributor

@paullegranddc paullegranddc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few nits

/// # Arguments
///
/// * `req` - A `Request<Body>` representing the HTTP request to be sent.
/// * `max_retries` - An `i32` specifying the maximum number of retry attempts.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The name of the parameter also needs to be updated here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch, thank you.

@ekump ekump force-pushed the ekump/APMSP-1930-add-retry-logic-to-test-agent-requests branch from e9519b5 to 4f6c368 Compare April 10, 2025 13:06
@ekump ekump enabled auto-merge (squash) April 10, 2025 13:06
@ekump ekump merged commit 23f7c4e into main Apr 10, 2025
35 checks passed
@ekump ekump deleted the ekump/APMSP-1930-add-retry-logic-to-test-agent-requests branch April 10, 2025 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants