/gcp-stacktrace-errors

Go Error Stacktraces for Google Cloud Error Reporting

Primary LanguageGoMIT LicenseMIT

stacktrace-gcp

Go Errors With Stacktraces for Google Cloud Error Reporting

Documentation

Example

	errorReporter, err := errorreporting.NewClient(ctx, project, config)
	if err != nil {
		panic(err)
	}
	
	// Set up loggerLevels
	
	reporter = &LogReporter{
		errorReporter: errorReporter,
		loggerLevels: loggerLevels,
	}
	
	reporter.errorReporter.Report(WrapError(errors.New('this is an error'), 1))