File tree Expand file tree Collapse file tree
relay-server/src/services Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -69,25 +69,6 @@ impl KafkaTopic {
6969 ] ;
7070 TOPICS . iter ( )
7171 }
72-
73- /// Returns a name for the topic for instrumentation.
74- pub fn as_str ( & self ) -> & str {
75- match self {
76- KafkaTopic :: Events => "events" ,
77- KafkaTopic :: Attachments => "attachments" ,
78- KafkaTopic :: Transactions => "transactions" ,
79- KafkaTopic :: Outcomes => "outcomes" ,
80- KafkaTopic :: OutcomesBilling => "outcomes_billing" ,
81- KafkaTopic :: MetricsSessions => "metrics_sessions" ,
82- KafkaTopic :: MetricsGeneric => "metrics_generic" ,
83- KafkaTopic :: Profiles => "profiles" ,
84- KafkaTopic :: ReplayRecordings => "replay_recordings" ,
85- KafkaTopic :: Monitors => "monitors" ,
86- KafkaTopic :: Spans => "spans" ,
87- KafkaTopic :: Feedback => "feedback" ,
88- KafkaTopic :: Items => "items" ,
89- }
90- }
9172}
9273
9374macro_rules! define_topic_assignments {
Original file line number Diff line number Diff line change @@ -427,11 +427,11 @@ impl StoreService {
427427 Ok ( ( ) )
428428 }
429429 Err ( error) => {
430- let envelope = envelope . into_envelope ( ) ;
431- Err (
432- Managed :: from_envelope ( envelope , self . outcome_aggregator . clone ( ) )
433- . reject_err ( error ) ,
434- )
430+ // The envelope is now empty. `ManagedEnvelope` still counts items correctly
431+ // through `EnvelopeSummary`, but `Managed<Box<Envelope>>` does not.
432+ // -> reject the old way and return a dummy item.
433+ envelope . reject ( Outcome :: Invalid ( DiscardReason :: Internal ) ) ;
434+ Err ( Managed :: with_meta_from ( & envelope , ( ) ) . reject_err ( error ) )
435435 }
436436 }
437437 }
You can’t perform that action at this time.
0 commit comments