未验证 提交 fa7e622f 编写于 作者: D dragondriver 提交者: GitHub

Fix trace wrapper StartSpanFromContext (#8826)

Signed-off-by: Ndragondriver <jiquan.long@zilliz.com>
上级 e90610ef
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册