MCPcopy Index your code
hub / github.com/coder/coder / newTelemetryStore

Function newTelemetryStore

tailnet/telemetry.go:51–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49}
50
51func newTelemetryStore() (*TelemetryStore, error) {
52 hashSalt, err := cryptorand.String(16)
53 if err != nil {
54 return nil, err
55 }
56 return &TelemetryStore{
57 hashSalt: hashSalt,
58 hashCache: make(map[string]string),
59 }, nil
60}
61
62// newEvent returns the current telemetry state as an event
63func (b *TelemetryStore) newEvent() *proto.TelemetryEvent {

Callers 2

NewConnFunction · 0.85
TestTelemetryStoreFunction · 0.85

Calls 1

StringFunction · 0.92

Tested by 1

TestTelemetryStoreFunction · 0.68