add trace context

This commit is contained in:
Asim Aslam
2020-01-24 21:44:48 +00:00
parent 2d28ff72d7
commit a997a86e49
2 changed files with 5 additions and 5 deletions

View File

@@ -9,7 +9,7 @@ import (
// Trace is an interface for distributed tracing
type Trace interface {
// Start a trace
Start(ctx context.Context, name string) *Span
Start(ctx context.Context, name string) (context.Context, *Span)
// Finish the trace
Finish(*Span) error
// Read the traces