mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-06-25 07:45:01 +00:00
.
This commit is contained in:
parent
e883358cd6
commit
360a4ea562
@ -8,6 +8,8 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
const telemetryUrl = "https://us-east4-up9-prod.cloudfunctions.net/mizu-telemetry"
|
||||||
|
|
||||||
func ReportRun(cmd string, args interface{}) {
|
func ReportRun(cmd string, args interface{}) {
|
||||||
if Branch != "main" {
|
if Branch != "main" {
|
||||||
rlog.Debugf("reporting only on main branch")
|
rlog.Debugf("reporting only on main branch")
|
||||||
@ -25,7 +27,7 @@ func ReportRun(cmd string, args interface{}) {
|
|||||||
|
|
||||||
jsonValue, _ := json.Marshal(argsMap)
|
jsonValue, _ := json.Marshal(argsMap)
|
||||||
|
|
||||||
if resp, err := http.Post("https://us-east4-up9-prod.cloudfunctions.net/mizu-telemetry",
|
if resp, err := http.Post(telemetryUrl,
|
||||||
"application/json", bytes.NewBuffer(jsonValue)); err != nil {
|
"application/json", bytes.NewBuffer(jsonValue)); err != nil {
|
||||||
rlog.Debugf("error sending telemetry err: %v, response %v", err, resp)
|
rlog.Debugf("error sending telemetry err: %v, response %v", err, resp)
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user