Documentation
¶
Index ¶
- type MetricEmitter
- func (t MetricEmitter) ExtensionName() string
- func (t MetricEmitter) InterceptField(ctx context.Context, next graphql.Resolver) (interface{}, error)
- func (t MetricEmitter) InterceptOperation(ctx context.Context, next graphql.OperationHandler) graphql.ResponseHandler
- func (t MetricEmitter) InterceptResponse(ctx context.Context, next graphql.ResponseHandler) *graphql.Response
- func (t MetricEmitter) Validate(schema graphql.ExecutableSchema) error
- type Tracer
- func (t Tracer) ExtensionName() string
- func (t Tracer) InterceptField(ctx context.Context, next graphql.Resolver) (interface{}, error)
- func (t Tracer) InterceptResponse(ctx context.Context, next graphql.ResponseHandler) *graphql.Response
- func (t Tracer) Validate(schema graphql.ExecutableSchema) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MetricEmitter ¶
type MetricEmitter struct{}
A MetricEmitter that exports OpenTelemetry metrics.
func (MetricEmitter) ExtensionName ¶
func (t MetricEmitter) ExtensionName() string
ExtensionName of this extension.
func (MetricEmitter) InterceptField ¶
func (t MetricEmitter) InterceptField(ctx context.Context, next graphql.Resolver) (interface{}, error)
InterceptField to produce metrics .
func (MetricEmitter) InterceptOperation ¶
func (t MetricEmitter) InterceptOperation(ctx context.Context, next graphql.OperationHandler) graphql.ResponseHandler
InterceptOperation to produce metrics .
func (MetricEmitter) InterceptResponse ¶
func (t MetricEmitter) InterceptResponse(ctx context.Context, next graphql.ResponseHandler) *graphql.Response
InterceptResponse to produce metrics .
func (MetricEmitter) Validate ¶
func (t MetricEmitter) Validate(schema graphql.ExecutableSchema) error
Validate this extension (a no-op).
type Tracer ¶
type Tracer struct{}
A Tracer that exports OpenTelemetry traces.
func (Tracer) ExtensionName ¶
ExtensionName of this extension.
func (Tracer) InterceptField ¶
InterceptField to produce traces.
func (Tracer) InterceptResponse ¶
func (t Tracer) InterceptResponse(ctx context.Context, next graphql.ResponseHandler) *graphql.Response
InterceptResponse to produce traces.
Click to show internal directories.
Click to hide internal directories.