mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
chore: scope namespace/tenant spans under database
Namespace and tenant are properties of the database, so trace them as database.namespace / database.tenant rather than under the operation. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
a5cedf4671
commit
4433b10eaf
1 file changed
+3
-3
@@ -620,11 +620,11 @@ class Databases extends Action
|
||||
$callback
|
||||
);
|
||||
} catch (\Throwable $th) {
|
||||
Span::add('delete_by_group.namespace', $database->getNamespace());
|
||||
Span::add('delete_by_group.collection.id', $collectionId);
|
||||
Span::add('database.namespace', $database->getNamespace());
|
||||
if ($database->getSharedTables()) {
|
||||
Span::add('delete_by_group.tenant', $database->getTenant());
|
||||
Span::add('database.tenant', $database->getTenant());
|
||||
}
|
||||
Span::add('delete_by_group.collection', $collectionId);
|
||||
Span::add('delete_by_group.error', $th->getMessage());
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user