I'm using Dynatrace and Gatling for performance analysis and testing. Dynatrace supports tracing test runs through the addition of a header to each HTTP request. I'd like to had that header with a dynamic test guid without adding it to every request individually in 100s of places.
An example test:
def GetLocationPage = exec(http(domain + "GetLocationPage")
.post("/location ")
.formParam("updateVersion", "1")
I understand that I could add the header individually in each request with...
.headers(gatlingHeaders)
... but my goal is to avoid doing that 100s of places in the code. Essentially, I'm looking for a Gatling equivalent to this functionality in Spring.
I found this issue on Gatling, but wasn't able to determine if it would be useful.
Any recommendations?