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