Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit f545516

Browse files
committed
Fix XK6_BROWSER_PPROF env var for cloud support
The k6-agent will only forward env vars to the k6 binary that start with K6_. To be able to use pprof in the cloud environment we need to change the env var from XK6_BROWSER_PPROF to K6_BROWSER_PPROF.
1 parent 9b08fdb commit f545516

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ var (
4343
)
4444

4545
func init() {
46-
if _, ok := os.LookupEnv("XK6_BROWSER_PPROF"); ok {
46+
if _, ok := os.LookupEnv("K6_BROWSER_PPROF"); ok {
4747
go func() {
4848
address := "localhost:6060"
4949
log.Println("Starting http debug server", address)

0 commit comments

Comments
 (0)