-
Notifications
You must be signed in to change notification settings - Fork 490
/
Copy pathtrace.go
25 lines (19 loc) · 983 Bytes
/
trace.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// The trace package provides tracing functionality.
// Deprecated: this package has been deprecated. Use package trace/tracer instead.
package trace
import (
"github.com/graph-gophers/graphql-go/errors"
"github.com/graph-gophers/graphql-go/trace/noop"
"github.com/graph-gophers/graphql-go/trace/opentracing"
"github.com/graph-gophers/graphql-go/trace/tracer"
)
// Deprecated: this type has been deprecated. Use [tracer.QueryFinishFunc] instead.
type TraceQueryFinishFunc = func([]*errors.QueryError)
// Deprecated: this type has been deprecated. Use [tarcer.FieldFinishFunc] instead.
type TraceFieldFinishFunc = func(*errors.QueryError)
// Deprecated: this interface has been deprecated. Use [tracer.Tracer] instead.
type Tracer = tracer.Tracer
// Deprecated: this type has been deprecated. Use [opentracing.Tracer] instead.
type OpenTracingTracer = opentracing.Tracer
// Deprecated: this type has been deprecated. Use [noop.Tracer] instead.
type NoopTracer = noop.Tracer