Skip to content

Commit

Permalink
Report migration count and object count as metrics (#8369)
Browse files Browse the repository at this point in the history
  • Loading branch information
msullivan committed Feb 24, 2025
1 parent 2d8881b commit a9f3eb3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions edb/server/compiler/ddl.py
Original file line number Diff line number Diff line change
Expand Up @@ -1230,6 +1230,7 @@ def _reset_schema(
s_func.Function: 'function',
s_indexes.Index: 'index',
s_scalars.ScalarType: 'scalar',
s_migrations.Migration: 'migration',
}


Expand Down Expand Up @@ -1302,6 +1303,11 @@ def _track(key: str) -> None:
and len(obj.get_bases(schema).objects(schema)) > 1
):
_track('multiple_inheritance')
elif (
isinstance(obj, s_objtypes.ObjectType)
and obj.is_material_object_type(schema)
):
_track('object_type')
elif (
isinstance(obj, s_scalars.ScalarType)
and obj.is_enum(schema)
Expand Down

0 comments on commit a9f3eb3

Please sign in to comment.