Skip to content

Commit

Permalink
Deprecate statsd output
Browse files Browse the repository at this point in the history
Updates #2982
  • Loading branch information
mstoykov committed Sep 21, 2023
1 parent 3655065 commit 2f43860
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cmd/outputs.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,13 @@ func getAllOutputConstructors() (map[string]output.Constructor, error) {
return nil, errors.New("the kafka output was deprecated in k6 v0.32.0 and removed in k6 v0.34.0, " +
"please use the new xk6 kafka output extension instead - https://github.com/k6io/xk6-output-kafka")
},
"statsd": statsd.New,
"statsd": func(params output.Params) (output.Output, error) {
params.Logger.Warn("The statsd output is deprecated, and will be removed in a future k6 version. " +
"Please use the new xk6 statsd output extension instead. " +
"It can be found at https://github.com/LeonAdato/xk6-output-statsd and " +
"more info at https://github.com/grafana/k6/issues/2982.")
return statsd.New(params)
},
"datadog": func(params output.Params) (output.Output, error) {
return nil, errors.New("the datadog output was deprecated in k6 v0.32.0 and removed in k6 v0.34.0, " +
"please use the statsd output with env. variable K6_STATSD_ENABLE_TAGS=true instead")
Expand Down

0 comments on commit 2f43860

Please sign in to comment.