Skip to content

Conversation

@ekump
Copy link
Contributor

@ekump ekump commented Jan 14, 2026

What does this PR do?

When we drop trace chunks due to a problem we emit telemetry, but we weren't including the reason tags. We also were not emitting chunks dropped telemetry for chunks dropped for valid sampling reasons. This PR addresses both issues. Now telemetry should have one of the following reasons tagged for trace_chunks_dropped:
p0_drop
serialization_error
send_failure

Motivation

More accurate telemetry is good

Additional Notes

breaking change: The telemetry module in libdd-data-pipeline was pub. It should be pub(crate).

How to test the change?

Existing tests have been updated.

@ekump ekump marked this pull request as ready for review January 14, 2026 21:22
@ekump ekump requested a review from a team as a code owner January 14, 2026 21:22
@codecov-commenter
Copy link

codecov-commenter commented Jan 14, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 71.32%. Comparing base (efe99d5) to head (25be86c).
⚠️ Report is 6 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1449      +/-   ##
==========================================
+ Coverage   71.30%   71.32%   +0.02%     
==========================================
  Files         413      416       +3     
  Lines       66161    66970     +809     
==========================================
+ Hits        47174    47768     +594     
- Misses      18987    19202     +215     
Components Coverage Δ
libdd-crashtracker 61.23% <ø> (+2.63%) ⬆️
libdd-crashtracker-ffi 15.08% <ø> (+0.71%) ⬆️
libdd-alloc 98.73% <ø> (ø)
libdd-data-pipeline 86.00% <100.00%> (-0.04%) ⬇️
libdd-data-pipeline-ffi 77.01% <ø> (ø)
libdd-common 80.84% <ø> (-0.27%) ⬇️
libdd-common-ffi 74.19% <ø> (ø)
libdd-telemetry 60.22% <ø> (-0.04%) ⬇️
libdd-telemetry-ffi 21.17% <ø> (ø)
libdd-dogstatsd-client 83.75% <ø> (ø)
datadog-ipc 82.61% <ø> (ø)
libdd-profiling 80.67% <ø> (-0.40%) ⬇️
libdd-profiling-ffi 62.46% <ø> (+0.03%) ⬆️
datadog-sidecar 36.37% <ø> (+0.37%) ⬆️
datdog-sidecar-ffi 13.37% <ø> (+1.91%) ⬆️
spawn-worker 55.18% <ø> (ø)
libdd-tinybytes 92.44% <ø> (ø)
libdd-trace-normalization 82.33% <ø> (ø)
libdd-trace-obfuscation 94.17% <ø> (ø)
libdd-trace-protobuf 61.18% <ø> (ø)
libdd-trace-utils 89.89% <ø> (+0.14%) ⬆️
datadog-tracer-flare 59.74% <ø> (-1.33%) ⬇️
libdd-log 75.57% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@pr-commenter
Copy link

pr-commenter bot commented Jan 15, 2026

Benchmarks

Comparison

Benchmark execution time: 2026-01-16 19:23:16

Comparing candidate commit 25be86c in PR branch ekump/APMSP-2376-add-reason-tags-to-trace-exporter-telemetry with baseline commit 51c8cb4 in branch main.

Found 4 performance improvements and 3 performance regressions! Performance is the same for 50 metrics, 2 unstable metrics.

scenario:benching serializing traces from their internal representation to msgpack

  • 🟥 execution_time [+959.473µs; +973.681µs] or [+6.916%; +7.019%]

scenario:credit_card/is_card_number/378282246310005

  • 🟥 execution_time [+3.413µs; +3.615µs] or [+4.981%; +5.276%]
  • 🟥 throughput [-734684.285op/s; -692242.192op/s] or [-5.033%; -4.743%]

scenario:credit_card/is_card_number/x371413321323331

  • 🟩 execution_time [-543.330ns; -529.299ns] or [-8.442%; -8.224%]
  • 🟩 throughput [+13935172.302op/s; +14337841.284op/s] or [+8.969%; +9.228%]

