feat: create tests and bump versions#2
feat: create tests and bump versions#2tonyo merged 3 commits intogetsentry:masterfrom aldy505:feat/bump-version
Conversation
|
Hey @aldy505 , thanks for the contributions! In the meantime, could you share your use case(s) for the tool? What kind of services/applications do you use it for, how does it work for you in general, and what kind of features you would like to see added (in case we decide to spend more resources on it)? |
|
Hi @tonyo sorry for the wait. I'm using self-hosted Sentry on my company. There are some application for the company's core business module made by third party vendor that usually produces an error to stderr (or maybe stdout, I haven't check it thoroughly). Right now, as the error's not monitored by anything else, we never know that an error happened before a customer filed a complaint and got angry on our customer service department. My monitoring stack (other than Sentry) includes Grafana's LGTM stack + Alertmanager + grafana-agent to replace Prometheus + Promtail. We can send the logs via promtail to our Grafana Loki instance, but that's about it. There are no error warnings, alerts, whatsoever. That's something we want to explore for a better health (and anger management) at work. |
tonyo
left a comment
There was a problem hiding this comment.
Looks good, just one note about the test in process_test.go.
| processLine( | ||
| `127.0.0.1 - - [23/Apr/2014:22:58:32 +0200] "GET /index.php HTTP/1.1" 404 207`, | ||
| []string{"%{COMMONAPACHELOG}"}, | ||
| g, | ||
| sentry.CurrentHub(), | ||
| ) | ||
|
|
||
| processLine( | ||
| "", | ||
| []string{"%{COMMONAPACHELOG}"}, | ||
| g, | ||
| sentry.CurrentHub(), | ||
| ) |
There was a problem hiding this comment.
At the moment these calls to processLine don't really assert anything (other than not crashing). One potential solution here is to have something similar to TransportMock, and then assert that the proper events were built via Events() method.
Lmk if you want to pursue that, otherwise this is already an improvement.
There was a problem hiding this comment.
I went with TransportMock to assert stuff.
Cool, thanks for sharing 👍 Always interesting to learn what other folks use for observability/monitoring/alerting, and what sort of edge cases are not yet covered by existing tools. |
|
Thanks for the changes 👍 |
I don't know whether this repo is still maintained or accepting PRs whatsoever, but here goes.
Overview:
ioutil.ReadAlltoio.ReadAll, the one fromioutilgot deprecatedNo golangci-lint and precommit yet, I actually despise those. But if we want to do like on vroom. We'll do that on a separate PR.
If the CI won't run, here's the test results: