Skip to content

Commit 6fc6061

Browse files
Log rate limit headers
1 parent 337faa7 commit 6fc6061

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Sentry/Http/HttpTransportBase.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ private void ExtractRateLimits(HttpHeaders responseHeaders)
271271

272272
// Join to a string to handle both single-header and multi-header cases
273273
var rateLimitsEncoded = string.Join(",", rateLimitHeaderValues);
274+
_options.LogDebug("Parsing rate limit headers: {0}", rateLimitsEncoded);
274275

275276
// Parse and order by retry-after so that the longer rate limits are set last (and not overwritten)
276277
var rateLimits = RateLimit.ParseMany(rateLimitsEncoded).OrderBy(rl => rl.RetryAfter);

0 commit comments

Comments
 (0)