scenario:credit_card/is_card_number_no_luhn/x371413321323331

  • 🟩 execution_time [-536.511ns; -521.526ns] or [-8.336%; -8.103%]
  • 🟩 throughput [+13714941.012op/s; +14144056.067op/s] or [+8.827%; +9.103%]

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 25be86c 1768590419 ekump/APMSP-2376-add-reason-tags-to-trace-exporter-telemetry
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.172µs 3.167µs ± 1.433µs 2.998µs ± 0.023µs 3.016µs 3.338µs 13.818µs 15.122µs 404.40% 7.526 57.143 45.12% 0.101µ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.969µs; 3.366µs] or [-6.269%; +6.269%] None None None

Group 2

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz 25be86c 1768590419 ekump/APMSP-2376-add-reason-tags-to-trace-exporter-telemetry
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.924µs 5.016µs ± 0.048µs 5.026µs ± 0.032µs 5.051µs 5.085µs 5.093µs 5.094µs 1.35% -0.296 -1.204 0.96% 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.009µs; 5.022µs] or [-0.134%; +0.134%] None None None

Group 3

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz 25be86c 1768590419 ekump/APMSP-2376-add-reason-tags-to-trace-exporter-telemetry
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 9.598ms 9.921ms ± 0.113ms 9.931ms ± 0.055ms 9.985ms 10.063ms 10.130ms 10.600ms 6.73% 0.475 6.319 1.14% 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 [9.905ms; 9.937ms] or [-0.158%; +0.158%] None None None

Group 4

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz 25be86c 1768590419 ekump/APMSP-2376-add-reason-tags-to-trace-exporter-telemetry
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.549ms 10.584ms ± 0.022ms 10.580ms ± 0.013ms 10.594ms 10.623ms 10.649ms 10.660ms 0.76% 1.014 1.027 0.21% 0.002ms 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.581ms; 10.587ms] or [-0.029%; +0.029%] None None None

Group 5

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz 25be86c 1768590419 ekump/APMSP-2376-add-reason-tags-to-trace-exporter-telemetry
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 144.219µs 146.066µs ± 1.694µs 145.787µs ± 0.553µs 146.369µs 147.741µs 154.054µs 161.869µs 11.03% 5.495 41.903 1.16% 0.120µ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 [145.832µs; 146.301µs] or [-0.161%; +0.161%] None None None

Group 6

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz 25be86c 1768590419 ekump/APMSP-2376-add-reason-tags-to-trace-exporter-telemetry
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 89.422µs 89.804µs ± 0.198µs 89.809µs ± 0.047µs 89.855µs 89.934µs 90.167µs 91.786µs 2.20% 5.266 51.137 0.22% 0.014µ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 [89.777µs; 89.832µs] or [-0.031%; +0.031%] None None None

Group 7

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz 25be86c 1768590419 ekump/APMSP-2376-add-reason-tags-to-trace-exporter-telemetry
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.683ms 61.210ms ± 2.233ms 60.913ms ± 0.070ms 60.991ms 61.217ms 71.904ms 83.014ms 36.28% 8.617 75.234 3.64% 0.158ms 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.900ms; 61.519ms] or [-0.506%; +0.506%] None None None

Group 8

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz 25be86c 1768590419 ekump/APMSP-2376-add-reason-tags-to-trace-exporter-telemetry
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.905µs 34.423µs ± 0.853µs 34.060µs ± 0.082µs 34.127µs 36.246µs 36.290µs 37.581µs 10.34% 1.749 1.323 2.47% 0.060µ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.305µs; 34.541µs] or [-0.344%; +0.344%] None None None

Group 9

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz 25be86c 1768590419 ekump/APMSP-2376-add-reason-tags-to-trace-exporter-telemetry
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 243.305ns 253.105ns ± 14.063ns 247.374ns ± 2.278ns 251.974ns 290.586ns 295.819ns 297.340ns 20.20% 2.005 2.651 5.54% 0.994ns 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 [251.156ns; 255.054ns] or [-0.770%; +0.770%] None None None

Group 10

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz 25be86c 1768590419 ekump/APMSP-2376-add-reason-tags-to-trace-exporter-telemetry
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 161.351µs 162.649µs ± 0.274µs 162.610µs ± 0.136µs 162.779µs 163.053µs 163.295µs 163.859µs 0.77% -0.057 4.684 0.17% 0.019µ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 [162.611µs; 162.687µs] or [-0.023%; +0.023%] None None None

