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:
This PR adds a new
HttpTidewaysSession
that extends from Locust defaultHttpSession
to add theX-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: