Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
SigNoz
Commits
1d0294c3
Commit
1d0294c3
authored
3 years ago
by
Ankit Nayan
Browse files
Options
Download
Email Patches
Plain Diff
chore: changes in params
parent
2748cb4b
chore-telemetry
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pkg/query-service/app/http_handler.go
+3
-3
pkg/query-service/app/http_handler.go
pkg/query-service/app/server.go
+1
-1
pkg/query-service/app/server.go
with
4 additions
and
4 deletions
+4
-4
pkg/query-service/app/http_handler.go
+
3
-
3
View file @
1d0294c3
...
...
@@ -652,7 +652,7 @@ func (aH *APIHandler) submitFeedback(w http.ResponseWriter, r *http.Request) {
email
:=
postData
[
"email"
]
(
*
aH
.
pc
)
.
Enqueue
(
analytics
.
Track
{
UserId
:
aH
.
distinctId
,
UserId
:
aH
.
ipAddress
,
Event
:
"InProduct Feeback Submitted"
,
Properties
:
analytics
.
NewProperties
()
.
Set
(
"email"
,
email
)
.
Set
(
"message"
,
message
)
.
Set
(
"ip"
,
aH
.
ipAddress
),
})
...
...
@@ -669,7 +669,7 @@ func (aH *APIHandler) user(w http.ResponseWriter, r *http.Request) {
}
(
*
aH
.
pc
)
.
Enqueue
(
analytics
.
Identify
{
UserId
:
aH
.
distinctId
,
UserId
:
aH
.
ipAddress
,
Traits
:
analytics
.
NewTraits
()
.
SetName
(
user
.
Name
)
.
SetEmail
(
user
.
Email
)
.
Set
(
"ip"
,
aH
.
ipAddress
),
})
...
...
@@ -848,7 +848,7 @@ func (aH *APIHandler) getServices(w http.ResponseWriter, r *http.Request) {
}
(
*
aH
.
pc
)
.
Enqueue
(
analytics
.
Track
{
UserId
:
aH
.
distinctId
,
UserId
:
aH
.
ipAddress
,
Event
:
"Number of Services"
,
Properties
:
analytics
.
NewProperties
()
.
Set
(
"number"
,
len
(
*
result
))
.
Set
(
"ip"
,
aH
.
ipAddress
),
})
...
...
This diff is collapsed.
Click to expand it.
pkg/query-service/app/server.go
+
1
-
1
View file @
1d0294c3
...
...
@@ -176,7 +176,7 @@ func (s *Server) analyticsMiddleware(next http.Handler) http.Handler {
(
*
s
.
analyticsClient
)
.
Enqueue
(
analytics
.
Track
{
Event
:
path
,
UserId
:
s
.
distinctId
,
UserId
:
s
.
ipAddress
,
Properties
:
analytics
.
NewProperties
()
.
Set
(
"ip"
,
s
.
ipAddress
),
})
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
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
Menu
Projects
Groups
Snippets
Help