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

Method writer

tempodb/backend/azure/azure.go:447–459  ·  view source on GitHub ↗
(ctx context.Context, src io.Reader, name string)

Source from the content-addressed store, hash-verified

445}
446
447func (rw *Azure) writer(ctx context.Context, src io.Reader, name string) error {
448 blobClient := rw.containerClient.NewBlockBlobClient(name)
449
450 _, err := blobClient.UploadStream(ctx, src, &azblob.UploadStreamOptions{
451 BlockSize: int64(rw.cfg.BufferSize),
452 Concurrency: rw.cfg.MaxBuffers,
453 })
454 if err != nil {
455 return fmt.Errorf("cannot upload blob, name: %s: %w", name, err)
456 }
457
458 return nil
459}
460
461func (rw *Azure) readRange(ctx context.Context, name string, offset int64, destBuffer []byte) error {
462 blobClient := rw.hedgedContainerClient.NewBlockBlobClient(name)

Callers 2

WriteMethod · 0.95
writeAllMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected