Pass correct context into tracer
Signed-off-by: Richard Scothern <richard.scothern@gmail.com>master
							parent
							
								
									702d9ddcbc
								
							
						
					
					
						commit
						3629aac84f
					
				| 
						 | 
					@ -64,7 +64,7 @@ func (base *Base) GetContent(ctx context.Context, path string) ([]byte, error) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// PutContent wraps PutContent of underlying storage driver.
 | 
					// PutContent wraps PutContent of underlying storage driver.
 | 
				
			||||||
func (base *Base) PutContent(ctx context.Context, path string, content []byte) error {
 | 
					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)
 | 
						defer done("%s.PutContent(%q)", base.Name(), path)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if !storagedriver.PathRegexp.MatchString(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.
 | 
					// ReadStream wraps ReadStream of underlying storage driver.
 | 
				
			||||||
func (base *Base) ReadStream(ctx context.Context, path string, offset int64) (io.ReadCloser, error) {
 | 
					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)
 | 
						defer done("%s.ReadStream(%q, %d)", base.Name(), path, offset)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if offset < 0 {
 | 
						if offset < 0 {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue