From 3629aac84ff13a8e330910c0924e29bcb831d5b3 Mon Sep 17 00:00:00 2001 From: Richard Scothern Date: Tue, 30 Jun 2015 10:28:14 -0700 Subject: [PATCH] Pass correct context into tracer Signed-off-by: Richard Scothern --- registry/storage/driver/base/base.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/registry/storage/driver/base/base.go b/registry/storage/driver/base/base.go index ae28b1876..60af06b86 100644 --- a/registry/storage/driver/base/base.go +++ b/registry/storage/driver/base/base.go @@ -64,7 +64,7 @@ func (base *Base) GetContent(ctx context.Context, path string) ([]byte, error) { // PutContent wraps PutContent of underlying storage driver. func (base *Base) PutContent(ctx context.Context, path string, content []byte) error { - ctx, done := context.WithTrace(context.Background()) + ctx, done := context.WithTrace(ctx) defer done("%s.PutContent(%q)", base.Name(), path) if !storagedriver.PathRegexp.MatchString(path) { @@ -76,7 +76,7 @@ func (base *Base) PutContent(ctx context.Context, path string, content []byte) e // ReadStream wraps ReadStream of underlying storage driver. func (base *Base) ReadStream(ctx context.Context, path string, offset int64) (io.ReadCloser, error) { - ctx, done := context.WithTrace(context.Background()) + ctx, done := context.WithTrace(ctx) defer done("%s.ReadStream(%q, %d)", base.Name(), path, offset) if offset < 0 {