Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add sentry support to filer #5512

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

doc-sheet
Copy link
Contributor

What problem are we solving?

Reporing http errors to sentry collector

How are we solving the problem?

Capture http and some common errors and send it to sentry.
Sentry DSN if provided now required to be valid.

How is the PR tested?

With hope for gh actions.

Checks

  • I have added unit tests if possible.
  • I will add related wiki document changes and link to this PR after merging.

@chrislusf
Copy link
Collaborator

There is already Prometheus metrics which we can use for error tracking.

@doc-sheet
Copy link
Contributor Author

Hm. I don't see error-related metrics for weed server.
Sentry also could catch and aggregate different types of errors.
In this PR I added reporting to filer because it is good target to test things, small chance to break anything.

I have plans however to add reporting to master/volume too.

Looks like basic sentry.Init() #5410 is not enough.

It would be much simpler to add hook to glog, but there is no builtin support in sentry-go. Only with 3rd party package https://github.com/yext/glog-contrib

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants