File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -357,6 +357,19 @@ def _capture_envelope(envelope):
357357 if self .transport is not None :
358358 self .transport .capture_envelope (envelope )
359359
360+ def _record_lost_event (
361+ reason , # type: str
362+ data_category , # type: EventDataCategory
363+ quantity = 1 , # type: int
364+ ):
365+ # type: (...) -> None
366+ if self .transport is not None :
367+ self .transport .record_lost_event (
368+ reason = reason ,
369+ data_category = data_category ,
370+ quantity = quantity ,
371+ )
372+
360373 try :
361374 _client_init_debug .set (self .options ["debug" ])
362375 self .transport = make_transport (self .options )
@@ -375,7 +388,7 @@ def _capture_envelope(envelope):
375388
376389 self .log_batcher = LogBatcher (
377390 capture_func = _capture_envelope ,
378- record_lost_func = self . transport . record_lost_event ,
391+ record_lost_func = _record_lost_event ,
379392 )
380393
381394 self .metrics_batcher = None
You can’t perform that action at this time.
0 commit comments