Group 11

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz 25be86c 1768590419 ekump/APMSP-2376-add-reason-tags-to-trace-exporter-telemetry
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 186.985ns 189.566ns ± 2.084ns 189.247ns ± 1.406ns 190.581ns 193.224ns 195.695ns 199.318ns 5.32% 1.323 2.460 1.10% 0.147ns 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 [189.278ns; 189.855ns] or [-0.152%; +0.152%] None None None

Group 12

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz 25be86c 1768590419 ekump/APMSP-2376-add-reason-tags-to-trace-exporter-telemetry
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.421µs 2.457µs ± 0.017µs 2.455µs ± 0.007µs 2.461µs 2.504µs 2.505µs 2.507µs 2.11% 1.339 2.295 0.69% 0.001µ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.454µs; 2.459µs] or [-0.096%; +0.096%] None None None

Group 13

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz 25be86c 1768590419 ekump/APMSP-2376-add-reason-tags-to-trace-exporter-telemetry
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.912µs ± 0.003µs 3.911µs ± 0.002µs 3.914µs 3.917µs 3.919µs 3.920µs 0.23% -0.170 3.115 0.08% 0.000µs 1 200
credit_card/is_card_number/ throughput 255081732.896op/s 255629270.397op/s ± 204730.402op/s 255658596.092op/s ± 133850.450op/s 255777935.537op/s 255866763.734op/s 255933571.645op/s 256724690.931op/s 0.42% 0.182 3.171 0.08% 14476.626op/s 1 200
credit_card/is_card_number/ 3782-8224-6310-005 execution_time 78.954µs 80.271µs ± 0.606µs 80.260µs ± 0.416µs 80.668µs 81.292µs 81.885µs 82.201µs 2.42% 0.346 0.241 0.75% 0.043µs 1 200
credit_card/is_card_number/ 3782-8224-6310-005 throughput 12165321.534op/s 12458514.053op/s ± 93863.467op/s 12459470.406op/s ± 64875.726op/s 12524899.988op/s 12615376.289op/s 12635852.930op/s 12665621.165op/s 1.65% -0.299 0.175 0.75% 6637.149op/s 1 200
credit_card/is_card_number/ 378282246310005 execution_time 74.341µs 74.912µs ± 0.146µs 74.892µs ± 0.071µs 74.975µs 75.156µs 75.272µs 75.658µs 1.02% 0.748 3.797 0.19% 0.010µs 1 200
credit_card/is_card_number/ 378282246310005 throughput 13217324.677op/s 13349103.285op/s ± 25974.517op/s 13352477.864op/s ± 12603.190op/s 13363530.258op/s 13382312.063op/s 13401873.694op/s 13451459.905op/s 0.74% -0.717 3.726 0.19% 1836.676op/s 1 200
credit_card/is_card_number/37828224631 execution_time 3.892µs 3.911µs ± 0.003µs 3.911µs ± 0.002µs 3.913µs 3.916µs 3.918µs 3.930µs 0.48% 0.085 14.726 0.08% 0.000µs 1 200
credit_card/is_card_number/37828224631 throughput 254465663.407op/s 255665452.668op/s ± 194234.606op/s 255687100.602op/s ± 102077.370op/s 255770541.539op/s 255877777.487op/s 255935082.003op/s 256939243.666op/s 0.49% -0.047 14.770 0.08% 13734.461op/s 1 200
credit_card/is_card_number/378282246310005 execution_time 71.442µs 72.032µs ± 0.164µs 72.020µs ± 0.087µs 72.121µs 72.305µs 72.382µs 72.643µs 0.86% -0.151 1.578 0.23% 0.012µs 1 200
credit_card/is_card_number/378282246310005 throughput 13766009.919op/s 13882764.957op/s ± 31619.413op/s 13884951.490op/s ± 16693.962op/s 13897486.295op/s 13935385.638op/s 13961713.311op/s 13997441.791op/s 0.81% 0.175 1.586 0.23% 2235.830op/s 1 200
credit_card/is_card_number/37828224631000521389798 execution_time 52.143µs 52.208µs ± 0.037µs 52.206µs ± 0.031µs 52.237µs 52.265µs 52.289µs 52.313µs 0.21% 0.253 -0.795 0.07% 0.003µs 1 200
credit_card/is_card_number/37828224631000521389798 throughput 19115766.375op/s 19154074.098op/s ± 13399.538op/s 19154954.255op/s ± 11349.413op/s 19165802.937op/s 19173981.865op/s 19175695.573op/s 19177954.941op/s 0.12% -0.251 -0.798 0.07% 947.490op/s 1 200
credit_card/is_card_number/x371413321323331 execution_time 5.783µs 5.900µs ± 0.051µs 5.898µs ± 0.033µs 5.930µs 5.993µs 6.003µs 6.039µs 2.39% 0.080 -0.298 0.85% 0.004µs 1 200
credit_card/is_card_number/x371413321323331 throughput 165594915.884op/s 169510715.704op/s ± 1450373.735op/s 169549254.691op/s ± 953711.861op/s 170555034.201op/s 171797524.663op/s 172553451.518op/s 172914974.478op/s 1.99% -0.037 -0.312 0.85% 102556.910op/s 1 200
credit_card/is_card_number_no_luhn/ execution_time 3.894µs 3.911µs ± 0.003µs 3.911µs ± 0.002µs 3.913µs 3.916µs 3.917µs 3.918µs 0.17% -1.189 8.983 0.07% 0.000µs 1 200
credit_card/is_card_number_no_luhn/ throughput 255245331.491op/s 255666538.724op/s ± 172740.911op/s 255691805.082op/s ± 106677.818op/s 255776541.154op/s 255884167.518op/s 255905844.267op/s 256838178.388op/s 0.45% 1.209 9.130 0.07% 12214.627op/s 1 200
credit_card/is_card_number_no_luhn/ 3782-8224-6310-005 execution_time 64.111µs 64.300µs ± 0.119µs 64.276µs ± 0.051µs 64.334µs 64.510µs 64.702µs 65.135µs 1.34% 2.774 12.851 0.19% 0.008µs 1 200
credit_card/is_card_number_no_luhn/ 3782-8224-6310-005 throughput 15352624.694op/s 15552106.215op/s ± 28703.112op/s 15557870.066op/s ± 12377.227op/s 15569587.536op/s 15581238.086op/s 15586394.966op/s 15597961.346op/s 0.26% -2.735 12.496 0.18% 2029.616op/s 1 200
credit_card/is_card_number_no_luhn/ 378282246310005 execution_time 57.385µs 57.537µs ± 0.099µs 57.520µs ± 0.058µs 57.588µs 57.723µs 57.840µs 57.986µs 0.81% 1.297 2.764 0.17% 0.007µs 1 200
credit_card/is_card_number_no_luhn/ 378282246310005 throughput 17245425.799op/s 17380157.673op/s ± 29913.786op/s 17385244.277op/s ± 17688.118op/s 17400022.629op/s 17418444.568op/s 17423254.456op/s 17426086.852op/s 0.23% -1.281 2.694 0.17% 2115.224op/s 1 200
credit_card/is_card_number_no_luhn/37828224631 execution_time 3.892µs 3.912µs ± 0.003µs 3.912µs ± 0.002µs 3.914µs 3.916µs 3.917µs 3.918µs 0.17% -1.409 9.866 0.07% 0.000µs 1 200
credit_card/is_card_number_no_luhn/37828224631 throughput 255224847.901op/s 255638882.152op/s ± 191115.874op/s 255647413.333op/s ± 132837.721op/s 255769179.169op/s 255876824.960op/s 255921651.443op/s 256966226.779op/s 0.52% 1.431 10.045 0.07% 13513.933op/s 1 200
credit_card/is_card_number_no_luhn/378282246310005 execution_time 54.567µs 54.781µs ± 0.163µs 54.737µs ± 0.079µs 54.846µs 55.096µs 55.296µs 55.446µs 1.30% 1.454 2.129 0.30% 0.012µs 1 200
credit_card/is_card_number_no_luhn/378282246310005 throughput 18035502.147op/s 18254797.795op/s ± 54074.141op/s 18269215.458op/s ± 26490.539op/s 18293266.249op/s 18314502.524op/s 18322080.400op/s 18326010.106op/s 0.31% -1.436 2.055 0.30% 3823.619op/s 1 200
credit_card/is_card_number_no_luhn/37828224631000521389798 execution_time 52.121µs 52.199µs ± 0.035µs 52.194µs ± 0.022µs 52.218µs 52.268µs 52.287µs 52.306µs 0.21% 0.669 0.102 0.07% 0.002µs 1 200
credit_card/is_card_number_no_luhn/37828224631000521389798 throughput 19118254.169op/s 19157429.412op/s ± 12900.245op/s 19159274.091op/s ± 8250.918op/s 19166754.307op/s 19174424.960op/s 19179573.929op/s 19186145.684op/s 0.14% -0.665 0.097 0.07% 912.185op/s 1 200
credit_card/is_card_number_no_luhn/x371413321323331 execution_time 5.778µs 5.907µs ± 0.054µs 5.897µs ± 0.036µs 5.937µs 6.001µs 6.023µs 6.037µs 2.37% 0.023 -0.365 0.91% 0.004µs 1 200
credit_card/is_card_number_no_luhn/x371413321323331 throughput 165655735.641op/s 169307441.734op/s ± 1544736.062op/s 169575532.446op/s ± 1021269.037op/s 170442069.379op/s 171744821.887op/s 172828881.274op/s 173071382.478op/s 2.06% 0.021 -0.357 0.91% 109229.334op/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.911µs; 3.912µs] or [-0.011%; +0.011%] None None None
credit_card/is_card_number/ throughput [255600896.733op/s; 255657644.062op/s] or [-0.011%; +0.011%] None None None
credit_card/is_card_number/ 3782-8224-6310-005 execution_time [80.187µs; 80.355µs] or [-0.105%; +0.105%] None None None
credit_card/is_card_number/ 3782-8224-6310-005 throughput [12445505.479op/s; 12471522.627op/s] or [-0.104%; +0.104%] None None None
credit_card/is_card_number/ 378282246310005 execution_time [74.891µs; 74.932µs] or [-0.027%; +0.027%] None None None
credit_card/is_card_number/ 378282246310005 throughput [13345503.467op/s; 13352703.103op/s] or [-0.027%; +0.027%] None None None
credit_card/is_card_number/37828224631 execution_time [3.911µs; 3.912µs] or [-0.011%; +0.011%] None None None
credit_card/is_card_number/37828224631 throughput [255638533.619op/s; 255692371.716op/s] or [-0.011%; +0.011%] None None None
credit_card/is_card_number/378282246310005 execution_time [72.009µs; 72.055µs] or [-0.032%; +0.032%] None None None
credit_card/is_card_number/378282246310005 throughput [13878382.811op/s; 13887147.103op/s] or [-0.032%; +0.032%] None None None
credit_card/is_card_number/37828224631000521389798 execution_time [52.203µs; 52.213µs] or [-0.010%; +0.010%] None None None
credit_card/is_card_number/37828224631000521389798 throughput [19152217.051op/s; 19155931.145op/s] or [-0.010%; +0.010%] None None None
credit_card/is_card_number/x371413321323331 execution_time [5.893µs; 5.907µs] or [-0.119%; +0.119%] None None None
credit_card/is_card_number/x371413321323331 throughput [169309707.853op/s; 169711723.554op/s] or [-0.119%; +0.119%] None None None
credit_card/is_card_number_no_luhn/ execution_time [3.911µs; 3.912µs] or [-0.009%; +0.009%] None None None
credit_card/is_card_number_no_luhn/ throughput [255642598.495op/s; 255690478.953op/s] or [-0.009%; +0.009%] None None None
credit_card/is_card_number_no_luhn/ 3782-8224-6310-005 execution_time [64.284µs; 64.317µs] or [-0.026%; +0.026%] None None None
credit_card/is_card_number_no_luhn/ 3782-8224-6310-005 throughput [15548128.240op/s; 15556084.191op/s] or [-0.026%; +0.026%] None None None
credit_card/is_card_number_no_luhn/ 378282246310005 execution_time [57.523µs; 57.551µs] or [-0.024%; +0.024%] None None None
credit_card/is_card_number_no_luhn/ 378282246310005 throughput [17376011.909op/s; 17384303.436op/s] or [-0.024%; +0.024%] None None None
credit_card/is_card_number_no_luhn/37828224631 execution_time [3.911µs; 3.912µs] or [-0.010%; +0.010%] None None None
credit_card/is_card_number_no_luhn/37828224631 throughput [255612395.330op/s; 255665368.974op/s] or [-0.010%; +0.010%] None None None
credit_card/is_card_number_no_luhn/378282246310005 execution_time [54.758µs; 54.803µs] or [-0.041%; +0.041%] None None None
credit_card/is_card_number_no_luhn/378282246310005 throughput [18247303.639op/s; 18262291.951op/s] or [-0.041%; +0.041%] None None None
credit_card/is_card_number_no_luhn/37828224631000521389798 execution_time [52.194µs; 52.204µs] or [-0.009%; +0.009%] None None None
credit_card/is_card_number_no_luhn/37828224631000521389798 throughput [19155641.562op/s; 19159217.262op/s] or [-0.009%; +0.009%] None None None
credit_card/is_card_number_no_luhn/x371413321323331 execution_time [5.899µs; 5.914µs] or [-0.126%; +0.126%] None None None
credit_card/is_card_number_no_luhn/x371413321323331 throughput [169093356.172op/s; 169521527.295op/s] or [-0.126%; +0.126%] None None None

