Function
logDiscardedResourceSpans
(batches []*v1.ResourceSpans, userID string, cfg *LogSpansConfig, logger log.Logger)
Source from the content-addressed store, hash-verified
| 841 | } |
| 842 | |
| 843 | func logDiscardedResourceSpans(batches []*v1.ResourceSpans, userID string, cfg *LogSpansConfig, logger log.Logger) { |
| 844 | if !cfg.Enabled { |
| 845 | return |
| 846 | } |
| 847 | loggerWithAtts := logger |
| 848 | loggerWithAtts = log.With( |
| 849 | loggerWithAtts, |
| 850 | "msg", "discarded", |
| 851 | "tenant", userID, |
| 852 | ) |
| 853 | logSpans(batches, cfg, loggerWithAtts) |
| 854 | } |
| 855 | |
| 856 | func logReceivedSpans(batches []*v1.ResourceSpans, cfg *LogSpansConfig, logger log.Logger) { |
| 857 | if !cfg.Enabled { |
Tested by
no test coverage detected