diff --git a/go.mod b/go.mod index b93c1835a78..ca7ccb34e8f 100644 --- a/go.mod +++ b/go.mod @@ -15,7 +15,7 @@ require ( github.com/go-sourcemap/sourcemap v2.1.4+incompatible github.com/golang/protobuf v1.5.4 github.com/gorilla/websocket v1.5.1 - github.com/grafana/xk6-browser v1.8.1 + github.com/grafana/xk6-browser v1.8.2 github.com/grafana/xk6-dashboard v0.7.5 github.com/grafana/xk6-output-opentelemetry v0.2.0 github.com/grafana/xk6-output-prometheus-remote v0.4.0 diff --git a/go.sum b/go.sum index daab7c50772..4fbfc5bbf45 100644 --- a/go.sum +++ b/go.sum @@ -91,8 +91,8 @@ github.com/gorilla/websocket v1.5.1 h1:gmztn0JnHVt9JZquRuzLw3g4wouNVzKL15iLr/zn/ github.com/gorilla/websocket v1.5.1/go.mod h1:x3kM2JMyaluk02fnUJpQuwD2dCS5NDG2ZHL0uE0tcaY= github.com/grafana/sobek v0.0.0-20240829081756-447e8c611945 h1:rxyoc2Ee/iKcm5EYNU/dEO0GcMZDN5vaDGyIo7pt804= github.com/grafana/sobek v0.0.0-20240829081756-447e8c611945/go.mod h1:FmcutBFPLiGgroH42I4/HBahv7GxVjODcVWFTw1ISes= -github.com/grafana/xk6-browser v1.8.1 h1:n1V27JDmXm8sKLOddlbO3AgCv9vZ3jpEK0AlW4Jvz20= -github.com/grafana/xk6-browser v1.8.1/go.mod h1:we1lHAYSVZD5s/4yre2KWtaqY4G0ikNVpn0QE2EO8DA= +github.com/grafana/xk6-browser v1.8.2 h1:F8PkRBoZ6O3+OmNzn5kBvKz6Z0+Wxj9UwwGNnwTJJFg= +github.com/grafana/xk6-browser v1.8.2/go.mod h1:we1lHAYSVZD5s/4yre2KWtaqY4G0ikNVpn0QE2EO8DA= github.com/grafana/xk6-dashboard v0.7.5 h1:TcILyffT/Ea/XD7xG1jMA5lwtusOPRbEQsQDHmO30Mk= github.com/grafana/xk6-dashboard v0.7.5/go.mod h1:Y75F8xmgCraKT+pBzFH6me9AyH5PkXD+Bxo1dm6Il/M= github.com/grafana/xk6-output-opentelemetry v0.2.0 h1:u/ctsfUQsyLh6paBjOmKshqeYr6HUsCJr29eO2QTb/s= diff --git a/vendor/github.com/grafana/xk6-browser/browser/registry.go b/vendor/github.com/grafana/xk6-browser/browser/registry.go index 138ad435725..dfad4bca173 100644 --- a/vendor/github.com/grafana/xk6-browser/browser/registry.go +++ b/vendor/github.com/grafana/xk6-browser/browser/registry.go @@ -303,8 +303,7 @@ func (r *browserRegistry) handleIterEvents( //nolint:funlen // // All browser APIs should work with the vu context, and allow the // k6 iteration control its lifecycle. - vuCtx := r.vu.Context() - tracerCtx := common.WithTracer(vuCtx, r.tr.tracer) + tracerCtx := common.WithTracer(r.vu.Context(), r.tr.tracer) tracedCtx := r.tr.startIterationTrace(tracerCtx, data) b, err := r.buildFn(ctx, tracedCtx) diff --git a/vendor/modules.txt b/vendor/modules.txt index 1e948320a0c..38b0be8f580 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -173,7 +173,7 @@ github.com/grafana/sobek/ftoa/internal/fast github.com/grafana/sobek/parser github.com/grafana/sobek/token github.com/grafana/sobek/unistring -# github.com/grafana/xk6-browser v1.8.1 +# github.com/grafana/xk6-browser v1.8.2 ## explicit; go 1.21 github.com/grafana/xk6-browser/browser github.com/grafana/xk6-browser/chromium