Group 14

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz 25be86c 1768590419 ekump/APMSP-2376-add-reason-tags-to-trace-exporter-telemetry
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.758ms 14.840ms ± 0.038ms 14.833ms ± 0.016ms 14.851ms 14.896ms 15.003ms 15.057ms 1.51% 2.498 9.474 0.26% 0.003ms 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.834ms; 14.845ms] or [-0.035%; +0.035%] None None None

Group 15

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz 25be86c 1768590419 ekump/APMSP-2376-add-reason-tags-to-trace-exporter-telemetry
scenario metric min mean ± sd median ± mad p75 p95 p99 max peak_to_median_ratio skewness kurtosis cv sem runs sample_size
profile_add_sample2_frames_x1000 execution_time 524.729µs 525.280µs ± 0.281µs 525.241µs ± 0.173µs 525.443µs 525.779µs 526.109µs 526.330µs 0.21% 0.836 0.726 0.05% 0.020µs 1 200
scenario metric 95% CI mean Shapiro-Wilk pvalue Ljung-Box pvalue (lag=1) Dip test pvalue
profile_add_sample2_frames_x1000 execution_time [525.241µs; 525.319µs] or [-0.007%; +0.007%] None None None

Group 16

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz 25be86c 1768590419 ekump/APMSP-2376-add-reason-tags-to-trace-exporter-telemetry
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 186.585µs 187.075µs ± 0.422µs 186.977µs ± 0.160µs 187.139µs 188.140µs 188.478µs 189.390µs 1.29% 2.351 6.476 0.22% 0.030µs 1 200
normalization/normalize_name/normalize_name/Too-Long-.Too-Long-.Too-Long-.Too-Long-.Too-Long-.Too-Lo... throughput 5280096.584op/s 5345486.790op/s ± 11990.014op/s 5348251.032op/s ± 4591.270op/s 5352757.957op/s 5356489.617op/s 5358568.928op/s 5359485.479op/s 0.21% -2.331 6.348 0.22% 847.822op/s 1 200
normalization/normalize_name/normalize_name/bad-name execution_time 17.722µs 17.854µs ± 0.044µs 17.850µs ± 0.030µs 17.885µs 17.926µs 17.949µs 17.990µs 0.78% 0.128 0.001 0.24% 0.003µs 1 200
normalization/normalize_name/normalize_name/bad-name throughput 55586514.805op/s 56009118.708op/s ± 136804.673op/s 56021986.988op/s ± 93682.514op/s 56105055.065op/s 56189083.571op/s 56321188.232op/s 56428538.235op/s 0.73% -0.114 0.002 0.24% 9673.551op/s 1 200
normalization/normalize_name/normalize_name/good execution_time 9.971µs 10.127µs ± 0.073µs 10.115µs ± 0.063µs 10.193µs 10.239µs 10.255µs 10.286µs 1.69% 0.085 -1.206 0.72% 0.005µs 1 200
normalization/normalize_name/normalize_name/good throughput 97219664.887op/s 98749348.368op/s ± 712691.267op/s 98864222.352op/s ± 613108.461op/s 99357768.962op/s 99817511.695op/s 100055605.322op/s 100291376.841op/s 1.44% -0.068 -1.205 0.72% 50394.883op/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 [187.016µs; 187.133µs] or [-0.031%; +0.031%] None None None
normalization/normalize_name/normalize_name/Too-Long-.Too-Long-.Too-Long-.Too-Long-.Too-Long-.Too-Lo... throughput [5343825.090op/s; 5347148.491op/s] or [-0.031%; +0.031%] None None None
normalization/normalize_name/normalize_name/bad-name execution_time [17.848µs; 17.860µs] or [-0.034%; +0.034%] None None None
normalization/normalize_name/normalize_name/bad-name throughput [55990158.896op/s; 56028078.520op/s] or [-0.034%; +0.034%] None None None
normalization/normalize_name/normalize_name/good execution_time [10.117µs; 10.137µs] or [-0.100%; +0.100%] None None None
normalization/normalize_name/normalize_name/good throughput [98650576.213op/s; 98848120.523op/s] or [-0.100%; +0.100%] None None None

