Skip to content

Conversation

@Aaalibaba42
Copy link
Contributor

@Aaalibaba42 Aaalibaba42 commented Oct 21, 2025

What does this PR do?

Change the collecting boolean field to an Option (inside a Mutex for reasons, but that's beside the point) in the TracerFlareManager. Also adding a original_log_level field that is managed by the integrater code.

Motivation

Basically, the integration will have to restore original log level after the Flare is sent, which is impractical because it therefore needs to be saved in a "global" state somewhere. But the TracerFlareManager already has this global scope requirement, thus storing the original log level in it makes sens. The change of the collecting field is just about simplifying the API, since now functions like zip_and_send take less arguments and stuff.

Additional Notes

Anticipating what's going through FFIs once it's implemented could be interesting.

How to test the change?

cargo test (it's still the design phase, it's not integrated anywhere).

@Aaalibaba42 Aaalibaba42 force-pushed the jwiriath/add-debug-levels-in-tracerflare-cc branch from 5314358 to 88afef4 Compare October 21, 2025 14:57
@pr-commenter
Copy link

pr-commenter bot commented Oct 21, 2025

Benchmarks

Comparison

Benchmark execution time: 2025-10-24 14:05:36

Comparing candidate commit d10fff8 in PR branch jwiriath/add-debug-levels-in-tracerflare-cc with baseline commit 636b792 in branch main.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 55 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 d10fff8 1761313889 jwiriath/add-debug-levels-in-tracerflare-cc
scenario metric min mean ± sd median ± mad p75 p95 p99 max peak_to_median_ratio skewness kurtosis cv sem runs sample_size
sdk_test_data/rules-based execution_time 121.772µs 123.061µs ± 1.198µs 122.866µs ± 0.329µs 123.230µs 124.176µs 127.360µs 135.033µs 9.90% 6.191 52.834 0.97% 0.085µs 1 200
scenario metric 95% CI mean Shapiro-Wilk pvalue Ljung-Box pvalue (lag=1) Dip test pvalue
sdk_test_data/rules-based execution_time [122.895µs; 123.227µs] or [-0.135%; +0.135%] None None None

Group 2

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz d10fff8 1761313889 jwiriath/add-debug-levels-in-tracerflare-cc
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 10.687ms 10.713ms ± 0.013ms 10.712ms ± 0.007ms 10.719ms 10.734ms 10.748ms 10.784ms 0.68% 1.363 4.804 0.12% 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 [10.712ms; 10.715ms] or [-0.016%; +0.016%] None None None

Group 3

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz d10fff8 1761313889 jwiriath/add-debug-levels-in-tracerflare-cc
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 496.060µs 496.960µs ± 0.725µs 496.841µs ± 0.255µs 497.111µs 497.642µs 500.846µs 501.081µs 0.85% 3.889 18.203 0.15% 0.051µs 1 200
normalization/normalize_service/normalize_service/A0000000000000000000000000000000000000000000000000... throughput 1995686.435op/s 2012240.380op/s ± 2920.655op/s 2012716.905op/s ± 1035.458op/s 2013706.686op/s 2014827.023op/s 2015503.603op/s 2015884.046op/s 0.16% -3.867 18.050 0.14% 206.521op/s 1 200
normalization/normalize_service/normalize_service/Data🐨dog🐶 繋がっ⛰てて execution_time 370.227µs 370.857µs ± 0.310µs 370.847µs ± 0.212µs 371.043µs 371.455µs 371.670µs 371.874µs 0.28% 0.468 0.199 0.08% 0.022µs 1 200
normalization/normalize_service/normalize_service/Data🐨dog🐶 繋がっ⛰てて throughput 2689086.320op/s 2696461.485op/s ± 2252.232op/s 2696529.203op/s ± 1538.034op/s 2698271.640op/s 2699822.094op/s 2700642.694op/s 2701043.989op/s 0.17% -0.463 0.191 0.08% 159.257op/s 1 200
normalization/normalize_service/normalize_service/Test Conversion 0f Weird !@#$%^&**() Characters execution_time 168.418µs 168.811µs ± 0.149µs 168.795µs ± 0.099µs 168.913µs 169.063µs 169.121µs 169.183µs 0.23% 0.090 -0.251 0.09% 0.011µs 1 200
normalization/normalize_service/normalize_service/Test Conversion 0f Weird !@#$%^&**() Characters throughput 5910773.168op/s 5923802.486op/s ± 5219.605op/s 5924350.998op/s ± 3461.208op/s 5927325.410op/s 5931760.940op/s 5936108.300op/s 5937594.501op/s 0.22% -0.086 -0.250 0.09% 369.082op/s 1 200
normalization/normalize_service/normalize_service/[empty string] execution_time 36.184µs 36.449µs ± 0.096µs 36.441µs ± 0.064µs 36.516µs 36.617µs 36.661µs 36.705µs 0.72% 0.145 -0.250 0.26% 0.007µs 1 200
normalization/normalize_service/normalize_service/[empty string] throughput 27244000.150op/s 27435497.650op/s ± 72443.111op/s 27441425.276op/s ± 48389.836op/s 27485156.298op/s 27537092.566op/s 27587225.624op/s 27636578.344op/s 0.71% -0.131 -0.248 0.26% 5122.502op/s 1 200
normalization/normalize_service/normalize_service/test_ASCII execution_time 46.201µs 46.318µs ± 0.069µs 46.311µs ± 0.049µs 46.362µs 46.449µs 46.480µs 46.546µs 0.51% 0.595 -0.043 0.15% 0.005µs 1 200
normalization/normalize_service/normalize_service/test_ASCII throughput 21484015.534op/s 21589749.366op/s ± 32095.100op/s 21593284.489op/s ± 22904.093op/s 21614730.872op/s 21634252.153op/s 21642496.688op/s 21644428.219op/s 0.24% -0.588 -0.057 0.15% 2269.466op/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 [496.859µs; 497.060µs] or [-0.020%; +0.020%] None None None
normalization/normalize_service/normalize_service/A0000000000000000000000000000000000000000000000000... throughput [2011835.606op/s; 2012645.155op/s] or [-0.020%; +0.020%] None None None
normalization/normalize_service/normalize_service/Data🐨dog🐶 繋がっ⛰てて execution_time [370.814µs; 370.900µs] or [-0.012%; +0.012%] None None None
normalization/normalize_service/normalize_service/Data🐨dog🐶 繋がっ⛰てて throughput [2696149.348op/s; 2696773.623op/s] or [-0.012%; +0.012%] None None None
normalization/normalize_service/normalize_service/Test Conversion 0f Weird !@#$%^&**() Characters execution_time [168.790µs; 168.831µs] or [-0.012%; +0.012%] None None None
normalization/normalize_service/normalize_service/Test Conversion 0f Weird !@#$%^&**() Characters throughput [5923079.099op/s; 5924525.873op/s] or [-0.012%; +0.012%] None None None
normalization/normalize_service/normalize_service/[empty string] execution_time [36.436µs; 36.463µs] or [-0.037%; +0.037%] None None None
normalization/normalize_service/normalize_service/[empty string] throughput [27425457.732op/s; 27445537.568op/s] or [-0.037%; +0.037%] None None None
normalization/normalize_service/normalize_service/test_ASCII execution_time [46.309µs; 46.328µs] or [-0.021%; +0.021%] None None None
normalization/normalize_service/normalize_service/test_ASCII throughput [21585301.293op/s; 21594197.438op/s] or [-0.021%; +0.021%] None None None

Group 4

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz d10fff8 1761313889 jwiriath/add-debug-levels-in-tracerflare-cc
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.406µs 2.438µs ± 0.025µs 2.436µs ± 0.017µs 2.452µs 2.503µs 2.510µs 2.521µs 3.50% 1.275 1.496 1.04% 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.435µs; 2.442µs] or [-0.144%; +0.144%] None None None

