fix
This commit is contained in:
1 parent
e81b8c2fcd
commit
0052822e49
7 files changed
+94
-1
No files matched your search
@@ -227,6 +227,14 @@ func (t *Tracker) Record(kind, service, title string, sample Sample) {
|
||||
}
|
||||
}
|
||||
|
||||
// Restore records an occurrence loaded from the persistent occurrence store.
|
||||
// It deliberately does not invoke the occurrence sink, avoiding duplicate
|
||||
// writes while rebuilding the in-memory index during startup.
|
||||
func (t *Tracker) Restore(kind, service, title string, sample Sample) {
|
||||
normalizeSample(&sample, title)
|
||||
_, _ = t.record(kind, service, title, sample)
|
||||
}
|
||||
|
||||
func (t *Tracker) record(kind, service, title string, sample Sample) (string, OccurrenceSink) {
|
||||
id := Fingerprint(kind, service, NormalizeTitle(title))
|
||||
bucket := HourBucket(sample.Timestamp)
|
||||
|
||||
Reference in new issue
Block a user