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

Method readAll

tempodb/backend/s3/s3.go:636–647  ·  view source on GitHub ↗
(ctx context.Context, name string)

Source from the content-addressed store, hash-verified

634}
635
636func (rw *readerWriter) readAll(ctx context.Context, name string) ([]byte, error) {
637 options := getObjectOptions(rw)
638 reader, info, _, err := rw.hedgedCore.GetObject(ctx, rw.cfg.Bucket, name, options)
639 if err != nil {
640 // do not change or wrap this error
641 // we need to compare the specific err message
642 return nil, err
643 }
644 defer reader.Close()
645
646 return tempo_io.ReadAllWithEstimate(reader, info.Size)
647}
648
649func (rw *readerWriter) readAllWithObjInfo(ctx context.Context, name string) ([]byte, minio.ObjectInfo, error) {
650 options := getObjectOptions(rw)

Callers 1

ReadMethod · 0.95

Calls 2

getObjectOptionsFunction · 0.85
CloseMethod · 0.65

Tested by

no test coverage detected