@@ -246,7 +246,12 @@ def periodic(self) -> None:
246246 except Exception :
247247 telemetry .record_dropped_payload (len (events ), event_type = self .EVENT_TYPE , error = "connection_error" )
248248 logger .error (
249- "failed to send %d LLMObs %s events to %s" , len (events ), self .EVENT_TYPE , self ._intake , exc_info = True
249+ "failed to send %d LLMObs %s events to %s" ,
250+ len (events ),
251+ self .EVENT_TYPE ,
252+ self ._intake ,
253+ exc_info = True ,
254+ extra = {"send_to_telemetry" : False },
250255 )
251256
252257 def _send_payload (self , payload : bytes , num_events : int ):
@@ -262,14 +267,20 @@ def _send_payload(self, payload: bytes, num_events: int):
262267 self ._url ,
263268 resp .status ,
264269 resp .read (),
270+ extra = {"send_to_telemetry" : False },
265271 )
266272 telemetry .record_dropped_payload (num_events , event_type = self .EVENT_TYPE , error = "http_error" )
267273 else :
268274 logger .debug ("sent %d LLMObs %s events to %s" , num_events , self .EVENT_TYPE , self ._url )
269275 return Response .from_http_response (resp )
270276 except Exception :
271277 logger .error (
272- "failed to send %d LLMObs %s events to %s" , num_events , self .EVENT_TYPE , self ._intake , exc_info = True
278+ "failed to send %d LLMObs %s events to %s" ,
279+ num_events ,
280+ self .EVENT_TYPE ,
281+ self ._intake ,
282+ exc_info = True ,
283+ extra = {"send_to_telemetry" : False },
273284 )
274285 raise
275286 finally :
0 commit comments