Skip to content

Commit df79fb6

Browse files
authored
chore(service/minitrace): automatically generate span name (#2618)
1 parent 7617c2f commit df79fb6

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

core/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ madsim = { version = "0.2.21", optional = true }
201201
md-5 = "0.10"
202202
metrics = { version = "0.20", optional = true }
203203
mini-moka = { version = "0.10", optional = true }
204-
minitrace = { version = "0.4.0", optional = true }
204+
minitrace = { version = "0.4.1", optional = true }
205205
moka = { version = "0.10", optional = true, features = ["future"] }
206206
once_cell = "1"
207207
openssh = { version = "0.9.9", optional = true }

core/src/layers/minitrace.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -172,22 +172,22 @@ impl<A: Accessor> LayeredAccessor for MinitraceAccessor<A> {
172172
self.inner.append(path, args).await
173173
}
174174

175-
#[trace("copy", enter_on_poll = true)]
175+
#[trace(enter_on_poll = true)]
176176
async fn copy(&self, from: &str, to: &str, args: OpCopy) -> Result<RpCopy> {
177177
self.inner().copy(from, to, args).await
178178
}
179179

180-
#[trace("rename", enter_on_poll = true)]
180+
#[trace(enter_on_poll = true)]
181181
async fn rename(&self, from: &str, to: &str, args: OpRename) -> Result<RpRename> {
182182
self.inner().rename(from, to, args).await
183183
}
184184

185-
#[trace("stat", enter_on_poll = true)]
185+
#[trace(enter_on_poll = true)]
186186
async fn stat(&self, path: &str, args: OpStat) -> Result<RpStat> {
187187
self.inner.stat(path, args).await
188188
}
189189

190-
#[trace("delete", enter_on_poll = true)]
190+
#[trace(enter_on_poll = true)]
191191
async fn delete(&self, path: &str, args: OpDelete) -> Result<RpDelete> {
192192
self.inner.delete(path, args).await
193193
}
@@ -200,17 +200,17 @@ impl<A: Accessor> LayeredAccessor for MinitraceAccessor<A> {
200200
.await
201201
}
202202

203-
#[trace("presign", enter_on_poll = true)]
203+
#[trace(enter_on_poll = true)]
204204
async fn presign(&self, path: &str, args: OpPresign) -> Result<RpPresign> {
205205
self.inner.presign(path, args).await
206206
}
207207

208-
#[trace("batch", enter_on_poll = true)]
208+
#[trace(enter_on_poll = true)]
209209
async fn batch(&self, args: OpBatch) -> Result<RpBatch> {
210210
self.inner.batch(args).await
211211
}
212212

213-
#[trace("blocking_create")]
213+
#[trace]
214214
fn blocking_create_dir(&self, path: &str, args: OpCreateDir) -> Result<RpCreateDir> {
215215
self.inner.blocking_create_dir(path, args)
216216
}
@@ -235,22 +235,22 @@ impl<A: Accessor> LayeredAccessor for MinitraceAccessor<A> {
235235
})
236236
}
237237

238-
#[trace("blocking_copy")]
238+
#[trace]
239239
fn blocking_copy(&self, from: &str, to: &str, args: OpCopy) -> Result<RpCopy> {
240240
self.inner().blocking_copy(from, to, args)
241241
}
242242

243-
#[trace("blocking_rename")]
243+
#[trace]
244244
fn blocking_rename(&self, from: &str, to: &str, args: OpRename) -> Result<RpRename> {
245245
self.inner().blocking_rename(from, to, args)
246246
}
247247

248-
#[trace("blocking_stat")]
248+
#[trace]
249249
fn blocking_stat(&self, path: &str, args: OpStat) -> Result<RpStat> {
250250
self.inner.blocking_stat(path, args)
251251
}
252252

253-
#[trace("blocking_delete")]
253+
#[trace]
254254
fn blocking_delete(&self, path: &str, args: OpDelete) -> Result<RpDelete> {
255255
self.inner.blocking_delete(path, args)
256256
}

0 commit comments

Comments
 (0)