Skip to content

errors: package should be able to report errors #728

@rakyll

Description

@rakyll

errors package only provides reporting of log messages and recovery and report of panics. The package instead should provide APIs that can report Go errors.

I suggest to change the Report API to work against an error:

func (c *Client) Report(ctx context.Context, r *http.Request, err error)

Then, we can also remove the Reportf and users can use fmt.Errorf if they want to include more context to the error messages.

/cc @jba @zombiezen

Metadata

Metadata

Assignees

Labels

api: clouderrorreportingIssues related to the Error Reporting API.priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions