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

[apmbench] Add trace only benchmarks (backport #15434) #15603

Merged
merged 1 commit into from
Feb 7, 2025

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Feb 7, 2025

Motivation/summary

Existing benchmarks are a mix of logs, metrics and traces (sampled and unsampled transactions). Using these benchmarks will introduce noise in benchmark results to assess TBS performance. It will create strange results where the slower the disk, the higher the throughput, because traces ingestion slows and ingestion of other events speeds up to take up the CPU time spared by slow disk, making benchmark results very hard to interpret.

Create a special benchmark with only sampled traces to accurately benchmark traces. Benchmark files are obtained by e.g. grep -E '^{"span|^{"transaction|^{"meta' apm-nodejs-3.29.0.ndjson > apm-nodejs-traces-3.29.0.ndjson

We may want to revert this in the future to add these files to upstream apm-perf and bump apm-server to use upstream apm-perf e.g. #15379 . It is currently using a very old apm-perf.

Checklist

For functional changes, consider:

  • Is it observable through the addition of either logging or metrics?
  • Is its use being published in telemetry to enable product improvement?
  • Have system tests been added to avoid regression?

How to test these changes

Related issues

Useful to benchmark #15235 and related TBS optimizations


This is an automatic backport of pull request #15434 done by [Mergify](https://mergify.com).

* Add BenchmarkTracesAgentNodeJS

* Add more agents

* Update comment

* Exclude BenchmarkTraces* from scheduled runs to avoid skewing nightly results

* Use loadgen.NewEventHandler

(cherry picked from commit 9ad3be4)
@mergify mergify bot requested a review from a team as a code owner February 7, 2025 16:00
@mergify mergify bot mentioned this pull request Feb 7, 2025
2 tasks
@carsonip
Copy link
Member

carsonip commented Feb 7, 2025

https://github.com/Mergifyio queue

Copy link
Contributor Author

mergify bot commented Feb 7, 2025

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at 7665a4d

@mergify mergify bot merged commit 7665a4d into 8.18 Feb 7, 2025
17 of 18 checks passed
@mergify mergify bot deleted the mergify/bp/8.18/pr-15434 branch February 7, 2025 17:45
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.

1 participant