Group 5

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz d10fff8 1761313889 jwiriath/add-debug-levels-in-tracerflare-cc
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 5.031µs 5.101µs ± 0.042µs 5.111µs ± 0.034µs 5.142µs 5.152µs 5.157µs 5.160µs 0.96% -0.353 -1.338 0.82% 0.003µ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 [5.095µs; 5.107µs] or [-0.114%; +0.114%] None None None

Group 6

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz d10fff8 1761313889 jwiriath/add-debug-levels-in-tracerflare-cc
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 85.518µs 85.709µs ± 0.250µs 85.680µs ± 0.041µs 85.725µs 85.826µs 85.999µs 89.039µs 3.92% 11.990 156.909 0.29% 0.018µ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 [85.675µs; 85.744µs] or [-0.040%; +0.040%] None None None

Group 7

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz d10fff8 1761313889 jwiriath/add-debug-levels-in-tracerflare-cc
scenario metric min mean ± sd median ± mad p75 p95 p99 max peak_to_median_ratio skewness kurtosis cv sem runs sample_size
benching serializing traces from their internal representation to msgpack execution_time 14.544ms 14.617ms ± 0.033ms 14.612ms ± 0.016ms 14.628ms 14.659ms 14.732ms 14.798ms 1.27% 2.251 8.622 0.23% 0.002ms 1 200
scenario metric 95% CI mean Shapiro-Wilk pvalue Ljung-Box pvalue (lag=1) Dip test pvalue
benching serializing traces from their internal representation to msgpack execution_time [14.612ms; 14.621ms] or [-0.031%; +0.031%] None None None

