From f88da377430f72dd88caa70bb80de485fd180a5f Mon Sep 17 00:00:00 2001 From: Ramiz Wachtler Date: Mon, 21 Oct 2024 19:22:17 +0200 Subject: [PATCH] ref(transport): Log a warning when an envelope item is dropped --- Sources/Sentry/SentryHttpTransport.m | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/Sentry/SentryHttpTransport.m b/Sources/Sentry/SentryHttpTransport.m index 9630076eac0..4c5a5defddb 100644 --- a/Sources/Sentry/SentryHttpTransport.m +++ b/Sources/Sentry/SentryHttpTransport.m @@ -232,6 +232,7 @@ - (SentryFlushResult)flush:(NSTimeInterval)timeout - (void)envelopeItemDropped:(SentryEnvelopeItem *)envelopeItem withCategory:(SentryDataCategory)dataCategory; { + SENTRY_LOG_WARN(@"Envelope item dropped due to exceeding rate limit. Category: %@", nameForSentryDataCategory(dataCategory)); [self recordLostEvent:dataCategory reason:kSentryDiscardReasonRateLimitBackoff]; [self recordLostSpans:envelopeItem reason:kSentryDiscardReasonRateLimitBackoff]; }