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

systemTags is ignored when specified in the JS or JSON options #1010

Closed
na-- opened this issue Apr 25, 2019 · 0 comments · Fixed by #1092
Closed

systemTags is ignored when specified in the JS or JSON options #1010

na-- opened this issue Apr 25, 2019 · 0 comments · Fixed by #1092

Comments

@na--
Copy link
Member

na-- commented Apr 25, 2019

Running k6 run -o json script.js with the following script:

import http from "k6/http";

export let options = {
    systemTags: ["proto", "url"],
};

export default function (data) {
    http.get("https://httpbin.org/anything");
}

produces results like

{"type":"Point","data":{"time":"...","value":116.683163,"tags":{"group":"","method":"GET","name":"https://httpbin.org/anything","proto":"HTTP/1.1","status":"200","tls_version":"tls1.2","url":"https://httpbin.org/anything"}},"metric":"http_req_duration"}`

while running the same script with CLI options (k6 run --system-tags=url,proto -o json script.js) works as expected.

This was first reported in the community forum by VladT. Somewhat connected issues: #768, #755

mstoykov pushed a commit that referenced this issue Aug 9, 2019
CLI options have the highest priority, so the cli options which have a
default value will always override options of other mechanisms.

To fix it, we only set default value after consolidated config process.

Close #1010
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant