- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for SetReqInfo (0.15 sec)
-
internal/logger/reqinfo.go
return } if tagsMap == nil { return } r.RLock() defer r.RUnlock() for _, t := range r.tags { tagsMap[t.Key] = t.Val } return } // SetReqInfo sets ReqInfo in the context. func SetReqInfo(ctx context.Context, req *ReqInfo) context.Context { if ctx == nil { LogIf(context.Background(), "", fmt.Errorf("context is nil")) return nil }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Aug 13 22:22:04 UTC 2024 - 4.4K bytes - Viewed (0) -
internal/event/targetlist.go
if err := target.Save(event); err != nil { list.eventsErrorsTotal.Add(1) list.incFailedEvents(id) reqInfo := &logger.ReqInfo{} reqInfo.AppendTags("targetID", id.String()) logger.LogOnceIf(logger.SetReqInfo(context.Background(), reqInfo), logSubsys, err, id.String()) } }(id, target) } wg.Wait() list.totalEvents.Add(1) } func (list *TargetList) sendAsync(event Event, targetIDset TargetIDSet) {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 9.2K bytes - Viewed (0)