You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As defined by the code's comment below, we should use a better name that matches the purpose for MaxMetricSamplesPerPackage in cloudv2.
cloudv2 uses MaxMetricSamplesPerPackage for defining the max number of time series in a single flush batch. Instead, the current option defines the number of k6 samples.
codebien
changed the title
Replace the current usage of MaxMetricSamplesPerPackage with a dedicated and explicit variable.
Beter option instead of MaxMetricSamplesPerPackageJun 29, 2023
codebien
changed the title
Beter option instead of MaxMetricSamplesPerPackage
Use a dedicated option instead of MaxMetricSamplesPerPackage
Jun 29, 2023
Whatever the new name is, it shouldn't reference "packages", which I'm not sure what they are. I think this was meant to be "per (network) packet", but even that would be wrong, as HTTP is not concerned with TCP/IP packets, and requests could be split over several packets. So "per (HTTP) request" would be more accurate, or since the v2 output now deals with protobuf, maybe "per (protobuf) message", or more generically "per payload", would be better.
What
As defined by the code's comment below, we should use a better name that matches the purpose for
MaxMetricSamplesPerPackage
incloudv2
.cloudv2
usesMaxMetricSamplesPerPackage
for defining the max number of time series in a single flush batch. Instead, the current option defines the number of k6 samples.k6/cloudapi/config.go
Lines 34 to 36 in 1df72a0
k6/output/cloud/expv2/output.go
Lines 110 to 112 in 1df72a0
Why
MaxMetricSamplesPerPackage
is inherited from v1 but we should use a cleaner and dedicated field.Suggestion
Add a dedicated new field for defining the max number of series in a single flush batch.
The text was updated successfully, but these errors were encountered: