[skip e2e] Improve annotation (#14979)

Signed-off-by: Xieql <qianglong.xie@zilliz.com>
This commit is contained in:
Xieql 2022-01-07 14:01:50 +08:00 committed by GitHub
parent 0700312a4e
commit 5109b88552
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -108,7 +108,7 @@ func StartSpanFromContextWithSkip(ctx context.Context, skip int, opts ...opentra
return span, opentracing.ContextWithSpan(ctx, span) return span, opentracing.ContextWithSpan(ctx, span)
} }
// StartSpanFromContextWithOperationName starts a opentracing span with specific operation name. // StartSpanFromContextWithOperationName starts an opentracing span with specific operation name.
// And will log print the current call line number and file 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) { func StartSpanFromContextWithOperationName(ctx context.Context, operationName string, opts ...opentracing.StartSpanOption) (opentracing.Span, context.Context) {
return StartSpanFromContextWithOperationNameWithSkip(ctx, operationName, 3, opts...) return StartSpanFromContextWithOperationNameWithSkip(ctx, operationName, 3, opts...)