Documentation ¶
Index ¶
- type NoopTracer
- type NoopValidationTracer
- type OpenTracingTracer
- func (OpenTracingTracer) TraceField(ctx context.Context, label, typeName, fieldName string, trivial bool, ...) (context.Context, TraceFieldFinishFunc)
- func (OpenTracingTracer) TraceQuery(ctx context.Context, queryString string, operationName string, ...) (context.Context, TraceQueryFinishFunc)
- func (OpenTracingTracer) TraceValidation(ctx context.Context) TraceValidationFinishFunc
- type TraceFieldFinishFunc
- type TraceQueryFinishFunc
- type TraceValidationFinishFunc
- type Tracer
- type ValidationTracerdeprecated
- type ValidationTracerContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NoopTracer ¶
type NoopTracer struct{}
func (NoopTracer) TraceField ¶
func (NoopTracer) TraceField(ctx context.Context, label, typeName, fieldName string, trivial bool, args map[string]interface{}) (context.Context, TraceFieldFinishFunc)
func (NoopTracer) TraceQuery ¶
func (NoopTracer) TraceQuery(ctx context.Context, queryString string, operationName string, variables map[string]interface{}, varTypes map[string]*introspection.Type) (context.Context, TraceQueryFinishFunc)
type NoopValidationTracer ¶
type NoopValidationTracer struct{}
func (NoopValidationTracer) TraceValidation
deprecated
func (NoopValidationTracer) TraceValidation() TraceValidationFinishFunc
Deprecated: use a Tracer which implements ValidationTracerContext.
type OpenTracingTracer ¶
type OpenTracingTracer struct{}
func (OpenTracingTracer) TraceField ¶
func (OpenTracingTracer) TraceField(ctx context.Context, label, typeName, fieldName string, trivial bool, args map[string]interface{}) (context.Context, TraceFieldFinishFunc)
func (OpenTracingTracer) TraceQuery ¶
func (OpenTracingTracer) TraceQuery(ctx context.Context, queryString string, operationName string, variables map[string]interface{}, varTypes map[string]*introspection.Type) (context.Context, TraceQueryFinishFunc)
func (OpenTracingTracer) TraceValidation ¶
func (OpenTracingTracer) TraceValidation(ctx context.Context) TraceValidationFinishFunc
type TraceFieldFinishFunc ¶
type TraceFieldFinishFunc func(*errors.QueryError)
type TraceQueryFinishFunc ¶
type TraceQueryFinishFunc func([]*errors.QueryError)
type TraceValidationFinishFunc ¶
type TraceValidationFinishFunc = TraceQueryFinishFunc
type Tracer ¶
type Tracer interface { TraceQuery(ctx context.Context, queryString string, operationName string, variables map[string]interface{}, varTypes map[string]*introspection.Type) (context.Context, TraceQueryFinishFunc) TraceField(ctx context.Context, label, typeName, fieldName string, trivial bool, args map[string]interface{}) (context.Context, TraceFieldFinishFunc) }
type ValidationTracer
deprecated
type ValidationTracer interface {
TraceValidation() TraceValidationFinishFunc
}
Deprecated: use ValidationTracerContext.
type ValidationTracerContext ¶
type ValidationTracerContext interface {
TraceValidation(ctx context.Context) TraceValidationFinishFunc
}
Click to show internal directories.
Click to hide internal directories.