Skip to content

Commit

Permalink
merge master
Browse files Browse the repository at this point in the history
  • Loading branch information
vvakame committed Nov 2, 2018
1 parent c936890 commit 59ef91a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions gqlopencensus/tracer.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,20 @@ func New(opts ...Option) graphql.Tracer {

type tracerImpl int

func (tracerImpl) StartOperationParsing(ctx context.Context) context.Context {
return ctx
}

func (tracerImpl) EndOperationParsing(ctx context.Context) {
}

func (tracerImpl) StartOperationValidation(ctx context.Context) context.Context {
return ctx
}

func (tracerImpl) EndOperationValidation(ctx context.Context) {
}

func (tracerImpl) StartOperationExecution(ctx context.Context) context.Context {
ctx, span := trace.StartSpan(ctx, operationName(ctx))
if !span.IsRecordingEvents() {
Expand Down

0 comments on commit 59ef91a

Please sign in to comment.