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

Function readError

tempodb/backend/azure/azure.go:106–115  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

104}
105
106func readError(err error) error {
107 if bloberror.HasCode(err, bloberror.BlobNotFound) {
108 return backend.ErrDoesNotExist
109 }
110
111 if err != nil {
112 return fmt.Errorf("reading Azure blob container: %w", err)
113 }
114 return nil
115}
116
117// Write implements backend.Writer
118func (rw *Azure) Write(ctx context.Context, name string, keypath backend.KeyPath, data io.Reader, _ int64, _ *backend.CacheInfo) error {

Callers 6

CompactedBlockMetaMethod · 0.70
DeleteMethod · 0.70
ReadMethod · 0.70
ReadRangeMethod · 0.70
ReadVersionedMethod · 0.70
TestReadErrorFunction · 0.70

Calls

no outgoing calls

Tested by 1

TestReadErrorFunction · 0.56