diff options
Diffstat (limited to 'rubocop/rubocop-usage-data.yml')
-rw-r--r-- | rubocop/rubocop-usage-data.yml | 66 |
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 |