diff --git a/hook/trace/hook.go b/hook/trace/hook.go index 9cd0183..afc456d 100644 --- a/hook/trace/hook.go +++ b/hook/trace/hook.go @@ -33,10 +33,6 @@ func New(options ...Option) *Hook { var _ otsql.Hook = (*Hook)(nil) func (hook *Hook) Before(ctx context.Context, evt *otsql.Event) context.Context { - if !hook.AllowRoot && !trace.SpanFromContext(ctx).IsRecording() { - return ctx - } - switch evt.Method { case otsql.MethodPing: if !hook.Ping {