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

Function alignStart

pkg/traceql/engine_metrics.go:201–210  ·  view source on GitHub ↗

Start time is rounded down to next step

(start, _, step uint64, instant bool)

Source from the content-addressed store, hash-verified

199
200// Start time is rounded down to next step
201func alignStart(start, _, step uint64, instant bool) uint64 {
202 if step == 0 {
203 return 0
204 }
205 if instant {
206 return start
207 }
208
209 return start - start%step
210}
211
212// End time is rounded up to next step
213func alignEnd(_, end, step uint64, instant bool) uint64 {

Callers 4

TrimToBlockOverlapFunction · 0.85
AlignRequestFunction · 0.85
NewIntervalMapperFunction · 0.85
newExemplarBucketSetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected