MCPcopy
hub / github.com/grafana/tempo / logDiscardedResourceSpans

Function logDiscardedResourceSpans

modules/distributor/distributor.go:843–854  ·  view source on GitHub ↗
(batches []*v1.ResourceSpans, userID string, cfg *LogSpansConfig, logger log.Logger)

Source from the content-addressed store, hash-verified

841}
842
843func 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
856func logReceivedSpans(batches []*v1.ResourceSpans, cfg *LogSpansConfig, logger log.Logger) {
857 if !cfg.Enabled {

Callers 1

PushTracesMethod · 0.85

Calls 1

logSpansFunction · 0.85

Tested by

no test coverage detected