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

Method Interval

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

Interval the given timestamp within the range and step.

(ts uint64)

Source from the content-addressed store, hash-verified

1714type IntervalMapper interface {
1715 // Interval the given timestamp within the range and step.
1716 Interval(ts uint64) int
1717 // IntervalMs is the same as Bucket except the input and calculations are in unix milliseconds.
1718 IntervalMs(ts int64) int
1719 TimestampOf(interval int) uint64

Callers 6

TestIntervalOfFunction · 0.95
observeMethod · 0.65
ObserveMethod · 0.65
ObserveMethod · 0.65

Implementers 2

IntervalMapperQueryRangepkg/traceql/engine_metrics.go
IntervalMapperInstantpkg/traceql/engine_metrics.go

Calls

no outgoing calls

Tested by 2

TestIntervalOfFunction · 0.76