I am attempting to enable traces in our k6 cloud run tests following the documentation here: Correlate results with Grafana Cloud Traces | Grafana Cloud documentation
The service endpoint I am calling in the K6 test has otel traces enabled (confirmed this as I can see the test traffic in Grafana Cloud Traces when running the script locally).
My k6 script includes the following:
import tempo from ‘https://jslib.k6.io/http-instrumentation-tempo/1.0.0/index.js’;
tempo.instrumentHTTP({
// possible values: “w3c”, “jaeger”
propagator: ‘w3c’,
});
And I confirmed that the test request has the Traceparent request header.
However, when I attempt to run the k6 script with the following:
k6 cloud run --local-execution .\DocMgmt_svc.js -e scenario=smoke_test -e K6_CLOUD_TRACES_ENABLED=true
I see the following output in the terminal, and no trace data is available in the Grafana Cloud test run:
ERRO[0012] Failed to push trace samples to the cloud error=“failed to ingest request metadatas batch: code=Unavailable, msg=connection error: desc = "error reading server preface: http2: frame too large"” output=cloudv2 t=2.7082311s