Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Cai <jcai@gitlab.com>2023-03-29 22:01:09 +0300
committerJohn Cai <jcai@gitlab.com>2023-03-29 22:01:09 +0300
commit0b31e634f58b0495a20eaa00b588714dfdefefd7 (patch)
treecaab1cd611ad4796f58857ab4eae827a8677a73f /internal/testhelper
parentd41dacd832cc71860f8e069647b539880263392c (diff)
parent85249660e66b596d69d4c95d3fe8bb64af5c83ab (diff)
Merge branch 'qmnguyen0711/implement-trace2-pack-file-metrics' into 'master'
Trace2: Expose internal pack objects metrics with trace2 See merge request https://gitlab.com/gitlab-org/gitaly/-/merge_requests/5442 Merged-by: John Cai <jcai@gitlab.com> Approved-by: John Cai <jcai@gitlab.com> Reviewed-by: Patrick Steinhardt <psteinhardt@gitlab.com> Reviewed-by: Quang-Minh Nguyen <qmnguyen@gitlab.com> Co-authored-by: Quang-Minh Nguyen <qmnguyen@gitlab.com>
Diffstat (limited to 'internal/testhelper')
-rw-r--r--internal/testhelper/testhelper.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/testhelper/testhelper.go b/internal/testhelper/testhelper.go
index 9f810c58d..db19842c9 100644
--- a/internal/testhelper/testhelper.go
+++ b/internal/testhelper/testhelper.go
@@ -204,8 +204,9 @@ func ContextWithoutCancel(opts ...ContextOpt) context.Context {
// Randomly enable the use of the catfile cache in localrepo.ReadObject.
ctx = featureflag.ContextWithFeatureFlag(ctx, featureflag.LocalrepoReadObjectCached, rnd.Int()%2 == 0)
- // Randomly enable the use of trace2 tracing exporter.
+ // Randomly enable the use of trace2 flags
ctx = featureflag.ContextWithFeatureFlag(ctx, featureflag.ExportTrace2Tracing, rnd.Int()%2 == 0)
+ ctx = featureflag.ContextWithFeatureFlag(ctx, featureflag.ExportTrace2PackObjectsMetrics, rnd.Int()%2 == 0)
for _, opt := range opts {
ctx = opt(ctx)