mirror of https://github.com/milvus-io/milvus.git
Fix trace wrapper StartSpanFromContext (#8826)
Signed-off-by: dragondriver <jiquan.long@zilliz.com>pull/8843/head
parent
e90610ef76
commit
fa7e622f93
|
@ -71,7 +71,7 @@ func initFromEnv(serviceName string) *config.Configuration {
|
|||
// StartSpanFromContext starts a opentracing span. The default operation name is
|
||||
// upper two call stacks of the function
|
||||
func StartSpanFromContext(ctx context.Context, opts ...opentracing.StartSpanOption) (opentracing.Span, context.Context) {
|
||||
return StartSpanFromContextWithSkip(ctx, 2, opts...)
|
||||
return StartSpanFromContextWithSkip(ctx, 3, opts...)
|
||||
}
|
||||
|
||||
// StartSpanFromContextWithSkip starts a opentracing span with call skip. The operation
|
||||
|
|
Loading…
Reference in New Issue