Greetings!
For few weeks already I’m using k6 for our performance testing and it goes good, thanks in advance for this instrument.
Nevertheless, I would like to ask about “tags” and http.post.
According to documentation, http.post takes 3 arguments, which are url, body, params.
I do use all 3 of those in my requests, due to need in headers/tokens. And when I’m trying to apply tag, it just doesn’t work, Grafana recognizes only full URL as name (and that’s basically default name), resulting me seeing huge urls instead of my custom names.
However, with http.get tags work just fine.
Could you please give me an example of how do I apply tags to http post request, considering I’m using URL, body data and params already.
My code which doesn’t work:
let res = http.post(`https://${__ENV.host}/v1/api/`, payload, params,
{ tags: { name: 'Getting something from api' }})