Skip to content

Commit d51e405

Browse files
committed
Adjust "Index cloned" log message duration output
Datadog expects the `duration` fields to be sent in nanoseconds, so let's do that...
1 parent 8aaf43f commit d51e405

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/worker/environment.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ impl Environment {
5656
*repo = Some(Repository::open(&self.repository_config)?);
5757

5858
let clone_duration = clone_start.elapsed();
59-
info!(duration = ?clone_duration, "Index cloned");
59+
info!(duration = clone_duration.as_nanos(), "Index cloned");
6060
}
6161

6262
let repo_lock = RepositoryLock { repo };

0 commit comments

Comments
 (0)