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

Fix trace wrapper to catch the correct file name and line number (#8760)

Signed-off-by: Ndragondriver <jiquan.long@zilliz.com>
上级 38a94a10
......@@ -108,7 +108,7 @@ func StartSpanFromContextWithSkip(ctx context.Context, skip int, opts ...opentra
// StartSpanFromContextWithOperationName starts a opentracing span with specific operation name.
// And will log print the current call line number and file name.
func StartSpanFromContextWithOperationName(ctx context.Context, operationName string, opts ...opentracing.StartSpanOption) (opentracing.Span, context.Context) {
return StartSpanFromContextWithOperationNameWithSkip(ctx, operationName, 2, opts...)
return StartSpanFromContextWithOperationNameWithSkip(ctx, operationName, 3, opts...)
}
// StartSpanFromContextWithOperationNameWithSkip starts a opentracing span with specific operation name.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册