apollotracing

package
v0.17.60 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: MIT Imports: 5 Imported by: 27

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResolverExecution

type ResolverExecution struct {
	Path        ast.Path      `json:"path"`
	ParentType  string        `json:"parentType"`
	FieldName   string        `json:"fieldName"`
	ReturnType  string        `json:"returnType"`
	StartOffset time.Duration `json:"startOffset"`
	Duration    time.Duration `json:"duration"`
}

type Span

type Span struct {
	StartOffset time.Duration `json:"startOffset"`
	Duration    time.Duration `json:"duration"`
}

type Tracer

type Tracer struct{}

func (Tracer) ExtensionName

func (Tracer) ExtensionName() string

func (Tracer) InterceptField

func (Tracer) InterceptField(ctx context.Context, next graphql.Resolver) (any, error)

func (Tracer) InterceptResponse

func (Tracer) InterceptResponse(ctx context.Context, next graphql.ResponseHandler) *graphql.Response

func (Tracer) Validate

type TracingExtension

type TracingExtension struct {
	Version    int           `json:"version"`
	StartTime  time.Time     `json:"startTime"`
	EndTime    time.Time     `json:"endTime"`
	Duration   time.Duration `json:"duration"`
	Parsing    Span          `json:"parsing"`
	Validation Span          `json:"validation"`
	Execution  struct {
		Resolvers []*ResolverExecution `json:"resolvers"`
	} `json:"execution"`
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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