Skip to content

Add estimate_batch_distinct_count operation block passing support

What does this MR do?

Related to #332554 (closed).

This adds passing blocks to the metric instrumentation estimate_batch_distinct_count operation, to do some additional calculations on HLL buckets if necessary. This is the only missing feature to complete the support for this operation.

Unfortunately I don't have a metric example to go with this. Originally I wanted to include an example of usage_activity_by_stage.secure.*_pipelines metrics in !67915 (closed), but ultimately I closed the MR. Only two types of metrics use the estimate_batch_distinct_count method, and both of them are subject to change due to database ci_* tables decomposition.

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Edited by Mayra Cabrera

Merge request reports