Skip to content

Commit 8b3febc

Browse files
committed
fixed profile_chunk envelope type, while keeping the profile_chunk_ui rate limit key
1 parent 6b86bb7 commit 8b3febc

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

sentry/src/main/java/io/sentry/SentryItemType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public enum SentryItemType implements JsonSerializable {
1515
Attachment("attachment"),
1616
Transaction("transaction"),
1717
Profile("profile"),
18-
ProfileChunk("profile_chunk_ui"),
18+
ProfileChunk("profile_chunk"),
1919
ClientReport("client_report"),
2020
ReplayEvent("replay_event"),
2121
ReplayRecording("replay_recording"),

sentry/src/main/java/io/sentry/transport/RateLimiter.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,8 @@ private boolean isRetryAfter(final @NotNull String itemType) {
191191
return DataCategory.Attachment;
192192
case "profile":
193193
return DataCategory.Profile;
194-
case "profile_chunk_ui":
194+
// When we send a profile chunk, we have to check for profile_chunk_ui rate limiting, because that's what relay returns to rate limit Android. When (if) we will implement JVM profiling we will have to check both rate limits.
195+
case "profile_chunk":
195196
return DataCategory.ProfileChunkUi;
196197
case "transaction":
197198
return DataCategory.Transaction;

0 commit comments

Comments
 (0)