@@ -271,7 +271,7 @@ def get_filename(self) -> None | str:
271271 def load_store (self , fileobj = None , force_intermediate = False ):
272272 """Load translate-toolkit storage from disk."""
273273 # Use intermediate store as template for source translation
274- with sentry_sdk .start_span (op = "load_store" , description = self .get_filename ()):
274+ with sentry_sdk .start_span (op = "load_store" , name = self .get_filename ()):
275275 if force_intermediate or (self .is_template and self .component .intermediate ):
276276 template = self .component .intermediate_store
277277 else :
@@ -329,7 +329,7 @@ def sync_unit(
329329 is_new = True
330330
331331 with sentry_sdk .start_span (
332- op = "update_from_unit" , description = f"{ self .full_slug } :{ pos } "
332+ op = "update_from_unit" , name = f"{ self .full_slug } :{ pos } "
333333 ):
334334 newunit .update_from_unit (unit , pos , is_new )
335335
@@ -338,7 +338,7 @@ def sync_unit(
338338
339339 def check_sync (self , force = False , request = None , change = None ) -> None : # noqa: C901
340340 """Check whether database is in sync with git and possibly updates."""
341- with sentry_sdk .start_span (op = "check_sync" , description = self .full_slug ):
341+ with sentry_sdk .start_span (op = "check_sync" , name = self .full_slug ):
342342 if change is None :
343343 change = Change .ACTION_UPDATE
344344 user = None if request is None else request .user
0 commit comments