Skip to content
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(spooler): Add initialization of stacks #3967

Merged
merged 18 commits into from
Sep 2, 2024
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
- Add `EnvelopeStore` trait and implement `DiskUsage` for tracking disk usage. ([#3925](https://github.com/getsentry/relay/pull/3925))
- Increase replay recording limit to two hours. ([#3961](https://github.com/getsentry/relay/pull/3961))
- Make EnvelopeBuffer a Service. ([#3965](https://github.com/getsentry/relay/pull/3965))
- Add initialization of the `EnvelopeBuffer`. ([#3967](https://github.com/getsentry/relay/pull/3967))
iambriccardo marked this conversation as resolved.
Show resolved Hide resolved

**Internal**:

Expand Down
8 changes: 6 additions & 2 deletions relay-server/benches/benches.rs
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,9 @@ fn benchmark_envelope_buffer(c: &mut Criterion) {
|envelopes| {
runtime.block_on(async {
let mut buffer =
PolymorphicEnvelopeBuffer::from_config(&config, memory_checker.clone());
PolymorphicEnvelopeBuffer::from_config(&config, memory_checker.clone())
.await
.unwrap();
for envelope in envelopes.into_iter() {
buffer.push(envelope).await.unwrap();
}
Expand Down Expand Up @@ -289,7 +291,9 @@ fn benchmark_envelope_buffer(c: &mut Criterion) {
|envelopes| {
runtime.block_on(async {
let mut buffer =
PolymorphicEnvelopeBuffer::from_config(&config, memory_checker.clone());
PolymorphicEnvelopeBuffer::from_config(&config, memory_checker.clone())
.await
.unwrap();
let n = envelopes.len();
for envelope in envelopes.into_iter() {
let public_key = envelope.meta().public_key();
Expand Down
2 changes: 1 addition & 1 deletion relay-server/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ impl ServiceState {
.spawn_handler(processor_rx);

let envelope_buffer = EnvelopeBufferService::new(
&config,
config.clone(),
MemoryChecker::new(memory_stat.clone(), config.clone()),
project_cache.clone(),
)
Expand Down
Loading
Loading