Send screenshots and traces in the Cloud output mode
Feature Description
k6 in the Cloud output mode is not sending traces or screenshots to the Grafana Cloud k6. In this sense, Cloud output is not behaving in the same way as Cloud tests do which support everything out-of-the-box. So it'd be nice to unlock this and achieve feature parity at the level of k6.
This also impacts k6-operator Cloud tests, both Cloud output mode and PrivateLoadZone ones.
Suggested Solution (optional)
AFAIK, this should be pretty straight-forward to set up, as it's a matter of adding built-in configuration into k6.
It's possible to configure tracing to any Otel collector even now like this:
K6_TRACES_OUTPUT=otel=http://127.0.0.1:4318,proto=http,header.Some-Id=1 k6 cloud run --local-execution script.js
It should be equally possible to set up K6_BROWSER_SCREENSHOTS_OUTPUT=url=https://127.0.0.1/,basePath=/screenshots... in a similar fashion, so long as one has AWS S3 somewhere. AFAIS, this env variable supports only AWS presigned URLs, but for basic feature parity it should be sufficient to configure it.
Already existing or connected issues / PRs (optional)
Related issue:
- https://github.com/grafana/k6/issues/3259
Hi @yorugac, we have prioritized some work around this issue.