Skip to content

Commit

Permalink
do not emit an empty envelope item on shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
Swatinem committed Oct 18, 2023
1 parent dd22afb commit 2fc55ae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sentry-core/src/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,10 @@ impl MetricFlusher {
}

fn flush_buckets(buckets: AggregateMetrics, transport: &TransportArc) {
if buckets.is_empty() {
return;
}

fn format_payload(buckets: AggregateMetrics) -> std::io::Result<Vec<u8>> {
use std::io::Write;
let mut out = vec![];
Expand Down

0 comments on commit 2fc55ae

Please sign in to comment.