Skip to content

Commit

Permalink
Add discard reason
Browse files Browse the repository at this point in the history
  • Loading branch information
buenaflor committed Jul 31, 2024
1 parent ffa37ac commit c84f791
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions dart/lib/src/client_reports/discard_reason.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ enum DiscardReason {
queueOverflow,
cacheOverflow,
rateLimitBackoff,
ignored,
}
2 changes: 2 additions & 0 deletions dart/lib/src/client_reports/discarded_event.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ extension _OutcomeExtension on DiscardReason {
return 'cache_overflow';
case DiscardReason.rateLimitBackoff:
return 'ratelimit_backoff';
case DiscardReason.ignored:

Check warning on line 40 in dart/lib/src/client_reports/discarded_event.dart

View check run for this annotation

Codecov / codecov/patch

dart/lib/src/client_reports/discarded_event.dart#L40

Added line #L40 was not covered by tests
return 'ignored';
}
}
}
Expand Down

0 comments on commit c84f791

Please sign in to comment.