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

Function startEndFromSpan

modules/distributor/distributor.go:915–917  ·  view source on GitHub ↗

startEndFromSpan returns a unix epoch timestamp in seconds for the start and end of a span

(span *v1.Span)

Source from the content-addressed store, hash-verified

913
914// startEndFromSpan returns a unix epoch timestamp in seconds for the start and end of a span
915func startEndFromSpan(span *v1.Span) (uint32, uint32) {
916 return uint32(span.StartTimeUnixNano / uint64(time.Second)), uint32(span.EndTimeUnixNano / uint64(time.Second))
917}
918
919func (d *Distributor) getMaxAttributeBytes(userID string) int {
920 if tenantMaxAttrByte := d.overrides.IngestionMaxAttributeBytes(userID); tenantMaxAttrByte > 0 {

Callers 1

requestsByTraceIDFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected