trace.go 302 B

1234567891011
  1. package tracespec
  2. import "context"
  3. // Trace interface represents a tracing.
  4. type Trace interface {
  5. SpanContext
  6. Finish()
  7. Fork(ctx context.Context, serviceName, operationName string) (context.Context, Trace)
  8. Follow(ctx context.Context, serviceName, operationName string) (context.Context, Trace)
  9. }