-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Remove sessions #3271
feat: Remove sessions #3271
Changes from 12 commits
24d3f89
0fb63c8
b8ef1c5
7054dba
55fede5
8999575
db37ddb
73950f1
4211357
aa9c851
400f7e8
f8b44d5
cd99fdc
16c5062
9fe7a2f
acaefcc
682f4f7
cf8d5fb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,8 +35,6 @@ pub enum KafkaTopic { | |
Outcomes, | ||
/// Override for billing critical outcomes. | ||
OutcomesBilling, | ||
/// Session health updates. | ||
Sessions, | ||
/// Any metric that is extracted from sessions. | ||
MetricsSessions, | ||
/// Generic metrics topic, excluding sessions (release health). | ||
|
@@ -62,13 +60,12 @@ impl KafkaTopic { | |
/// It will have to be adjusted if the new variants are added. | ||
pub fn iter() -> std::slice::Iter<'static, Self> { | ||
use KafkaTopic::*; | ||
static TOPICS: [KafkaTopic; 15] = [ | ||
static TOPICS: [KafkaTopic; 14] = [ | ||
Events, | ||
Attachments, | ||
Transactions, | ||
Outcomes, | ||
OutcomesBilling, | ||
Sessions, | ||
MetricsSessions, | ||
MetricsGeneric, | ||
Profiles, | ||
|
@@ -101,9 +98,6 @@ pub struct TopicAssignments { | |
/// Outcomes topic name for billing critical outcomes. Defaults to the assignment of `outcomes`. | ||
#[serde(alias = "outcomes-billing")] | ||
pub outcomes_billing: Option<TopicAssignment>, | ||
/// Session health topic name. | ||
#[serde(alias = "ingest-sessions")] | ||
pub sessions: TopicAssignment, | ||
/// Topic name for metrics extracted from sessions, aka release health. | ||
#[serde(alias = "metrics", alias = "ingest-metrics")] | ||
pub metrics_sessions: TopicAssignment, | ||
|
@@ -142,7 +136,6 @@ impl TopicAssignments { | |
KafkaTopic::Transactions => &self.transactions, | ||
KafkaTopic::Outcomes => &self.outcomes, | ||
KafkaTopic::OutcomesBilling => self.outcomes_billing.as_ref().unwrap_or(&self.outcomes), | ||
KafkaTopic::Sessions => &self.sessions, | ||
KafkaTopic::MetricsSessions => &self.metrics_sessions, | ||
KafkaTopic::MetricsGeneric => &self.metrics_generic, | ||
KafkaTopic::Profiles => &self.profiles, | ||
|
@@ -164,7 +157,6 @@ impl Default for TopicAssignments { | |
transactions: "ingest-transactions".to_owned().into(), | ||
outcomes: "outcomes".to_owned().into(), | ||
outcomes_billing: None, | ||
sessions: "ingest-sessions".to_owned().into(), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does the ops repo still have configuration for this? We don't want Relay to crash because of an unknown topic parameter. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes. https://github.com/getsentry/ops/blob/master/k8s/clusters/us/default.yaml#L3256-L3257. Though is this comment actually backwards and it needs to be removed from ops first? |
||
metrics_sessions: "ingest-metrics".to_owned().into(), | ||
metrics_generic: "ingest-performance-metrics".to_owned().into(), | ||
profiles: "profiles".to_owned().into(), | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.