Skip to content

Commit

Permalink
feat(trace): with remote span is sampled
Browse files Browse the repository at this point in the history
  • Loading branch information
j2gg0s committed Aug 2, 2022
1 parent 2b15d94 commit cc61ea0
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions hook/trace/hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit cc61ea0

Please sign in to comment.