From 0c5aec7f1cb27599aa8900ff37483777b6623ee5 Mon Sep 17 00:00:00 2001 From: Mihail Stoykov Date: Thu, 18 Jul 2024 11:24:05 +0300 Subject: [PATCH 1/2] Deprecate k6/experimental/tracing Closes #3212 --- js/jsmodules.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/js/jsmodules.go b/js/jsmodules.go index 9e435ba3ee6..3d0e5b0ecf0 100644 --- a/js/jsmodules.go +++ b/js/jsmodules.go @@ -46,7 +46,11 @@ func getInternalJSModules() map[string]interface{} { "The exports of `k6/experimental/timers` are globally available, so no need to import them."+ " The module will be removed after September 23rd, 2024 (v0.54.0). Ensure your scripts are migrated by then."+ " There are no API changes, so this is a drop-in replacement and is also available under `k6/timers`."), - "k6/experimental/tracing": tracing.New(), + "k6/experimental/tracing": newWarnExperimentalModule(tracing.New(), + "k6/experimental/tracing is now deprecated. All of it functionality is available as pure javascript module."+ + " More info available at the docs:"+ + " https://grafana.com/docs/k6/latest/javascript-api/jslib/http-instrumentation-tempo"+ + " The module will be removed after November 11th, 2024 (v0.55.0). Ensure your scripts are migrated by then."), "k6/experimental/browser": newWarnExperimentalModule(browser.NewSync(), "Please update your imports to use k6/browser instead of k6/experimental/browser,"+ " which will be removed after September 23rd, 2024 (v0.54.0). Ensure your scripts are migrated by then."+ From deeea53199453307a17676b920377d07c60027f5 Mon Sep 17 00:00:00 2001 From: Mihail Stoykov <312246+mstoykov@users.noreply.github.com> Date: Thu, 18 Jul 2024 11:59:43 +0300 Subject: [PATCH 2/2] Update js/jsmodules.go Co-authored-by: Ivan <2103732+codebien@users.noreply.github.com> --- js/jsmodules.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/jsmodules.go b/js/jsmodules.go index 3d0e5b0ecf0..9486a9d3628 100644 --- a/js/jsmodules.go +++ b/js/jsmodules.go @@ -47,7 +47,7 @@ func getInternalJSModules() map[string]interface{} { " The module will be removed after September 23rd, 2024 (v0.54.0). Ensure your scripts are migrated by then."+ " There are no API changes, so this is a drop-in replacement and is also available under `k6/timers`."), "k6/experimental/tracing": newWarnExperimentalModule(tracing.New(), - "k6/experimental/tracing is now deprecated. All of it functionality is available as pure javascript module."+ + "k6/experimental/tracing is now deprecated. All of its functionality is available as pure javascript module."+ " More info available at the docs:"+ " https://grafana.com/docs/k6/latest/javascript-api/jslib/http-instrumentation-tempo"+ " The module will be removed after November 11th, 2024 (v0.55.0). Ensure your scripts are migrated by then."),