Group 8

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz d10fff8 1761313889 jwiriath/add-debug-levels-in-tracerflare-cc
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.244µs 3.272µs ± 1.448µs 3.040µs ± 0.030µs 3.074µs 3.717µs 14.429µs 14.948µs 391.72% 7.286 54.417 44.15% 0.102µs 1 200
scenario metric 95% CI mean Shapiro-Wilk pvalue Ljung-Box pvalue (lag=1) Dip test pvalue
write only interface execution_time [3.071µs; 3.473µs] or [-6.134%; +6.134%] None None None

Group 9

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz d10fff8 1761313889 jwiriath/add-debug-levels-in-tracerflare-cc
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.885µs 26.161µs ± 9.512µs 18.327µs ± 0.251µs 34.510µs 43.113µs 44.404µs 61.562µs 235.91% 0.719 -0.405 36.27% 0.673µs 1 200
scenario metric 95% CI mean Shapiro-Wilk pvalue Ljung-Box pvalue (lag=1) Dip test pvalue
two way interface execution_time [24.843µs; 27.479µs] or [-5.039%; +5.039%] None None None

Group 10

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz d10fff8 1761313889 jwiriath/add-debug-levels-in-tracerflare-cc
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 162.593µs 163.453µs ± 0.676µs 163.373µs ± 0.164µs 163.543µs 163.927µs 164.637µs 172.035µs 5.30% 10.373 128.403 0.41% 0.048µ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 [163.359µs; 163.547µs] or [-0.057%; +0.057%] None None None

Group 11

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz d10fff8 1761313889 jwiriath/add-debug-levels-in-tracerflare-cc
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 60.333ms 60.732ms ± 1.825ms 60.496ms ± 0.064ms 60.546ms 60.777ms 69.797ms 79.110ms 30.77% 8.556 75.025 3.00% 0.129ms 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 [60.479ms; 60.985ms] or [-0.416%; +0.416%] None None None

Group 12

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz d10fff8 1761313889 jwiriath/add-debug-levels-in-tracerflare-cc
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 185.516µs 185.942µs ± 0.225µs 185.925µs ± 0.150µs 186.083µs 186.310µs 186.543µs 186.662µs 0.40% 0.477 0.052 0.12% 0.016µs 1 200
normalization/normalize_name/normalize_name/Too-Long-.Too-Long-.Too-Long-.Too-Long-.Too-Long-.Too-Lo... throughput 5357284.682op/s 5378024.467op/s ± 6512.187op/s 5378504.886op/s ± 4341.762op/s 5382694.798op/s 5387617.930op/s 5389211.141op/s 5390379.359op/s 0.22% -0.470 0.040 0.12% 460.481op/s 1 200
normalization/normalize_name/normalize_name/bad-name execution_time 17.773µs 17.855µs ± 0.098µs 17.847µs ± 0.014µs 17.860µs 17.894µs 17.930µs 19.181µs 7.48% 12.557 167.848 0.55% 0.007µs 1 200
normalization/normalize_name/normalize_name/bad-name throughput 52135496.212op/s 56008923.319op/s ± 287175.322op/s 56033026.525op/s ± 44290.134op/s 56078285.290op/s 56148391.623op/s 56213391.493op/s 56264669.003op/s 0.41% -12.353 164.180 0.51% 20306.362op/s 1 200
normalization/normalize_name/normalize_name/good execution_time 10.555µs 10.590µs ± 0.020µs 10.583µs ± 0.012µs 10.605µs 10.629µs 10.648µs 10.661µs 0.74% 0.888 0.348 0.19% 0.001µs 1 200
normalization/normalize_name/normalize_name/good throughput 93797098.401op/s 94428833.363op/s ± 182350.042op/s 94492348.806op/s ± 103558.721op/s 94566356.843op/s 94648997.422op/s 94700056.317op/s 94746112.718op/s 0.27% -0.879 0.323 0.19% 12894.095op/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 [185.911µs; 185.973µs] or [-0.017%; +0.017%] None None None
normalization/normalize_name/normalize_name/Too-Long-.Too-Long-.Too-Long-.Too-Long-.Too-Long-.Too-Lo... throughput [5377121.941op/s; 5378926.994op/s] or [-0.017%; +0.017%] None None None
normalization/normalize_name/normalize_name/bad-name execution_time [17.841µs; 17.868µs] or [-0.076%; +0.076%] None None None
normalization/normalize_name/normalize_name/bad-name throughput [55969123.581op/s; 56048723.056op/s] or [-0.071%; +0.071%] None None None
normalization/normalize_name/normalize_name/good execution_time [10.587µs; 10.593µs] or [-0.027%; +0.027%] None None None
normalization/normalize_name/normalize_name/good throughput [94403561.401op/s; 94454105.325op/s] or [-0.027%; +0.027%] None None None

