Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collect agent info from sidecar #701

Merged
merged 2 commits into from
Nov 6, 2024
Merged

Collect agent info from sidecar #701

merged 2 commits into from
Nov 6, 2024

Conversation

bwoebi
Copy link
Contributor

@bwoebi bwoebi commented Oct 31, 2024

The tracer needs to know about the env default (to properly apply it).
This PR provides the ability to store the agent info in shared memory (polling every 60 sec).

@codecov-commenter
Copy link

codecov-commenter commented Oct 31, 2024

Codecov Report

Attention: Patch coverage is 75.29412% with 42 lines in your changes missing coverage. Please review.

Project coverage is 70.60%. Comparing base (aed5ac8) to head (da154f2).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #701      +/-   ##
==========================================
- Coverage   70.64%   70.60%   -0.04%     
==========================================
  Files         280      281       +1     
  Lines       41805    41980     +175     
==========================================
+ Hits        29532    29642     +110     
- Misses      12273    12338      +65     
Components Coverage Δ
crashtracker 19.15% <ø> (-0.05%) ⬇️
crashtracker-ffi 9.20% <ø> (ø)
datadog-alloc 98.73% <ø> (ø)
data-pipeline 91.93% <100.00%> (-0.26%) ⬇️
data-pipeline-ffi 0.00% <ø> (ø)
ddcommon 82.76% <ø> (ø)
ddcommon-ffi 69.12% <ø> (ø)
ddtelemetry 59.10% <ø> (ø)
ddtelemetry-ffi 22.13% <ø> (ø)
dogstatsd 89.45% <ø> (ø)
dogstatsd-client 79.77% <ø> (ø)
ipc 82.75% <ø> (ø)
profiling 84.30% <ø> (ø)
profiling-ffi 77.46% <ø> (ø)
serverless 0.00% <ø> (ø)
sidecar 37.42% <74.85%> (+1.28%) ⬆️
sidecar-ffi 0.00% <0.00%> (ø)
spawn-worker 50.36% <ø> (ø)
tinybytes 94.77% <ø> (ø)
trace-mini-agent 72.45% <ø> (ø)
trace-normalization 98.25% <ø> (ø)
trace-obfuscation 95.77% <ø> (ø)
trace-protobuf 77.67% <ø> (ø)
trace-utils 93.55% <ø> (ø)

@pr-commenter
Copy link

pr-commenter bot commented Oct 31, 2024

Benchmarks

Comparison

Benchmark execution time: 2024-11-05 12:07:19

Comparing candidate commit da154f2 in PR branch bob/agent-info with baseline commit aed5ac8 in branch main.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 51 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 da154f2 1730807809 bob/agent-info
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 1.145µs 1.211µs ± 0.025µs 1.215µs ± 0.014µs 1.230µs 1.238µs 1.241µs 1.242µs 2.19% -1.249 0.825 2.07% 0.002µs 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 [1.207µs; 1.214µs] or [-0.288%; +0.288%] None None None

Group 2

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz da154f2 1730807809 bob/agent-info
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 36.541µs 37.185µs ± 1.100µs 36.695µs ± 0.055µs 36.766µs 39.546µs 39.600µs 40.250µs 9.69% 1.702 0.950 2.95% 0.078µ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 [37.033µs; 37.338µs] or [-0.410%; +0.410%] None None None

Group 3

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz da154f2 1730807809 bob/agent-info
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 73.991µs 74.258µs ± 0.165µs 74.248µs ± 0.128µs 74.379µs 74.463µs 74.497µs 75.544µs 1.75% 2.387 16.579 0.22% 0.012µ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 [74.236µs; 74.281µs] or [-0.031%; +0.031%] None None None

Group 4

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz da154f2 1730807809 bob/agent-info
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 4.606µs 4.618µs ± 0.003µs 4.618µs ± 0.002µs 4.620µs 4.622µs 4.623µs 4.625µs 0.16% -0.181 0.340 0.06% 0.000µs 1 200
credit_card/is_card_number/ throughput 216223921.733op/s 216562369.335op/s ± 134068.808op/s 216560466.897op/s ± 92150.988op/s 216652955.405op/s 216767939.913op/s 216809276.455op/s 217105399.660op/s 0.25% 0.185 0.350 0.06% 9480.096op/s 1 200
credit_card/is_card_number/ 3782-8224-6310-005 execution_time 90.187µs 91.531µs ± 0.806µs 91.410µs ± 0.484µs 92.006µs 93.045µs 93.812µs 95.958µs 4.98% 1.382 3.978 0.88% 0.057µs 1 200
credit_card/is_card_number/ 3782-8224-6310-005 throughput 10421206.207op/s 10926059.221op/s ± 95090.039op/s 10939692.815op/s ± 58280.258op/s 10995359.960op/s 11044971.416op/s 11068420.558op/s 11088063.619op/s 1.36% -1.280 3.379 0.87% 6723.881op/s 1 200
credit_card/is_card_number/ 378282246310005 execution_time 84.961µs 86.142µs ± 0.459µs 86.187µs ± 0.086µs 86.239µs 86.725µs 87.105µs 90.054µs 4.49% 2.821 25.427 0.53% 0.032µs 1 200
credit_card/is_card_number/ 378282246310005 throughput 11104461.089op/s 11609005.415op/s ± 61024.767op/s 11602614.615op/s ± 11633.589op/s 11629947.567op/s 11708082.212op/s 11759926.688op/s 11770096.812op/s 1.44% -2.522 22.589 0.52% 4315.103op/s 1 200
credit_card/is_card_number/37828224631 execution_time 4.604µs 4.617µs ± 0.003µs 4.617µs ± 0.002µs 4.619µs 4.621µs 4.623µs 4.623µs 0.14% -0.137 0.323 0.06% 0.000µs 1 200
credit_card/is_card_number/37828224631 throughput 216308351.450op/s 216611198.972op/s ± 137057.869op/s 216611177.137op/s ± 100782.998op/s 216714175.864op/s 216820814.655op/s 216836757.551op/s 217179892.030op/s 0.26% 0.142 0.335 0.06% 9691.455op/s 1 200
credit_card/is_card_number/378282246310005 execution_time 82.117µs 83.373µs ± 0.447µs 83.371µs ± 0.336µs 83.693µs 84.080µs 84.381µs 84.616µs 1.49% 0.003 -0.205 0.54% 0.032µs 1 200
credit_card/is_card_number/378282246310005 throughput 11818113.183op/s 11994570.994op/s ± 64376.058op/s 11994543.981op/s ± 48083.475op/s 12044584.076op/s 12093785.616op/s 12141176.963op/s 12177694.911op/s 1.53% 0.026 -0.201 0.54% 4552.075op/s 1 200
credit_card/is_card_number/37828224631000521389798 execution_time 58.060µs 58.633µs ± 0.321µs 58.790µs ± 0.154µs 58.884µs 58.979µs 59.066µs 59.083µs 0.50% -0.657 -1.040 0.55% 0.023µs 1 200
credit_card/is_card_number/37828224631000521389798 throughput 16925273.630op/s 17055894.850op/s ± 93673.792op/s 17009740.562op/s ± 44328.027op/s 17126191.536op/s 17221880.800op/s 17222912.174op/s 17223646.838op/s 1.26% 0.665 -1.029 0.55% 6623.737op/s 1 200
credit_card/is_card_number/x371413321323331 execution_time 6.536µs 6.545µs ± 0.005µs 6.544µs ± 0.002µs 6.546µs 6.549µs 6.551µs 6.607µs 0.95% 9.592 116.204 0.08% 0.000µs 1 200
credit_card/is_card_number/x371413321323331 throughput 151364812.661op/s 152792754.693op/s ± 115493.357op/s 152801320.907op/s ± 39366.799op/s 152841538.112op/s 152863827.833op/s 152888646.350op/s 153005374.802op/s 0.13% -9.533 115.218 0.08% 8166.614op/s 1 200
credit_card/is_card_number_no_luhn/ execution_time 4.605µs 4.617µs ± 0.003µs 4.616µs ± 0.002µs 4.618µs 4.621µs 4.624µs 4.629µs 0.28% 0.452 1.694 0.06% 0.000µs 1 200
credit_card/is_card_number_no_luhn/ throughput 216014155.058op/s 216612965.425op/s ± 139571.309op/s 216615606.573op/s ± 89106.755op/s 216708191.570op/s 216819232.163op/s 216841438.090op/s 217132963.128op/s 0.24% -0.445 1.685 0.06% 9869.182op/s 1 200
credit_card/is_card_number_no_luhn/ 3782-8224-6310-005 execution_time 67.272µs 68.613µs ± 0.636µs 68.605µs ± 0.402µs 68.995µs 69.673µs 70.007µs 70.478µs 2.73% 0.115 -0.093 0.92% 0.045µs 1 200
credit_card/is_card_number_no_luhn/ 3782-8224-6310-005 throughput 14188856.597op/s 14575765.523op/s ± 135026.253op/s 14576221.241op/s ± 85375.459op/s 14665064.123op/s 14802147.179op/s 14864617.558op/s 14865063.405op/s 1.98% -0.063 -0.125 0.92% 9547.798op/s 1 200
credit_card/is_card_number_no_luhn/ 378282246310005 execution_time 62.636µs 63.415µs ± 0.450µs 63.413µs ± 0.326µs 63.751µs 64.216µs 64.413µs 64.527µs 1.76% 0.213 -0.697 0.71% 0.032µs 1 200
credit_card/is_card_number_no_luhn/ 378282246310005 throughput 15497310.674op/s 15769911.352op/s ± 111776.377op/s 15769537.361op/s ± 80609.034op/s 15846468.117op/s 15947484.716op/s 15951705.891op/s 15965227.125op/s 1.24% -0.186 -0.719 0.71% 7903.783op/s 1 200
credit_card/is_card_number_no_luhn/37828224631 execution_time 4.613µs 4.618µs ± 0.003µs 4.618µs ± 0.002µs 4.620µs 4.623µs 4.624µs 4.644µs 0.55% 2.664 19.584 0.07% 0.000µs 1 200
credit_card/is_card_number_no_luhn/37828224631 throughput 215346853.590op/s 216532078.145op/s ± 147338.135op/s 216538503.083op/s ± 86915.973op/s 216628307.905op/s 216739786.338op/s 216767591.698op/s 216784505.292op/s 0.11% -2.634 19.285 0.07% 10418.379op/s 1 200
credit_card/is_card_number_no_luhn/378282246310005 execution_time 60.145µs 60.348µs ± 0.194µs 60.306µs ± 0.139µs 60.466µs 60.743µs 60.869µs 60.908µs 1.00% 0.882 -0.044 0.32% 0.014µs 1 200
credit_card/is_card_number_no_luhn/378282246310005 throughput 16418103.828op/s 16570775.796op/s ± 53064.079op/s 16582080.575op/s ± 38173.965op/s 16617194.643op/s 16624265.276op/s 16625948.633op/s 16626565.927op/s 0.27% -0.871 -0.075 0.32% 3752.197op/s 1 200
credit_card/is_card_number_no_luhn/37828224631000521389798 execution_time 58.058µs 58.468µs ± 0.342µs 58.446µs ± 0.359µs 58.865µs 58.901µs 59.070µs 59.093µs 1.11% 0.120 -1.609 0.58% 0.024µs 1 200
credit_card/is_card_number_no_luhn/37828224631000521389798 throughput 16922536.742op/s 17104054.197op/s ± 99894.717op/s 17109845.116op/s ± 105802.720op/s 17212421.218op/s 17222016.523op/s 17223726.727op/s 17224014.628op/s 0.67% -0.114 -1.613 0.58% 7063.623op/s 1 200
credit_card/is_card_number_no_luhn/x371413321323331 execution_time 6.541µs 6.544µs ± 0.003µs 6.545µs ± 0.001µs 6.545µs 6.547µs 6.552µs 6.578µs 0.50% 6.529 66.183 0.05% 0.000µs 1 200
credit_card/is_card_number_no_luhn/x371413321323331 throughput 152033197.925op/s 152801935.723op/s ± 71508.047op/s 152799916.055op/s ± 30387.311op/s 152844360.832op/s 152871949.526op/s 152877264.706op/s 152884008.333op/s 0.06% -6.493 65.662 0.05% 5056.383op/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 [4.617µs; 4.618µs] or [-0.009%; +0.009%] None None None
credit_card/is_card_number/ throughput [216543788.688op/s; 216580949.982op/s] or [-0.009%; +0.009%] None None None
credit_card/is_card_number/ 3782-8224-6310-005 execution_time [91.420µs; 91.643µs] or [-0.122%; +0.122%] None None None
credit_card/is_card_number/ 3782-8224-6310-005 throughput [10912880.656op/s; 10939237.786op/s] or [-0.121%; +0.121%] None None None
credit_card/is_card_number/ 378282246310005 execution_time [86.079µs; 86.206µs] or [-0.074%; +0.074%] None None None
credit_card/is_card_number/ 378282246310005 throughput [11600547.969op/s; 11617462.860op/s] or [-0.073%; +0.073%] None None None
credit_card/is_card_number/37828224631 execution_time [4.616µs; 4.617µs] or [-0.009%; +0.009%] None None None
credit_card/is_card_number/37828224631 throughput [216592204.069op/s; 216630193.874op/s] or [-0.009%; +0.009%] None None None
credit_card/is_card_number/378282246310005 execution_time [83.311µs; 83.435µs] or [-0.074%; +0.074%] None None None
credit_card/is_card_number/378282246310005 throughput [11985649.092op/s; 12003492.897op/s] or [-0.074%; +0.074%] None None None
credit_card/is_card_number/37828224631000521389798 execution_time [58.588µs; 58.677µs] or [-0.076%; +0.076%] None None None
credit_card/is_card_number/37828224631000521389798 throughput [17042912.563op/s; 17068877.137op/s] or [-0.076%; +0.076%] None None None
credit_card/is_card_number/x371413321323331 execution_time [6.544µs; 6.546µs] or [-0.011%; +0.011%] None None None
credit_card/is_card_number/x371413321323331 throughput [152776748.425op/s; 152808760.962op/s] or [-0.010%; +0.010%] None None None
credit_card/is_card_number_no_luhn/ execution_time [4.616µs; 4.617µs] or [-0.009%; +0.009%] None None None
credit_card/is_card_number_no_luhn/ throughput [216593622.184op/s; 216632308.666op/s] or [-0.009%; +0.009%] None None None
credit_card/is_card_number_no_luhn/ 3782-8224-6310-005 execution_time [68.525µs; 68.701µs] or [-0.128%; +0.128%] None None None
credit_card/is_card_number_no_luhn/ 3782-8224-6310-005 throughput [14557052.183op/s; 14594478.863op/s] or [-0.128%; +0.128%] None None None
credit_card/is_card_number_no_luhn/ 378282246310005 execution_time [63.353µs; 63.477µs] or [-0.098%; +0.098%] None None None
credit_card/is_card_number_no_luhn/ 378282246310005 throughput [15754420.221op/s; 15785402.483op/s] or [-0.098%; +0.098%] None None None
credit_card/is_card_number_no_luhn/37828224631 execution_time [4.618µs; 4.619µs] or [-0.009%; +0.009%] None None None
credit_card/is_card_number_no_luhn/37828224631 throughput [216511658.496op/s; 216552497.793op/s] or [-0.009%; +0.009%] None None None
credit_card/is_card_number_no_luhn/378282246310005 execution_time [60.321µs; 60.375µs] or [-0.045%; +0.045%] None None None
credit_card/is_card_number_no_luhn/378282246310005 throughput [16563421.625op/s; 16578129.967op/s] or [-0.044%; +0.044%] None None None
credit_card/is_card_number_no_luhn/37828224631000521389798 execution_time [58.420µs; 58.515µs] or [-0.081%; +0.081%] None None None
credit_card/is_card_number_no_luhn/37828224631000521389798 throughput [17090209.750op/s; 17117898.644op/s] or [-0.081%; +0.081%] None None None
credit_card/is_card_number_no_luhn/x371413321323331 execution_time [6.544µs; 6.545µs] or [-0.007%; +0.007%] None None None
credit_card/is_card_number_no_luhn/x371413321323331 throughput [152792025.395op/s; 152811846.051op/s] or [-0.006%; +0.006%] None None None

