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

Method RecordDiscardedSpans

modules/backendworker/backendworker.go:488–492  ·  view source on GitHub ↗
(count int, tenantID string, traceID string, rootSpanName string, rootServiceName string)

Source from the content-addressed store, hash-verified

486}
487
488func (w *BackendWorker) RecordDiscardedSpans(count int, tenantID string, traceID string, rootSpanName string, rootServiceName string) {
489 level.Warn(log.Logger).Log("msg", "max size of trace exceeded", "tenant", tenantID, "traceId", traceID,
490 "rootSpanName", rootSpanName, "rootServiceName", rootServiceName, "discarded_span_count", count)
491 overrides.RecordDiscardedSpans(count, overrides.ReasonCompactorDiscardedSpans, tenantID)
492}
493
494// BlockRetentionForTenant implements CompactorOverrides
495func (w *BackendWorker) BlockRetentionForTenant(tenantID string) time.Duration {

Callers

nothing calls this directly

Calls 2

RecordDiscardedSpansFunction · 0.92
LogMethod · 0.65

Tested by

no test coverage detected