Documentation ¶
Overview ¶
This is an example program that makes an HTTP request and prints response headers. Whenever a request fails, the error is reported to Sentry.
Try it by running:
go run main.go go run main.go https://sentry.io go run main.go bad-url
To actually report events to Sentry, set the DSN either by editing the appropriate line below or setting the environment variable SENTRY_DSN to match the DSN of your Sentry project.
Click to show internal directories.
Click to hide internal directories.