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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/internal_events.rb')
-rw-r--r--lib/gitlab/internal_events.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/gitlab/internal_events.rb b/lib/gitlab/internal_events.rb
index 12609e9be35..4b0ed90c391 100644
--- a/lib/gitlab/internal_events.rb
+++ b/lib/gitlab/internal_events.rb
@@ -6,6 +6,8 @@ module Gitlab
InvalidPropertyError = Class.new(StandardError)
InvalidPropertyTypeError = Class.new(StandardError)
+ SNOWPLOW_EMITTER_BUFFER_SIZE = 100
+
class << self
include Gitlab::Tracking::Helpers
include Gitlab::Utils::StrongMemoize
@@ -120,7 +122,7 @@ module Gitlab
return unless app_id.present? && host.present?
- GitlabSDK::Client.new(app_id: app_id, host: host)
+ GitlabSDK::Client.new(app_id: app_id, host: host, buffer_size: SNOWPLOW_EMITTER_BUFFER_SIZE)
end
strong_memoize_attr :gitlab_sdk_client
end