summaryrefslogtreecommitdiff
path: root/rubocop/rubocop-usage-data.yml
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-06-16 18:25:58 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2021-06-16 18:25:58 +0000
commita5f4bba440d7f9ea47046a0a561d49adf0a1e6d4 (patch)
treefb69158581673816a8cd895f9d352dcb3c678b1e /rubocop/rubocop-usage-data.yml
parentd16b2e8639e99961de6ddc93909f3bb5c1445ba1 (diff)
downloadgitlab-ce-a5f4bba440d7f9ea47046a0a561d49adf0a1e6d4.tar.gz
Add latest changes from gitlab-org/gitlab@14-0-stable-eev14.0.0-rc42
Diffstat (limited to 'rubocop/rubocop-usage-data.yml')
-rw-r--r--rubocop/rubocop-usage-data.yml66
1 files changed, 66 insertions, 0 deletions
diff --git a/rubocop/rubocop-usage-data.yml b/rubocop/rubocop-usage-data.yml
index a03f21e491a..2da7b056c2e 100644
--- a/rubocop/rubocop-usage-data.yml
+++ b/rubocop/rubocop-usage-data.yml
@@ -39,6 +39,64 @@ UsageData/LargeTable:
- :arel_table
- :minimum
- :maximum
+UsageData/HistogramWithLargeTable:
+ Enabled: true
+ Include:
+ - 'lib/gitlab/usage_data.rb'
+ - 'ee/lib/ee/gitlab/usage_data.rb'
+ HighTrafficModels: &high_traffic_models # models for all high traffic tables in Migration/UpdateLargeTable
+ - 'AuditEvent'
+ - 'Ci::BuildTraceSection'
+ - 'CommitStatus'
+ - 'Ci::Processable'
+ - 'Ci::Bridge'
+ - 'Ci::Build'
+ - 'GenericCommitStatus'
+ - 'Ci::BuildMetadata'
+ - 'Ci::JobArtifact'
+ - 'Ci::PipelineVariable'
+ - 'Ci::Pipeline'
+ - 'Ci::Stage'
+ - 'Deployment'
+ - 'Event'
+ - 'PushEvent'
+ - 'Issue'
+ - 'MergeRequestDiffCommit'
+ - 'MergeRequestDiffFile'
+ - 'MergeRequestDiff'
+ - 'MergeRequest::Metrics'
+ - 'MergeRequest'
+ - 'NamespaceSetting'
+ - 'Namespace'
+ - 'Group'
+ - 'NoteDiffFile'
+ - 'Note'
+ - 'DiffNote'
+ - 'DiscussionNote'
+ - 'SyntheticNote'
+ - 'LabelNote'
+ - 'MilestoneNote'
+ - 'StateNote'
+ - 'LegacyDiffNote'
+ - 'ProjectAuthorization'
+ - 'Project'
+ - 'ProjectCiCdSetting'
+ - 'ProjectSetting'
+ - 'ProjectFeature'
+ - 'ProtectedBranch'
+ - 'ExportedProtectedBranch'
+ - 'PushEventPayload'
+ - 'ResourceLabelEvent'
+ - 'Route'
+ - 'SentNotification'
+ - 'SystemNoteMetadata'
+ - 'ActsAsTaggableOn::Tagging'
+ - 'Todo'
+ - 'User'
+ - 'UserPreference'
+ - 'UserDetail'
+ - 'Vulnerabilities::Finding'
+ - 'WebHookLog'
UsageData/DistinctCountByLargeForeignKey:
Enabled: true
Include:
@@ -57,3 +115,11 @@ UsageData/DistinctCountByLargeForeignKey:
- 'user_id'
- 'resource_owner_id'
- 'requirement_id'
+UsageData/InstrumentationSuperclass:
+ Enabled: true
+ Include:
+ - 'lib/gitlab/usage/metrics/instrumentations/**/*.rb'
+ AllowedClasses:
+ - :DatabaseMetric
+ - :GenericMetric
+ - :RedisHLLMetric