Group 17

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz 25be86c 1768590419 ekump/APMSP-2376-add-reason-tags-to-trace-exporter-telemetry
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 495.224µs 496.240µs ± 0.427µs 496.221µs ± 0.302µs 496.515µs 497.032µs 497.251µs 497.293µs 0.22% 0.283 -0.411 0.09% 0.030µs 1 200
normalization/normalize_service/normalize_service/A0000000000000000000000000000000000000000000000000... throughput 2010885.145op/s 2015155.567op/s ± 1733.603op/s 2015230.778op/s ± 1225.908op/s 2016546.775op/s 2017722.328op/s 2018163.514op/s 2019287.109op/s 0.20% -0.279 -0.414 0.09% 122.584op/s 1 200
normalization/normalize_service/normalize_service/Data🐨dog🐶 繋がっ⛰てて execution_time 371.088µs 371.977µs ± 0.385µs 371.943µs ± 0.165µs 372.112µs 372.460µs 372.848µs 375.023µs 0.83% 3.252 22.388 0.10% 0.027µs 1 200
normalization/normalize_service/normalize_service/Data🐨dog🐶 繋がっ⛰てて throughput 2666503.739op/s 2688343.287op/s ± 2771.148op/s 2688585.418op/s ± 1193.860op/s 2689747.193op/s 2691911.160op/s 2693045.933op/s 2694775.124op/s 0.23% -3.209 21.994 0.10% 195.950op/s 1 200
normalization/normalize_service/normalize_service/Test Conversion 0f Weird !@#$%^&**() Characters execution_time 169.447µs 169.984µs ± 0.187µs 169.995µs ± 0.109µs 170.093µs 170.299µs 170.407µs 170.645µs 0.38% 0.053 0.571 0.11% 0.013µs 1 200
normalization/normalize_service/normalize_service/Test Conversion 0f Weird !@#$%^&**() Characters throughput 5860120.558op/s 5882900.724op/s ± 6460.285op/s 5882517.105op/s ± 3781.508op/s 5886774.666op/s 5893416.926op/s 5897322.996op/s 5901553.577op/s 0.32% -0.044 0.564 0.11% 456.811op/s 1 200
normalization/normalize_service/normalize_service/[empty string] execution_time 37.248µs 37.372µs ± 0.056µs 37.369µs ± 0.039µs 37.408µs 37.468µs 37.523µs 37.541µs 0.46% 0.380 -0.153 0.15% 0.004µs 1 200
normalization/normalize_service/normalize_service/[empty string] throughput 26637384.799op/s 26758389.107op/s ± 40319.908op/s 26760073.318op/s ± 27743.889op/s 26787753.776op/s 26819398.524op/s 26837676.080op/s 26846892.335op/s 0.32% -0.373 -0.162 0.15% 2851.048op/s 1 200
normalization/normalize_service/normalize_service/test_ASCII execution_time 46.157µs 46.302µs ± 0.068µs 46.295µs ± 0.044µs 46.338µs 46.414µs 46.505µs 46.681µs 0.83% 1.356 4.596 0.15% 0.005µs 1 200
normalization/normalize_service/normalize_service/test_ASCII throughput 21421804.310op/s 21597409.663op/s ± 31586.463op/s 21600439.259op/s ± 20307.731op/s 21620812.334op/s 21637611.194op/s 21651084.368op/s 21665166.024op/s 0.30% -1.335 4.477 0.15% 2233.500op/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.181µs; 496.299µs] or [-0.012%; +0.012%] None None None
normalization/normalize_service/normalize_service/A0000000000000000000000000000000000000000000000000... throughput [2014915.307op/s; 2015395.828op/s] or [-0.012%; +0.012%] None None None
normalization/normalize_service/normalize_service/Data🐨dog🐶 繋がっ⛰てて execution_time [371.923µs; 372.030µs] or [-0.014%; +0.014%] None None None
normalization/normalize_service/normalize_service/Data🐨dog🐶 繋がっ⛰てて throughput [2687959.232op/s; 2688727.341op/s] or [-0.014%; +0.014%] None None None
normalization/normalize_service/normalize_service/Test Conversion 0f Weird !@#$%^&**() Characters execution_time [169.959µs; 170.010µs] or [-0.015%; +0.015%] None None None
normalization/normalize_service/normalize_service/Test Conversion 0f Weird !@#$%^&**() Characters throughput [5882005.390op/s; 5883796.057op/s] or [-0.015%; +0.015%] None None None
normalization/normalize_service/normalize_service/[empty string] execution_time [37.364µs; 37.379µs] or [-0.021%; +0.021%] None None None
normalization/normalize_service/normalize_service/[empty string] throughput [26752801.155op/s; 26763977.058op/s] or [-0.021%; +0.021%] None None None
normalization/normalize_service/normalize_service/test_ASCII execution_time [46.293µs; 46.311µs] or [-0.020%; +0.020%] None None None
normalization/normalize_service/normalize_service/test_ASCII throughput [21593032.083op/s; 21601787.243op/s] or [-0.020%; +0.020%] None None None

