Documentation ¶
Index ¶
- type Config
- type GraphqlTracer
- func (a GraphqlTracer) ExtensionName() string
- func (a GraphqlTracer) InterceptField(ctx context.Context, next graphql.Resolver) (interface{}, error)
- func (a GraphqlTracer) InterceptOperation(ctx context.Context, next graphql.OperationHandler) graphql.ResponseHandler
- func (a GraphqlTracer) Validate(_ graphql.ExecutableSchema) error
- type OtlpTracerProvider
- type ShutdownTracerProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GraphqlTracer ¶
type GraphqlTracer struct { DisableNonResolverBindingTrace bool OperationName string // contains filtered or unexported fields }
func NewTraceExtension ¶
func NewTraceExtension(provider ShutdownTracerProvider) *GraphqlTracer
func (GraphqlTracer) ExtensionName ¶
func (a GraphqlTracer) ExtensionName() string
func (GraphqlTracer) InterceptField ¶
func (GraphqlTracer) InterceptOperation ¶
func (a GraphqlTracer) InterceptOperation(ctx context.Context, next graphql.OperationHandler) graphql.ResponseHandler
func (GraphqlTracer) Validate ¶
func (a GraphqlTracer) Validate(_ graphql.ExecutableSchema) error
type OtlpTracerProvider ¶
type OtlpTracerProvider struct {
*tracesdk.TracerProvider
}
type ShutdownTracerProvider ¶
type ShutdownTracerProvider interface { Tracer(name string) trace.Tracer Shutdown(ctx context.Context) error }
func NewTraceProvider ¶
func NewTraceProvider(config *Config) (ShutdownTracerProvider, error)
NewTraceProvider returns an OpenTelemetry ShutdownTracerProvider configured to use the Jaeger exporter that will send spans to the provided url. The returned ShutdownTracerProvider will also use a Resource configured with all the information about the application.
Click to show internal directories.
Click to hide internal directories.