Group 13

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz d10fff8 1761313889 jwiriath/add-debug-levels-in-tracerflare-cc
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.895µs 3.913µs ± 0.003µs 3.913µs ± 0.002µs 3.914µs 3.917µs 3.918µs 3.919µs 0.14% -1.710 11.397 0.06% 0.000µs 1 200
credit_card/is_card_number/ throughput 255182566.310op/s 255556186.425op/s ± 166005.455op/s 255536150.237op/s ± 102277.196op/s 255673275.776op/s 255769385.123op/s 255845529.805op/s 256742786.502op/s 0.47% 1.731 11.570 0.06% 11738.358op/s 1 200
credit_card/is_card_number/ 3782-8224-6310-005 execution_time 78.816µs 80.804µs ± 0.941µs 80.722µs ± 0.652µs 81.457µs 82.284µs 82.868µs 82.883µs 2.68% 0.099 -0.713 1.16% 0.067µs 1 200
credit_card/is_card_number/ 3782-8224-6310-005 throughput 12065183.907op/s 12377363.396op/s ± 144006.765op/s 12388134.027op/s ± 99864.902op/s 12480910.336op/s 12607041.750op/s 12672788.788op/s 12687722.010op/s 2.42% -0.055 -0.718 1.16% 10182.816op/s 1 200
credit_card/is_card_number/ 378282246310005 execution_time 71.492µs 72.332µs ± 0.552µs 72.359µs ± 0.459µs 72.763µs 73.247µs 73.628µs 73.708µs 1.86% 0.329 -0.807 0.76% 0.039µs 1 200
credit_card/is_card_number/ 378282246310005 throughput 13567096.025op/s 13825916.826op/s ± 105273.536op/s 13820027.650op/s ± 87099.701op/s 13919794.847op/s 13970255.867op/s 13983456.770op/s 13987500.206op/s 1.21% -0.305 -0.842 0.76% 7443.963op/s 1 200
credit_card/is_card_number/37828224631 execution_time 3.906µs 3.912µs ± 0.002µs 3.912µs ± 0.001µs 3.913µs 3.915µs 3.917µs 3.921µs 0.24% 0.832 2.293 0.05% 0.000µs 1 200
credit_card/is_card_number/37828224631 throughput 255022857.771op/s 255632491.774op/s ± 128491.820op/s 255647013.489op/s ± 81809.905op/s 255722887.634op/s 255799389.229op/s 255836336.078op/s 256030771.774op/s 0.15% -0.826 2.275 0.05% 9085.744op/s 1 200
credit_card/is_card_number/378282246310005 execution_time 68.464µs 69.185µs ± 0.329µs 69.170µs ± 0.241µs 69.429µs 69.697µs 69.954µs 70.130µs 1.39% 0.248 -0.364 0.47% 0.023µs 1 200
credit_card/is_card_number/378282246310005 throughput 14259204.808op/s 14454406.144op/s ± 68753.186op/s 14457143.973op/s ± 50291.477op/s 14502627.876op/s 14564222.926op/s 14586573.503op/s 14606228.176op/s 1.03% -0.225 -0.385 0.47% 4861.584op/s 1 200
credit_card/is_card_number/37828224631000521389798 execution_time 45.362µs 45.671µs ± 0.169µs 45.664µs ± 0.145µs 45.829µs 45.916µs 45.943µs 45.961µs 0.65% -0.080 -1.153 0.37% 0.012µs 1 200
credit_card/is_card_number/37828224631000521389798 throughput 21757626.567op/s 21895931.341op/s ± 81140.070op/s 21899236.157op/s ± 69535.092op/s 21958795.421op/s 22031624.094op/s 22041916.984op/s 22044861.293op/s 0.66% 0.089 -1.149 0.37% 5737.469op/s 1 200
credit_card/is_card_number/x371413321323331 execution_time 6.427µs 6.436µs ± 0.005µs 6.435µs ± 0.002µs 6.438µs 6.446µs 6.450µs 6.453µs 0.27% 1.117 1.890 0.07% 0.000µs 1 200
credit_card/is_card_number/x371413321323331 throughput 154969942.911op/s 155379877.321op/s ± 109837.488op/s 155395726.624op/s ± 59367.224op/s 155448045.108op/s 155528461.848op/s 155573123.343op/s 155595412.278op/s 0.13% -1.111 1.875 0.07% 7766.683op/s 1 200
credit_card/is_card_number_no_luhn/ execution_time 3.894µs 3.912µs ± 0.003µs 3.912µs ± 0.001µs 3.914µs 3.919µs 3.920µs 3.922µs 0.25% -1.076 9.324 0.08% 0.000µs 1 200
credit_card/is_card_number_no_luhn/ throughput 254986344.220op/s 255594898.793op/s ± 210993.541op/s 255619530.972op/s ± 89471.238op/s 255701706.809op/s 255799465.067op/s 255950407.778op/s 256796727.464op/s 0.46% 1.101 9.454 0.08% 14919.496op/s 1 200
credit_card/is_card_number_no_luhn/ 3782-8224-6310-005 execution_time 60.401µs 63.196µs ± 1.022µs 63.206µs ± 0.734µs 63.971µs 64.721µs 65.079µs 65.315µs 3.34% -0.299 -0.489 1.61% 0.072µs 1 200
credit_card/is_card_number_no_luhn/ 3782-8224-6310-005 throughput 15310337.656op/s 15828048.524op/s ± 257373.216op/s 15821172.654op/s ± 185932.650op/s 15999863.806op/s 16278626.712op/s 16423791.318op/s 16556000.045op/s 4.64% 0.369 -0.414 1.62% 18199.035op/s 1 200
credit_card/is_card_number_no_luhn/ 378282246310005 execution_time 53.916µs 54.321µs ± 0.125µs 54.338µs ± 0.067µs 54.406µs 54.479µs 54.516µs 54.574µs 0.43% -1.069 1.124 0.23% 0.009µs 1 200
credit_card/is_card_number_no_luhn/ 378282246310005 throughput 18323656.792op/s 18409239.866op/s ± 42546.746op/s 18403360.275op/s ± 22677.557op/s 18425663.503op/s 18497614.958op/s 18531908.968op/s 18547303.042op/s 0.78% 1.082 1.155 0.23% 3008.509op/s 1 200
credit_card/is_card_number_no_luhn/37828224631 execution_time 3.894µs 3.913µs ± 0.003µs 3.912µs ± 0.002µs 3.914µs 3.917µs 3.919µs 3.933µs 0.53% 1.367 15.541 0.09% 0.000µs 1 200
credit_card/is_card_number_no_luhn/37828224631 throughput 254252767.820op/s 255585815.687op/s ± 221605.584op/s 255612031.120op/s ± 101264.325op/s 255708112.340op/s 255820000.046op/s 255888930.589op/s 256838204.186op/s 0.48% -1.327 15.465 0.09% 15669.881op/s 1 200
credit_card/is_card_number_no_luhn/378282246310005 execution_time 50.195µs 50.592µs ± 0.138µs 50.608µs ± 0.056µs 50.660µs 50.757µs 50.946µs 51.200µs 1.17% -0.082 3.696 0.27% 0.010µs 1 200
credit_card/is_card_number_no_luhn/378282246310005 throughput 19531255.751op/s 19766181.214op/s ± 54069.737op/s 19759531.467op/s ± 21944.946op/s 19782571.644op/s 19869065.137op/s 19921265.214op/s 19922394.764op/s 0.82% 0.128 3.609 0.27% 3823.308op/s 1 200
credit_card/is_card_number_no_luhn/37828224631000521389798 execution_time 45.349µs 45.680µs ± 0.168µs 45.711µs ± 0.133µs 45.815µs 45.911µs 45.948µs 45.957µs 0.54% -0.257 -1.077 0.37% 0.012µs 1 200
credit_card/is_card_number_no_luhn/37828224631000521389798 throughput 21759608.549op/s 21891578.138op/s ± 80685.686op/s 21876771.446op/s ± 63503.915op/s 21954530.524op/s 22027207.574op/s 22034832.686op/s 22051415.079op/s 0.80% 0.266 -1.072 0.37% 5705.340op/s 1 200
credit_card/is_card_number_no_luhn/x371413321323331 execution_time 6.429µs 6.435µs ± 0.003µs 6.435µs ± 0.002µs 6.437µs 6.441µs 6.444µs 6.445µs 0.16% 0.673 0.187 0.05% 0.000µs 1 200
credit_card/is_card_number_no_luhn/x371413321323331 throughput 155156946.643op/s 155396456.154op/s ± 78315.064op/s 155406760.194op/s ± 50291.640op/s 155453199.986op/s 155507159.984op/s 155523024.629op/s 155552612.668op/s 0.09% -0.671 0.182 0.05% 5537.711op/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.913µs] or [-0.009%; +0.009%] None None None
credit_card/is_card_number/ throughput [255533179.666op/s; 255579193.185op/s] or [-0.009%; +0.009%] None None None
credit_card/is_card_number/ 3782-8224-6310-005 execution_time [80.673µs; 80.934µs] or [-0.161%; +0.161%] None None None
credit_card/is_card_number/ 3782-8224-6310-005 throughput [12357405.444op/s; 12397321.349op/s] or [-0.161%; +0.161%] None None None
credit_card/is_card_number/ 378282246310005 execution_time [72.256µs; 72.409µs] or [-0.106%; +0.106%] None None None
credit_card/is_card_number/ 378282246310005 throughput [13811326.926op/s; 13840506.726op/s] or [-0.106%; +0.106%] None None None
credit_card/is_card_number/37828224631 execution_time [3.912µs; 3.912µs] or [-0.007%; +0.007%] None None None
credit_card/is_card_number/37828224631 throughput [255614684.044op/s; 255650299.504op/s] or [-0.007%; +0.007%] None None None
credit_card/is_card_number/378282246310005 execution_time [69.139µs; 69.230µs] or [-0.066%; +0.066%] None None None
credit_card/is_card_number/378282246310005 throughput [14444877.614op/s; 14463934.675op/s] or [-0.066%; +0.066%] None None None
credit_card/is_card_number/37828224631000521389798 execution_time [45.648µs; 45.695µs] or [-0.051%; +0.051%] None None None
credit_card/is_card_number/37828224631000521389798 throughput [21884686.108op/s; 21907176.574op/s] or [-0.051%; +0.051%] None None None
credit_card/is_card_number/x371413321323331 execution_time [6.435µs; 6.436µs] or [-0.010%; +0.010%] None None None
credit_card/is_card_number/x371413321323331 throughput [155364654.901op/s; 155395099.740op/s] or [-0.010%; +0.010%] 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 [255565657.117op/s; 255624140.468op/s] or [-0.011%; +0.011%] None None None
credit_card/is_card_number_no_luhn/ 3782-8224-6310-005 execution_time [63.054µs; 63.337µs] or [-0.224%; +0.224%] None None None
credit_card/is_card_number_no_luhn/ 3782-8224-6310-005 throughput [15792379.072op/s; 15863717.977op/s] or [-0.225%; +0.225%] None None None
credit_card/is_card_number_no_luhn/ 378282246310005 execution_time [54.303µs; 54.338µs] or [-0.032%; +0.032%] None None None
credit_card/is_card_number_no_luhn/ 378282246310005 throughput [18403343.296op/s; 18415136.435op/s] or [-0.032%; +0.032%] None None None
credit_card/is_card_number_no_luhn/37828224631 execution_time [3.912µs; 3.913µs] or [-0.012%; +0.012%] None None None
credit_card/is_card_number_no_luhn/37828224631 throughput [255555103.285op/s; 255616528.090op/s] or [-0.012%; +0.012%] None None None
credit_card/is_card_number_no_luhn/378282246310005 execution_time [50.573µs; 50.611µs] or [-0.038%; +0.038%] None None None
credit_card/is_card_number_no_luhn/378282246310005 throughput [19758687.668op/s; 19773674.760op/s] or [-0.038%; +0.038%] None None None
credit_card/is_card_number_no_luhn/37828224631000521389798 execution_time [45.657µs; 45.704µs] or [-0.051%; +0.051%] None None None
credit_card/is_card_number_no_luhn/37828224631000521389798 throughput [21880395.878op/s; 21902760.398op/s] or [-0.051%; +0.051%] None None None
credit_card/is_card_number_no_luhn/x371413321323331 execution_time [6.435µs; 6.436µs] or [-0.007%; +0.007%] None None None
credit_card/is_card_number_no_luhn/x371413321323331 throughput [155385602.439op/s; 155407309.868op/s] or [-0.007%; +0.007%] None None None

