Introduce additional instrumentation around Git operations #38436
Closed
jamietanna
started this conversation in
Suggest an Idea
Replies: 4 comments 3 replies
-
|
sounds good to me |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
We should also add the OTEL spans for these operations too. |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
How would something like: res = await instrument('other', async () => {
await git.raw(['rev-parse', '--abbrev-ref', 'origin/HEAD']);
})look/feel? The Not quite sure what we'd want to do for the span name - require the caller set it? Use the |
Beta Was this translation helpful? Give feedback.
2 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
Tell us more.
As part of #38346, we're introducing a new option to perform shallow cloning on repositories, as an alternative to blobless cloning.
As there are performance trade-offs of both options, it would be great to provide self-hosters the ability to understand which option is better for them, by providing more meaningful information in Renovate's debug logs (as a
...Statstype underlib/util/stats.ts).This would provide a clearer understanding about which operations do actually take the most time, and help clarify for users testing out the differences in shallow clones and blobless clones which one makes sense for their workload.
This would look something like:
As an ideal case, we'd provide a wrapper around SimpleGit, which would auto-instrument each of the operations, which would provide a more ergonomic experience for contributions, as well as more centrally tweaking the configuration.
Beta Was this translation helpful? Give feedback.
All reactions