mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-13 09:50:00 +08:00
initial import
This commit is contained in:
10
core/trace/tracespec/trace.go
Normal file
10
core/trace/tracespec/trace.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package tracespec
|
||||
|
||||
import "context"
|
||||
|
||||
type Trace interface {
|
||||
SpanContext
|
||||
Finish()
|
||||
Fork(ctx context.Context, serviceName, operationName string) (context.Context, Trace)
|
||||
Follow(ctx context.Context, serviceName, operationName string) (context.Context, Trace)
|
||||
}
|
||||
Reference in New Issue
Block a user