sentry

package
v1.7.13 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReportSentry

func ReportSentry(report *Report, shouldLog bool)

ReportSentry creates a new issue with the necessary information to sentry and logs the issue

Types

type Report

type Report struct {
	Location         string                 `json:"location"`
	Flags            map[string]interface{} `json:"flags"`
	FileName         string                 `json:"file_name"`
	Query            string                 `json:"query_name"`
	Platform         string                 `json:"platform"`
	Kind             model.FileKind         `json:"kind"`
	Metadata         map[string]interface{} `json:"query_metadata"`
	Message          string                 `json:"message"`
	Err              error                  `json:"error"`
	AdditionalValues map[string]interface{} `json:"additional_values"`
}

Report is the struct containing necessary information to send to sentry

Jump to

Keyboard shortcuts

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