Documentation ¶
Overview ¶
Base on https://github.com/99designs/gqlgen-contrib/blob/master/gqlopentracing/tracer.go, contains the following modifications:
- shortens the name of the span created in StartOperationExecution method
- full graphQL query is stored in graphQL.query span tag
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
New returns Tracer for OpenTracing. see https://opentracing.io/
Types ¶
type OpentracingHandler ¶
type OpentracingHandler http.HandlerFunc
func NewWithParentSpan ¶
func NewWithParentSpan(spanName string, next http.HandlerFunc) OpentracingHandler
Click to show internal directories.
Click to hide internal directories.