Group 14

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz d10fff8 1761313889 jwiriath/add-debug-levels-in-tracerflare-cc
scenario metric min mean ± sd median ± mad p75 p95 p99 max peak_to_median_ratio skewness kurtosis cv sem runs sample_size
single_flag_killswitch/rules-based execution_time 171.882ns 176.842ns ± 3.655ns 176.212ns ± 1.974ns 178.526ns 184.789ns 188.502ns 191.187ns 8.50% 1.242 1.833 2.06% 0.258ns 1 200
scenario metric 95% CI mean Shapiro-Wilk pvalue Ljung-Box pvalue (lag=1) Dip test pvalue
single_flag_killswitch/rules-based execution_time [176.335ns; 177.348ns] or [-0.286%; +0.286%] None None None

Group 15

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz d10fff8 1761313889 jwiriath/add-debug-levels-in-tracerflare-cc
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 239.045ns 252.342ns ± 14.452ns 245.999ns ± 4.330ns 261.745ns 286.175ns 292.909ns 293.890ns 19.47% 1.415 0.929 5.71% 1.022ns 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 [250.339ns; 254.345ns] or [-0.794%; +0.794%] None None None

Group 16

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz d10fff8 1761313889 jwiriath/add-debug-levels-in-tracerflare-cc
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 33.805µs 34.390µs ± 1.039µs 33.914µs ± 0.049µs 34.000µs 36.631µs 36.658µs 37.599µs 10.87% 1.720 1.037 3.01% 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 [34.246µs; 34.534µs] or [-0.419%; +0.419%] None None None

