Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
f016601b
Commit
f016601b
authored
Sep 24, 2019
by
Jeremy Jackson
Committed by
Lin Jen-Shin
Sep 24, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Switch tracking to use the AsyncEmitter
parent
e12a355c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
lib/gitlab/tracking.rb
lib/gitlab/tracking.rb
+1
-1
spec/lib/gitlab/tracking_spec.rb
spec/lib/gitlab/tracking_spec.rb
+2
-2
No files found.
lib/gitlab/tracking.rb
View file @
f016601b
...
...
@@ -33,7 +33,7 @@ module Gitlab
def
snowplow
@snowplow
||=
SnowplowTracker
::
Tracker
.
new
(
SnowplowTracker
::
Emitter
.
new
(
Gitlab
::
CurrentSettings
.
snowplow_collector_hostname
),
SnowplowTracker
::
AsyncEmitter
.
new
(
Gitlab
::
CurrentSettings
.
snowplow_collector_hostname
,
protocol:
'https'
),
SnowplowTracker
::
Subject
.
new
,
SNOWPLOW_NAMESPACE
,
Gitlab
::
CurrentSettings
.
snowplow_site_id
...
...
spec/lib/gitlab/tracking_spec.rb
View file @
f016601b
...
...
@@ -49,8 +49,8 @@ describe Gitlab::Tracking do
it
'can track events'
do
tracker
=
double
expect
(
SnowplowTracker
::
Emitter
).
to
receive
(
:new
).
with
(
'gitfoo.com'
expect
(
SnowplowTracker
::
Async
Emitter
).
to
receive
(
:new
).
with
(
'gitfoo.com'
,
{
protocol:
'https'
}
).
and_return
(
'_emitter_'
)
expect
(
SnowplowTracker
::
Tracker
).
to
receive
(
:new
).
with
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment