Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddErrorsAsSpanEvents ¶
AddErrorsAsSpanEvents attaches the given graphql errors to the span as span events, according to the standard Datadog specification. errExtensions allows to include the given extensions field from the error as attributes in the span events.
func ErrorExtensionsFromEnv ¶
func ErrorExtensionsFromEnv() []string
ErrorExtensionsFromEnv returns the configured error extensions from an environment variable.
func ParseErrorExtensions ¶
ParseErrorExtensions validates and cleans up the user provider error extension list.
Types ¶
type Error ¶
type Error struct {
OriginalErr error
Message string
Locations []ErrorLocation
Path []any
Extensions map[string]any
}
Error represents a generic Graphql error.
type ErrorLocation ¶
ErrorLocation represents each individual member of the locations field of a Graphql error.
Click to show internal directories.
Click to hide internal directories.