Group 17

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz d10fff8 1761313889 jwiriath/add-debug-levels-in-tracerflare-cc
scenario metric min mean ± sd median ± mad p75 p95 p99 max peak_to_median_ratio skewness kurtosis cv sem runs sample_size
receiver_entry_point/report/2597 execution_time 6.076ms 6.350ms ± 0.114ms 6.401ms ± 0.020ms 6.417ms 6.458ms 6.481ms 6.496ms 1.48% -1.238 -0.041 1.79% 0.008ms 1 200
scenario metric 95% CI mean Shapiro-Wilk pvalue Ljung-Box pvalue (lag=1) Dip test pvalue
receiver_entry_point/report/2597 execution_time [6.334ms; 6.366ms] or [-0.249%; +0.249%] None None None

Baseline

Omitted due to size.

@dd-octo-sts
Copy link

dd-octo-sts bot commented Oct 21, 2025

Artifact Size Benchmark Report

aarch64-alpine-linux-musl
Artifact Baseline Commit Change
/aarch64-alpine-linux-musl/lib/libdatadog_profiling.a 71.35 MB 71.35 MB 0% (0 B) 👌
/aarch64-alpine-linux-musl/lib/libdatadog_profiling.so 7.25 MB 7.25 MB 0% (0 B) 👌
aarch64-unknown-linux-gnu
Artifact Baseline Commit Change
/aarch64-unknown-linux-gnu/lib/libdatadog_profiling.so 9.20 MB 9.20 MB 0% (0 B) 👌
/aarch64-unknown-linux-gnu/lib/libdatadog_profiling.a 83.70 MB 83.70 MB 0% (0 B) 👌
libdatadog-x64-windows
Artifact Baseline Commit Change
/libdatadog-x64-windows/debug/dynamic/datadog_profiling_ffi.dll 18.55 MB 18.55 MB 0% (0 B) 👌
/libdatadog-x64-windows/debug/dynamic/datadog_profiling_ffi.lib 65.77 KB 65.77 KB 0% (0 B) 👌
/libdatadog-x64-windows/debug/dynamic/datadog_profiling_ffi.pdb 129.24 MB 129.25 MB +0% (+8.00 KB) 👌
/libdatadog-x64-windows/debug/static/datadog_profiling_ffi.lib 677.95 MB 677.95 MB 0% (0 B) 👌
/libdatadog-x64-windows/release/dynamic/datadog_profiling_ffi.dll 5.93 MB 5.93 MB 0% (0 B) 👌
/libdatadog-x64-windows/release/dynamic/datadog_profiling_ffi.lib 65.77 KB 65.77 KB 0% (0 B) 👌
/libdatadog-x64-windows/release/dynamic/datadog_profiling_ffi.pdb 17.51 MB 17.51 MB 0% (0 B) 👌
/libdatadog-x64-windows/release/static/datadog_profiling_ffi.lib 32.46 MB 32.46 MB 0% (0 B) 👌
libdatadog-x86-windows
Artifact Baseline Commit Change
/libdatadog-x86-windows/debug/dynamic/datadog_profiling_ffi.dll 15.81 MB 15.81 MB 0% (0 B) 👌
/libdatadog-x86-windows/debug/dynamic/datadog_profiling_ffi.lib 66.79 KB 66.79 KB 0% (0 B) 👌
/libdatadog-x86-windows/debug/dynamic/datadog_profiling_ffi.pdb 131.42 MB 131.41 MB -0% (-8.00 KB) 👌
/libdatadog-x86-windows/debug/static/datadog_profiling_ffi.lib 666.48 MB 666.48 MB 0% (0 B) 👌
/libdatadog-x86-windows/release/dynamic/datadog_profiling_ffi.dll 4.54 MB 4.54 MB 0% (0 B) 👌
/libdatadog-x86-windows/release/dynamic/datadog_profiling_ffi.lib 66.79 KB 66.79 KB 0% (0 B) 👌
/libdatadog-x86-windows/release/dynamic/datadog_profiling_ffi.pdb 18.66 MB 18.66 MB 0% (0 B) 👌
/libdatadog-x86-windows/release/static/datadog_profiling_ffi.lib 30.52 MB 30.52 MB 0% (0 B) 👌
x86_64-alpine-linux-musl
Artifact Baseline Commit Change
/x86_64-alpine-linux-musl/lib/libdatadog_profiling.a 63.95 MB 63.95 MB 0% (0 B) 👌
/x86_64-alpine-linux-musl/lib/libdatadog_profiling.so 8.56 MB 8.56 MB 0% (0 B) 👌
x86_64-unknown-linux-gnu
Artifact Baseline Commit Change
/x86_64-unknown-linux-gnu/lib/libdatadog_profiling.a 78.42 MB 78.42 MB 0% (0 B) 👌
/x86_64-unknown-linux-gnu/lib/libdatadog_profiling.so 9.91 MB 9.91 MB 0% (0 B) 👌

