otel

package
v1.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 19, 2023 License: BSD-2-Clause Imports: 8 Imported by: 0

Documentation

Overview

The otel package provides tracing functionality using OpenTelemetry.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tracer

type Tracer struct {
	Tracer oteltrace.Tracer
}

Tracer is an OpenTelemetry implementation for graphql-go. Set the Tracer property to your tracer instance as required.

func DefaultTracer

func DefaultTracer() *Tracer

DefaultTracer creates a tracer using a default name.

func (*Tracer) TraceField

func (t *Tracer) TraceField(ctx context.Context, label, typeName, fieldName string, trivial bool, args map[string]interface{}) (context.Context, func(*errors.QueryError))

func (*Tracer) TraceQuery

func (t *Tracer) TraceQuery(ctx context.Context, queryString string, operationName string, variables map[string]interface{}, varTypes map[string]*introspection.Type) (context.Context, func([]*errors.QueryError))

func (*Tracer) TraceValidation

func (t *Tracer) TraceValidation(ctx context.Context) func([]*errors.QueryError)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL