git-ecosystem / git-bundle-server

A web server & management CLI to host Git bundles for use with Git's "bundle URIs" feature
Other
43 stars 20 forks source link

Logging Part 2: region tracing #29

Closed vdye closed 1 year ago

vdye commented 1 year ago

Part of #22.

Summary

This implements "part 2" of what was described in the initial Trace2 logging pull request (#28), adding region tracing to repo.go, bundles.go, and bundle-server.go.

The branch is broken up as follows:

Future work

In addition to the remaining parts mentioned in #28, I ended up doing a lot of refactoring of repo.go and bundles.go to use common.FileSystem and common.CommandExecutor. I pulled out of this PR (since it ended up fairly out-of-scope), but I do plan to eventually finish those and add the appropriate unit tests.