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

Method Write

tempodb/backend/azure/azure.go:118–125  ·  view source on GitHub ↗

Write implements backend.Writer

(ctx context.Context, name string, keypath backend.KeyPath, data io.Reader, _ int64, _ *backend.CacheInfo)

Source from the content-addressed store, hash-verified

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 {
119 keypath = backend.KeyPathWithPrefix(keypath, rw.cfg.Prefix)
120
121 derivedCtx, span := tracer.Start(ctx, "azure.Write")
122 defer span.End()
123
124 return rw.writer(derivedCtx, bufio.NewReader(data), backend.ObjectFileName(keypath, name))
125}
126
127// Append implements backend.Writer
128func (rw *Azure) Append(ctx context.Context, name string, keypath backend.KeyPath, tracker backend.AppendTracker, buffer []byte) (backend.AppendTracker, error) {

Callers 1

WriteVersionedMethod · 0.95

Calls 4

writerMethod · 0.95
KeyPathWithPrefixFunction · 0.92
ObjectFileNameFunction · 0.92
StartMethod · 0.65

Tested by

no test coverage detected