fix(usage): route document delete op metric per database type

Single-document delete hardcoded the base billable metric
databases.operations.writes, diverging from every other document
write action, which uses getDatabasesOperationWriteMetric() to route
documentsdb/vectorsdb operations to their own per-type metric key.

This leaked deletes on documentsdb/vectorsdb databases into the
shared, billed databasesWrites meter.
This commit is contained in:
ArnabChatterjee20k committed 2026-09-04 16:57:52 +05:30
1 parent bcd1ad830e
commit 171633c382
1 file changed
+1 -1
@@ -219,7 +219,7 @@ class Delete extends Action
$usage
->setResource('database')
->setResourceInternalId((string) $database->getSequence())
->addMetric(METRIC_DATABASES_OPERATIONS_WRITES, 1);
->addMetric($this->getDatabasesOperationWriteMetric(), 1);
$response->addHeader('X-Debug-Operations', 1);