MCPcopy
hub / github.com/zincsearch/zincsearch / Event

Method Event

pkg/core/telemetry.go:121–139  ·  view source on GitHub ↗
(event string, data map[string]interface{})

Source from the content-addressed store, hash-verified

119}
120
121func (t *telemetry) Event(event string, data map[string]interface{}) {
122 if !config.Global.TelemetryEnable {
123 return
124 }
125
126 props := analytics.NewProperties()
127 for k, v := range t.baseInfo {
128 props.Set(k, v)
129 }
130 for k, v := range data {
131 props.Set(k, v)
132 }
133
134 t.events <- analytics.Track{
135 UserId: t.GetInstanceID(),
136 Event: event,
137 Properties: props,
138 }
139}
140
141func (t *telemetry) runEvents() {
142 for event := range t.events {

Callers 5

HeartBeatMethod · 0.95
TestTelemetryFunction · 0.80
SearchV1Function · 0.80
SearchDSLFunction · 0.80
telemetryFunction · 0.80

Calls 2

GetInstanceIDMethod · 0.95
SetMethod · 0.65

Tested by 1

TestTelemetryFunction · 0.64