Documentation ¶
Index ¶
- func DoOrDie(err error)
- func DoesFileExist(path string) bool
- func DumpJSON(obj interface{}) string
- func IssueRequest(client http.Client, spanName string, ...) (string, error)
- func ParseJson(obj interface{}, bytes []byte) error
- func PrintJSON(obj interface{})
- func ReadFile(filename string) (string, error)
- func ReadFileBytes(filename string) ([]byte, error)
- func ReadJsonFromFile(obj interface{}, path string) error
- func RecordEvent(name string, err error)
- func RecordEventDuration(name string, code int, start time.Time)
- func RunOperation(tracer trace.Tracer, ctx context.Context, spanName string, ...)
- func SetUpLogger(logLevelStr string) error
- func SetUpTracerProvider(aggregatorURL string, service string) (*tracesdk.TracerProvider, error)
- func WriteFile(filename string, contents string, perm fs.FileMode) error
- func WriteJsonToFile(obj interface{}, path string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DoesFileExist ¶
func IssueRequest ¶
func ReadFile ¶
ReadFile wraps calls to ioutil.ReadFile, ensuring that errors are wrapped in a stack trace
func ReadFileBytes ¶
ReadFileBytes wraps calls to ioutil.ReadFile, ensuring that errors are wrapped in a stack trace
func ReadJsonFromFile ¶
func RecordEvent ¶
func RunOperation ¶
func SetUpLogger ¶
func SetUpTracerProvider ¶
func SetUpTracerProvider(aggregatorURL string, service string) (*tracesdk.TracerProvider, error)
func WriteFile ¶
WriteFile wraps calls to ioutil.WriteFile, ensuring that errors are wrapped in a stack trace
func WriteJsonToFile ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.