-
Notifications
You must be signed in to change notification settings - Fork 93
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
ref(kafka): Remove ShardedProducer #3415
Conversation
relay-kafka/src/producer/mod.rs
Outdated
/// Sends the payload to the correct producer for the current topic. | ||
fn send( | ||
&self, | ||
organization_id: u64, | ||
_organization_id: u64, |
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.
This parameter is not needed anymore but it's piped through so much code that I was wondering if we should keep it for future use. If not, we can remove it.
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.
Let's remove it.
CHANGELOG.md
Outdated
@@ -44,6 +44,7 @@ | |||
- Route spans according to trace_id. ([#3387](https://github.com/getsentry/relay/pull/3387)) | |||
- Log span when encountering a validation error. ([#3401](https://github.com/getsentry/relay/pull/3401)) | |||
- Optionally skip normalization. ([#3377](https://github.com/getsentry/relay/pull/3377)) | |||
- Remove `ShardedProducer`. ([#3415](https://github.com/getsentry/relay/pull/3415)) |
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.
Can we mark this as a breaking change and put it under the other breaking change in **Features**
?
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.
@iambriccardo can you also mark it as a breaking change?
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.
How do we mark it as a breaking change?
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.
Nvm just saw
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.
And now move it below the other breaking change :p.
Yeah it's not very fancy, we should probably at some point rework our changelog a bit.
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.
I feel like we should just create a set of rules that one should follow since right now it's a bit copy pasty.
relay-kafka/src/producer/mod.rs
Outdated
/// Sends the payload to the correct producer for the current topic. | ||
fn send( | ||
&self, | ||
organization_id: u64, | ||
_organization_id: u64, |
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.
Let's remove it.
I made sure that no active configs in prod are using the sharded configuration. |
Remove `SingleProducer` and `ProducerInner` types. Follow-up to #3415. --------- Co-authored-by: David Herberth <david.herberth@sentry.io>
This PR removes the
ShardedProducer
and it's related configuration params since it's not used anymore.Closes: #3339