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

Method peekID

tempodb/encoding/vparquet5/multiblock_iterator.go:128–136  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

126}
127
128func (b *bookmark[T]) peekID(ctx context.Context) (common.ID, error) {
129 nextID, err := b.iter.peekNextID(ctx)
130 if !errors.Is(err, util.ErrUnsupported) {
131 return nextID, err
132 }
133
134 id, _, err := b.current(ctx)
135 return id, err
136}
137
138func (b *bookmark[T]) current(ctx context.Context) (common.ID, T, error) {
139 if b.currentErr != nil {

Callers 1

NextMethod · 0.45

Calls 2

currentMethod · 0.95
peekNextIDMethod · 0.65

Tested by

no test coverage detected