Closed codebien closed 2 years ago
@codebien The migration is in wip in https://github.com/pmalhaire/xk6-mqtt/tree/update/0.38.0
@codebien migration is done, between I am not sure stats are done the right way
state := m.vu.State()
msgByteLen := len([]byte(message))
state.BuiltinMetrics.DataSent.Sink.Add(
metrics.Sample{Metric: &metrics.Metric{}, Value: float64(msgByteLen), Time: time.Now()},
)
Update done
k6 v0.38.0 has been released and it contains a breaking change for the
stats
package. We merged it in themetrics
package. The current build of the extension could be affected.stats
package to the relativemetrics
definition. The API is not changed so it should be just a find and replace of the package.