Get support for emperror/handler-sentry
If you're new to LTH, please see our FAQ for more information on what it is we do.
Support Options
Unfortunately, there are currently no active helpers for this repository on the platform. Until they become available, we reccomend the following actions:
View Open IssuesTake a look to see if anyone else has experienced the same issue as you and if they managed to solve it.
Open an IssueMake sure to read any relevant guidelines for opening issues on this repo before posting a new issue.
Sponsor directlyCheck out the page and see if there are any options to sponsor this project or it's developers directly.
emperror/handler-sentry
Sentry handler
Error handler integration for Sentry.
Installation
go get emperror.dev/handler/sentry
Usage
package main
import (
"emperror.dev/handler/sentry"
)
func main() {
dsn := "https://user:password@sentry.io/1234"
handler, err := sentry.New(dsn)
if err != nil {
panic(err)
}
defer handler.Close() // Make sure to close the handler to flush all error reporting in progress
}
Development
When all coding and testing is done, please run the test suite:
$ make check
Running integration tests
In order to run integration tests, a local development environment must be configured. Unfortunately it's a little bit more complicated than a "fire and forget" command, but most of it can be done in the CLI.
The first part is as easy as executing a series of commands:
cp docker-compose.override.yml.dist docker-compose.override.yml
cp .env.test.dist .env.test
docker-compose up -d
docker-compose run --rm sentry upgrade --noinput
docker-compose run --rm sentry createuser --email admin@example.com --password admin --superuser --no-input
Go to the Sentry dashboard:
open http://localhost:32622
Login with admin@example.com
and admin
credentials.
Complete the setup wizard and add a new test Go project.
Run the test suite:
source .env.test
make test
Cleanup the environment:
docker-compose down
License
The MIT License (MIT). Please see License File for more information.
Our Mission
We want to make open source more sustainable. The entire platform was born from this and everything we do is in aid of this.
From the Blog
Interesting Articles
-
Generating income from open source
Jun 23 • 8 min read
-
2023 State of OSS
Apr 23 • 45 min read ★
-
A funding experiment...
Aug 19 • 10 min read
-
But You Said I could
Aug 19 • 2 min read
Thank you for checking out LiveTechHelper |
2025 © lth-dev incorporated
p-e622a1a2