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

Function bounds

pkg/api/http.go:507–514  ·  view source on GitHub ↗
(vals url.Values)

Source from the content-addressed store, hash-verified

505}
506
507func bounds(vals url.Values) (time.Time, time.Time, error) {
508 var (
509 now = time.Now()
510 start, end, since = extractDateRangeParams(vals)
511 )
512
513 return determineBounds(now, start, end, since)
514}
515
516func determineBounds(now time.Time, startString, endString, sinceString string) (time.Time, time.Time, error) {
517 since := defaultSince

Callers 2

ParseQueryInstantRequestFunction · 0.85
ParseQueryRangeRequestFunction · 0.85

Calls 3

extractDateRangeParamsFunction · 0.85
determineBoundsFunction · 0.85
NowMethod · 0.65

Tested by

no test coverage detected