Group 5

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz da154f2 1730807809 bob/agent-info
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.357µs 3.271µs ± 1.407µs 3.122µs ± 0.021µs 3.142µs 3.180µs 14.034µs 15.014µs 380.93% 7.543 57.229 42.90% 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 [3.076µs; 3.466µs] or [-5.960%; +5.960%] None None None

Group 6

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz da154f2 1730807809 bob/agent-info
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 507.401µs 507.919µs ± 0.262µs 507.885µs ± 0.156µs 508.061µs 508.417µs 508.647µs 508.681µs 0.16% 0.650 0.367 0.05% 0.019µs 1 200
normalization/normalize_service/normalize_service/A0000000000000000000000000000000000000000000000000... throughput 1965868.817op/s 1968819.527op/s ± 1014.703op/s 1968951.374op/s ± 605.160op/s 1969479.269op/s 1970293.331op/s 1970598.819op/s 1970828.492op/s 0.10% -0.647 0.362 0.05% 71.750op/s 1 200
normalization/normalize_service/normalize_service/Data🐨dog🐶 繋がっ⛰てて execution_time 468.373µs 469.861µs ± 0.590µs 469.825µs ± 0.404µs 470.262µs 470.776µs 471.189µs 471.760µs 0.41% 0.132 -0.137 0.13% 0.042µs 1 200
normalization/normalize_service/normalize_service/Data🐨dog🐶 繋がっ⛰てて throughput 2119723.548op/s 2128291.915op/s ± 2673.872op/s 2128451.129op/s ± 1829.788op/s 2130156.545op/s 2132537.773op/s 2133828.496op/s 2135050.963op/s 0.31% -0.125 -0.142 0.13% 189.071op/s 1 200
normalization/normalize_service/normalize_service/Test Conversion 0f Weird !@#$%^&**() Characters execution_time 184.735µs 185.129µs ± 0.142µs 185.146µs ± 0.096µs 185.213µs 185.348µs 185.444µs 185.634µs 0.26% 0.009 0.448 0.08% 0.010µs 1 200
normalization/normalize_service/normalize_service/Test Conversion 0f Weird !@#$%^&**() Characters throughput 5386950.731op/s 5401641.485op/s ± 4144.121op/s 5401144.340op/s ± 2799.822op/s 5404203.335op/s 5408346.998op/s 5410907.298op/s 5413145.472op/s 0.22% -0.003 0.443 0.08% 293.034op/s 1 200
normalization/normalize_service/normalize_service/[empty string] execution_time 46.126µs 46.468µs ± 0.125µs 46.458µs ± 0.088µs 46.549µs 46.693µs 46.752µs 46.764µs 0.66% 0.045 -0.238 0.27% 0.009µs 1 200
normalization/normalize_service/normalize_service/[empty string] throughput 21383954.587op/s 21520531.121op/s ± 57891.198op/s 21524602.660op/s ± 40481.040op/s 21557950.128op/s 21615994.191op/s 21653211.044op/s 21679648.177op/s 0.72% -0.031 -0.235 0.27% 4093.526op/s 1 200
normalization/normalize_service/normalize_service/test_ASCII execution_time 50.188µs 51.093µs ± 0.435µs 51.049µs ± 0.343µs 51.472µs 51.785µs 51.934µs 51.970µs 1.80% 0.140 -0.972 0.85% 0.031µs 1 200
normalization/normalize_service/normalize_service/test_ASCII throughput 19241940.004op/s 19573659.730op/s ± 166371.715op/s 19588929.796op/s ± 132533.537op/s 19711073.952op/s 19825908.278op/s 19869168.445op/s 19925184.449op/s 1.72% -0.114 -0.974 0.85% 11764.257op/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 [507.882µs; 507.955µs] or [-0.007%; +0.007%] None None None
normalization/normalize_service/normalize_service/A0000000000000000000000000000000000000000000000000... throughput [1968678.899op/s; 1968960.155op/s] or [-0.007%; +0.007%] None None None
normalization/normalize_service/normalize_service/Data🐨dog🐶 繋がっ⛰てて execution_time [469.779µs; 469.943µs] or [-0.017%; +0.017%] None None None
normalization/normalize_service/normalize_service/Data🐨dog🐶 繋がっ⛰てて throughput [2127921.342op/s; 2128662.488op/s] or [-0.017%; +0.017%] None None None
normalization/normalize_service/normalize_service/Test Conversion 0f Weird !@#$%^&**() Characters execution_time [185.109µs; 185.149µs] or [-0.011%; +0.011%] None None None
normalization/normalize_service/normalize_service/Test Conversion 0f Weird !@#$%^&**() Characters throughput [5401067.149op/s; 5402215.820op/s] or [-0.011%; +0.011%] None None None
normalization/normalize_service/normalize_service/[empty string] execution_time [46.450µs; 46.485µs] or [-0.037%; +0.037%] None None None
normalization/normalize_service/normalize_service/[empty string] throughput [21512507.958op/s; 21528554.284op/s] or [-0.037%; +0.037%] None None None
normalization/normalize_service/normalize_service/test_ASCII execution_time [51.032µs; 51.153µs] or [-0.118%; +0.118%] None None None
normalization/normalize_service/normalize_service/test_ASCII throughput [19550602.210op/s; 19596717.250op/s] or [-0.118%; +0.118%] None None None

Group 7

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz da154f2 1730807809 bob/agent-info
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 18.679µs 25.061µs ± 10.700µs 20.101µs ± 0.279µs 26.033µs 39.103µs 42.017µs 103.795µs 416.38% 3.562 19.746 42.59% 0.757µ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.578µs; 26.544µs] or [-5.918%; +5.918%] None None None

Group 8

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz da154f2 1730807809 bob/agent-info
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 9.069ms 9.115ms ± 0.021ms 9.115ms ± 0.008ms 9.122ms 9.138ms 9.162ms 9.333ms 2.40% 5.843 59.161 0.23% 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 [9.112ms; 9.118ms] or [-0.032%; +0.032%] None None None

Group 9

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz da154f2 1730807809 bob/agent-info
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 251.710µs 252.020µs ± 0.240µs 251.984µs ± 0.116µs 252.101µs 252.310µs 253.332µs 253.607µs 0.64% 3.201 16.652 0.09% 0.017µs 1 200
normalization/normalize_name/normalize_name/Too-Long-.Too-Long-.Too-Long-.Too-Long-.Too-Long-.Too-Lo... throughput 3943103.810op/s 3967937.970op/s ± 3761.827op/s 3968500.857op/s ± 1826.551op/s 3970200.317op/s 3971989.886op/s 3972716.292op/s 3972826.889op/s 0.11% -3.177 16.463 0.09% 266.001op/s 1 200
normalization/normalize_name/normalize_name/bad-name execution_time 24.585µs 24.732µs ± 0.055µs 24.728µs ± 0.033µs 24.768µs 24.832µs 24.859µs 24.904µs 0.71% 0.271 0.131 0.22% 0.004µs 1 200
normalization/normalize_name/normalize_name/bad-name throughput 40153400.863op/s 40433008.111op/s ± 89762.400op/s 40440433.769op/s ± 53663.115op/s 40487632.299op/s 40579613.654op/s 40623823.865op/s 40674534.427op/s 0.58% -0.258 0.123 0.22% 6347.160op/s 1 200
normalization/normalize_name/normalize_name/good execution_time 15.726µs 15.756µs ± 0.029µs 15.754µs ± 0.020µs 15.772µs 15.795µs 15.813µs 15.995µs 1.53% 3.047 21.730 0.18% 0.002µs 1 200
normalization/normalize_name/normalize_name/good throughput 62519960.800op/s 63467818.650op/s ± 115468.992op/s 63477914.944op/s ± 82149.485op/s 63562747.625op/s 63576701.237op/s 63587908.639op/s 63590511.024op/s 0.18% -2.969 20.870 0.18% 8164.891op/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 [251.987µs; 252.054µs] or [-0.013%; +0.013%] None None None
normalization/normalize_name/normalize_name/Too-Long-.Too-Long-.Too-Long-.Too-Long-.Too-Long-.Too-Lo... throughput [3967416.617op/s; 3968459.323op/s] or [-0.013%; +0.013%] None None None
normalization/normalize_name/normalize_name/bad-name execution_time [24.725µs; 24.740µs] or [-0.031%; +0.031%] None None None
normalization/normalize_name/normalize_name/bad-name throughput [40420567.906op/s; 40445448.316op/s] or [-0.031%; +0.031%] None None None
normalization/normalize_name/normalize_name/good execution_time [15.752µs; 15.760µs] or [-0.025%; +0.025%] None None None
normalization/normalize_name/normalize_name/good throughput [63451815.759op/s; 63483821.542op/s] or [-0.025%; +0.025%] None None None

Group 10

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz da154f2 1730807809 bob/agent-info
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 289.986ns 302.004ns ± 14.142ns 297.801ns ± 5.248ns 303.019ns 334.389ns 342.560ns 342.824ns 15.12% 1.736 1.837 4.67% 1.000ns 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 [300.044ns; 303.964ns] or [-0.649%; +0.649%] None None None

Group 11

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz da154f2 1730807809 bob/agent-info
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 143.417µs 144.301µs ± 0.691µs 144.228µs ± 0.213µs 144.427µs 144.954µs 146.039µs 151.884µs 5.31% 7.109 72.195 0.48% 0.049µ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 [144.205µs; 144.397µs] or [-0.066%; +0.066%] None None None

Group 12

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz da154f2 1730807809 bob/agent-info
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.670µs 2.697µs ± 0.017µs 2.693µs ± 0.007µs 2.701µs 2.745µs 2.749µs 2.751µs 2.14% 1.692 2.776 0.64% 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.695µs; 2.699µs] or [-0.089%; +0.089%] 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.

Please add comments and tests.

infos: Shared<ManualFuture<AgentInfoStruct>>,
}

impl AgentInfoFetcher {
Copy link
Contributor

Choose a reason for hiding this comment

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

This file has no comments or tests 😞 I also find it confusing that this has the same name AgentInfoFetcher as the AgentInfoFetcher in data-pipeline. Yes, I know that there are differences, but couldn't the break check, and the processing be moved behind a trait and there only be one impl of the loop?

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 wasn't intentionally choosing the same name. Maybe I can call it AgentInfoWriter, but not sure if that helps?

You theoretically could do it, but the actual amount of shared code would be quite low & the boilerplate for the sharing of code quite large in comparison? I feel like fetch_info_with_state is the right level of abstraction for this.

I can though add at least a test for the happy path here.

Copy link
Contributor

Choose a reason for hiding this comment

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

Fine, let's not try to share more code then.

Please add a happy path test and some comments. I mean at least something like:

//! This file contains code for fetching and sharing the info from the Datadog Agent
//! ... etc

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I will do, just haven't gotten round to it yet.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@bantonsson Done :-)

@bwoebi bwoebi force-pushed the bob/agent-info branch 2 times, most recently from 73e5f69 to fe3c47e Compare November 5, 2024 11:56
@bwoebi bwoebi merged commit 7039e0f into main Nov 6, 2024
42 checks passed
@bwoebi bwoebi deleted the bob/agent-info branch November 6, 2024 12:37
danielsn pushed a commit that referenced this pull request Nov 6, 2024
* Collect agent info from sidecar

Signed-off-by: Bob Weinand <[email protected]>

* Add comments and test for AgentInfo in sidecar

Signed-off-by: Bob Weinand <[email protected]>

---------

Signed-off-by: Bob Weinand <[email protected]>
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.

3 participants