Skip to content

Commit 02fe03c

Browse files
committed
try using async backtrace
1 parent 970be70 commit 02fe03c

File tree

6 files changed

+168
-16
lines changed

6 files changed

+168
-16
lines changed

Cargo.lock

Lines changed: 100 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ debug = 1
1010

1111
[dependencies]
1212
anyhow = "1.0.92"
13+
async-backtrace = "0.2.7"
1314
base64 = "0.21.0"
1415
bytes = "1.10.0"
1516
chrono = { version = "0.4.26" }

src/kafka/inflight_activation_writer.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
use std::{
2-
sync::Arc,
3-
time::{Duration, Instant},
4-
};
5-
61
use crate::{
72
config::Config,
83
store::inflight_activation::{InflightActivation, InflightActivationStatus},
94
store::inflight_redis_activation::RedisActivationStore,
105
};
6+
use async_backtrace::framed;
117
use chrono::Utc;
8+
use std::{
9+
sync::Arc,
10+
time::{Duration, Instant},
11+
};
1212
use tokio::time::sleep;
1313
use tracing::{debug, error, instrument};
1414

@@ -68,7 +68,7 @@ impl Reducer for InflightActivationWriter {
6868
Ok(())
6969
}
7070

71-
#[instrument(skip_all)]
71+
#[framed]
7272
async fn flush(&mut self) -> Result<Option<Self::Output>, anyhow::Error> {
7373
let Some(ref batch) = self.batch else {
7474
return Ok(None);

0 commit comments

Comments
 (0)