Skip to content

Commit f8fe7b0

Browse files
committed
Remove datetime from the workerInvocationsAdaptive query
We currently have `datetime` and `status` as dimensions for the CloudFlare Worker invocation metrics GraphQL query. This causes CloudFlare workers to output a number of datapoints for each unique tuple of dimensions, across several `datetime`s. For worker requests and errors this is fine as we `.Add(...)` to those counters, but for quantiles this causes us to only export the last datapoints quantiles, which may be an outlier. --- Removing the `datetime` for the query provides pre-aggregated datapoints for us to process. Further to this, `datetime` is not currently being captured in the response data structure.
1 parent 8bc93cb commit f8fe7b0

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

cloudflare.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,6 @@ func fetchWorkerTotals(accountID string) (*cloudflareResponseAccts, error) {
531531
dimensions {
532532
scriptName
533533
status
534-
datetime
535534
}
536535
537536
sum {

0 commit comments

Comments
 (0)