Skip to content

Commit

Permalink
ref(metrics): group unknown SDKs into proprietary
Browse files Browse the repository at this point in the history
  • Loading branch information
Litarnus committed Oct 31, 2024
1 parent 7539a17 commit 64c3ed4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion relay-server/src/endpoints/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,11 @@ pub async fn handle_envelope(
state: &ServiceState,
envelope: Box<Envelope>,
) -> Result<Option<EventId>, BadStoreRequest> {
let client_name = envelope.meta().client_name().unwrap_or("proprietary");
let client_name = envelope
.meta()
.client_name()
.filter(|name| name.starts_with("sentry") || name.starts_with("raven"))
.unwrap_or("proprietary");
for item in envelope.items() {
metric!(
histogram(RelayHistograms::EnvelopeItemSize) = item.payload().len() as u64,
Expand Down

0 comments on commit 64c3ed4

Please sign in to comment.