@codecov-commenter
Copy link

codecov-commenter commented Oct 21, 2025

Codecov Report

❌ Patch coverage is 2.27273% with 86 lines in your changes missing coverage. Please review.
✅ Project coverage is 71.83%. Comparing base (9ded162) to head (d10fff8).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1272      +/-   ##
==========================================
+ Coverage   71.82%   71.83%   +0.01%     
==========================================
  Files         368      368              
  Lines       57967    57957      -10     
==========================================
+ Hits        41633    41635       +2     
+ Misses      16334    16322      -12     
Components Coverage Δ
datadog-crashtracker 49.05% <ø> (ø)
datadog-crashtracker-ffi 5.86% <ø> (ø)
datadog-alloc 98.73% <ø> (ø)
data-pipeline 87.86% <ø> (ø)
data-pipeline-ffi 88.19% <ø> (ø)
ddcommon 84.31% <ø> (ø)
ddcommon-ffi 73.84% <ø> (ø)
ddtelemetry 59.98% <ø> (ø)
ddtelemetry-ffi 21.24% <ø> (ø)
dogstatsd-client 83.26% <ø> (ø)
datadog-ipc 82.39% <ø> (ø)
datadog-profiling 76.90% <ø> (ø)
datadog-profiling-ffi 62.12% <ø> (ø)
datadog-sidecar 37.24% <ø> (ø)
datdog-sidecar-ffi 13.71% <ø> (ø)
spawn-worker 55.18% <ø> (ø)
tinybytes 92.22% <ø> (ø)
datadog-trace-normalization 98.24% <ø> (ø)
datadog-trace-obfuscation 94.17% <ø> (ø)
datadog-trace-protobuf 59.65% <ø> (ø)
datadog-trace-utils 90.00% <ø> (ø)
datadog-tracer-flare 62.25% <2.27%> (+1.21%) ⬆️
datadog-log 75.57% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Aaalibaba42 Aaalibaba42 force-pushed the jwiriath/add-debug-levels-in-tracerflare-cc branch 4 times, most recently from 49d542a to 512c624 Compare October 22, 2025 10:05
@Aaalibaba42 Aaalibaba42 force-pushed the jwiriath/add-debug-levels-in-tracerflare-cc branch from 512c624 to 6cdb6e4 Compare October 22, 2025 10:14
@datadog-official
Copy link

