Skip to content

Commit f948efe

Browse files
authored
tracing: Consistently use krate.name field naming convention (#11527)
We should probably change the rest to `crate.name` instead, but let's do that in a dedicated step to not confuse downstream tools.
1 parent 2b8f66c commit f948efe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crates/crates_io_og_image/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ impl OgImageGenerator {
223223
/// This method handles both asset-based avatars (which are copied from the bundled assets)
224224
/// and URL-based avatars (which are downloaded from the internet).
225225
/// Returns a mapping from avatar source to the local filename.
226-
#[instrument(skip(self, data), fields(crate.name = %data.name))]
226+
#[instrument(skip(self, data), fields(krate.name = %data.name))]
227227
async fn process_avatars<'a>(
228228
&self,
229229
data: &'a OgImageData<'_>,

src/worker/jobs/generate_og_image.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ impl BackgroundJob for GenerateOgImage {
3939

4040
type Context = Arc<Environment>;
4141

42-
#[instrument(skip_all, fields(crate.name = %self.crate_name))]
42+
#[instrument(skip_all, fields(krate.name = %self.crate_name))]
4343
async fn run(&self, ctx: Self::Context) -> anyhow::Result<()> {
4444
let crate_name = &self.crate_name;
4545

0 commit comments

Comments
 (0)