Group 18

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz 25be86c 1768590419 ekump/APMSP-2376-add-reason-tags-to-trace-exporter-telemetry
scenario metric min mean ± sd median ± mad p75 p95 p99 max peak_to_median_ratio skewness kurtosis cv sem runs sample_size
profile_add_sample_frames_x1000 execution_time 3.939ms 3.945ms ± 0.006ms 3.945ms ± 0.002ms 3.947ms 3.949ms 3.953ms 4.027ms 2.07% 10.613 133.393 0.16% 0.000ms 1 200
scenario metric 95% CI mean Shapiro-Wilk pvalue Ljung-Box pvalue (lag=1) Dip test pvalue
profile_add_sample_frames_x1000 execution_time [3.944ms; 3.946ms] or [-0.022%; +0.022%] None None None

Group 19

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz 25be86c 1768590419 ekump/APMSP-2376-add-reason-tags-to-trace-exporter-telemetry
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.377µs 24.812µs ± 9.598µs 17.639µs ± 0.167µs 33.700µs 42.961µs 43.985µs 67.107µs 280.44% 0.988 0.435 38.59% 0.679µ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.482µs; 26.142µs] or [-5.361%; +5.361%] None None None

Baseline

Omitted due to size.

Copy link
Contributor

@bantonsson bantonsson left a comment

Choose a reason for hiding this comment

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

The change looks good, but there are new lines missing test coverage. Also, how do we deal with semver? This is a breaking change API wise.

if data.chunks_dropped > 0 {
let key = self.metrics.get(metrics::MetricKind::ChunksDropped);
if data.chunks_dropped_p0 > 0 {
let key = self.metrics.get(metrics::MetricKind::ChunksDroppedP0);
Copy link
Contributor

Choose a reason for hiding this comment

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

These lines seem to miss coverage

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, added some more tests.

@ekump ekump changed the title feat(data-pipeline): include reason for chunks dropped telemetry feat!(data-pipeline): include reason for chunks dropped telemetry Jan 16, 2026
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.

4 participants