tideways / shopware6-benchmarking

The Shopware 6 performance benchmarking toolset, built by Shopware and Tideways.
GNU Affero General Public License v3.0
27 stars 1 forks source link

Add `HttpTidewaysSession` for profiling #14

Closed beberlei closed 2 years ago

beberlei commented 2 years ago

This PR adds a new HttpTidewaysSession that extends from Locust default HttpSession to add the X-Tideways-Profiler header when locust is either started with --tideways-apikey and --tideways-trace-rate or equivalent environment variables.

This is exposed to the Scenario JSON configuration as two new keys in the tideways section:

{
    "tideways": {"apiKey": "...", "traceSampleRate": 1}
}