datadog-official bot commented Oct 22, 2025

✅ Tests

🎉 All green!

❄️ No new flaky tests detected
🧪 All tests passed

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: d10fff8 | Docs | Was this helpful? Give us feedback!

@Aaalibaba42 Aaalibaba42 force-pushed the jwiriath/add-debug-levels-in-tracerflare-cc branch from 0b8b3db to 67e886f Compare October 22, 2025 13:08
@Aaalibaba42 Aaalibaba42 marked this pull request as ready for review October 22, 2025 13:12
@Aaalibaba42 Aaalibaba42 requested a review from a team as a code owner October 22, 2025 13:12
Copy link
Contributor

@anais-raison anais-raison left a comment

Choose a reason for hiding this comment

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

In the end after thinking about it and writing my comments I don't know anymore if keeping the current_log_level over collecting is that much of a better choice.

} else if Ok(ReturnAction::None) != action {
// If action is Send, Unset or an error, we need to stop collecting
self.collecting.store(false, Ordering::Relaxed);
*self.current_log_level.lock_or_panic() = None;
Copy link
Contributor

Choose a reason for hiding this comment

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

If you remove the current_log_level is the case of Send, you'll fall into the "Log level is not set" every time the zip_and_send function is called. With collecting only it was not a problem but with the log level you should split this case in two.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I see what you mean, then maybe just putting getter/setters for the integration would work

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay I think the best way is indeed to just have both log_levels fields public, and have the collecting bool as before. That way we don't change anything to the ReturnAction we return, and the integrater can manage these to make it work out.

*tracer_flare.current_log_level.lock_or_panic() = Some(log_level);
} else if let ReturnAction::Send(_) = state {
tracer_flare.collecting.store(false, Ordering::Relaxed);
*tracer_flare.current_log_level.lock_or_panic() = None;
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here you should not remove the current_log_level. It should be kept until the Send is done and then you can put it back as None.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yup good point that's my bad

.current_log_level
.lock_or_panic()
.ok_or(FlareError::ZipError(String::from(
"Trying to send the flare when log_level is not set",
Copy link
Contributor

Choose a reason for hiding this comment

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

The case when you receive only an AGENT_TASK and thus only have to do a Send action is possible. In that case we still want to send the flare. So we either have the choice to use the tracer actual log_level or we do as Python and Java and putting by default the log_level which is Debug. I think putting Debug would be the best option but it's also more complicated to handle in a design way.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think it complicates anything. Maybe we can make the field public so that the integrater can set it if it is not set correctly, but it should make things automagic most of the time

@Aaalibaba42 Aaalibaba42 requested a review from a team as a code owner October 23, 2025 10:36
@Aaalibaba42 Aaalibaba42 force-pushed the jwiriath/add-debug-levels-in-tracerflare-cc branch 2 times, most recently from 60ad4cc to 476b25d Compare October 23, 2025 11:39
@Aaalibaba42 Aaalibaba42 force-pushed the jwiriath/add-debug-levels-in-tracerflare-cc branch from 476b25d to 5ddde0f Compare October 23, 2025 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants