feat(server): add tracing spans and caching to archive and blame services
- Add tracing spans with repo labels for archive and blame operations - Implement caching for archive list entries when using OID selectors - Implement caching for blame operations when using OID selectors - Add detailed
This commit is contained in:
@@ -3,6 +3,11 @@ use crate::error::{GitError, GitResult};
|
||||
|
||||
impl GitBare {
|
||||
pub fn init_repository(&self, bare: bool) -> GitResult<()> {
|
||||
tracing::info!(
|
||||
path = %self.bare_dir.display(),
|
||||
bare = bare,
|
||||
"initializing repository"
|
||||
);
|
||||
let mut args = vec!["init".to_string()];
|
||||
if bare {
|
||||
args.push("--bare".into());
|
||||
|
||||
Reference in New Issue
Block a user