Fix trace wrapper StartSpanFromContext (#8826)

Signed-off-by: dragondriver <jiquan.long@zilliz.com>
pull/8843/head
dragondriver 2021-09-29 14:22:00 +08:00 committed by GitHub
parent e90610ef76
commit fa7e622f93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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