Documentation ¶
Index ¶
- type Config
- type Option
- type Tracer
- func (a Tracer) ExtensionName() string
- func (a Tracer) InterceptField(ctx context.Context, next graphql.Resolver) (res interface{}, err error)
- func (a Tracer) InterceptResponse(ctx context.Context, next graphql.ResponseHandler) (r *graphql.Response)
- func (a Tracer) Validate(schema graphql.ExecutableSchema) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
Option specifies instrumentation configuration options.
func WithTracer ¶
WithTracer specifies a tracer to use for creating spans. If none is specified, a tracer named "github.com/rot1024/otelgqlgen" from the global provider is used.
type Tracer ¶
type Tracer struct {
// contains filtered or unexported fields
}
Tracer is an extension for gqlgen to trace GrapGQL operations
func (Tracer) ExtensionName ¶
ExtensionName implements graphql.HandlerExtension
func (Tracer) InterceptField ¶
func (a Tracer) InterceptField(ctx context.Context, next graphql.Resolver) (res interface{}, err error)
InterceptField implements graphql.FieldInterceptor
func (Tracer) InterceptResponse ¶
func (a Tracer) InterceptResponse(ctx context.Context, next graphql.ResponseHandler) (r *graphql.Response)
InterceptResponse implements graphql.ResponseInterceptor
Click to show internal directories.
Click to hide internal directories.