context.Context
should be the first param RVV-A000250 }
51}
52
53func (builder *FilterChainBuilder) buildSpan(span opentracing.Span, ctx context.Context, inv *orm.Invocation) {54 span.SetTag("orm.method", inv.Method)
55 span.SetTag("orm.table", inv.GetTableName())
56 span.SetTag("orm.insideTx", inv.InsideTx)
63}
64
65func (builder *FilterChainBuilder) report(startTime time.Time, endTime time.Time,
66 ctx context.Context, req *httplib.BeegoHTTPRequest, resp *http.Response, err error) {67
68 proto := req.GetRequest().Proto
69
context.Context
should be the first parameter of a function.
func badPatternFunc(k favContextKey, ctx context.Context) {
// do something
}
func goodPatternFunc(ctx context.Context, k favContextKey) {
// do something
}