lawik

lawik

Nerves Core Team

What do you use in production error reporting on Nerves devices?

My expectation is that if you use a service you probably use Sentry. Seems like a very common choice. But I’d love to hear if the truth is more diverse.

I am thinking about possibilities for integrating error reporting with NervesHub. And while we could certainly build a NervesHubLink extension for sending errors up to NervesHub it may be more helpful and a lot more bang-for-the-buck if we can integrate with what people actually use and then correlate the device identifiers and show “hey, UND00234238 has reported 1000 errors today”.

So let me know how you detect problems, report errors, all that, if you don’t mind. If you feel the need to weigh in but don’t have production Nerves devices, please be clear about that :smiley:

Most Liked

Nezteb

Nezteb

I’ve been meaning to try out :tower for this: tower | Hex

Regardless of specific implementation, I love the idea of error reporting providers as a behaviour.

amclain

amclain

We’ve used Sentry, DataDog, custom Grafana stuff…

The Redwire Labs Nerves project generator comes with Sentry commented out in the template because it’s the simplest one we’ve integrated with. If I recall, the Sentry library doesn’t report GenServer crashes during init by default, but we have some code that catches and reports those.

I do wish NervesHub handled the error reporting. It would be great for consolidating SaaS services, and one less connection we have to instruct users to whitelist.

lawik

lawik

Nerves Core Team

Yeah, NervesHub directly taking in error reports might be the result. I have a hunch that Sentry is quite common among existing systems. But I could also see a variant of ingesting errors via Sentry for those cases, assuming our error handling is something compatible enough.

The neat thing with error reporting is that it is additional signal for deployments to be smarter about devices misbheaving after an update.

Over time we can consider metrics vs user’s configured thresholds, error reports, log lines at error level. It becomes a very multi-faceted “health” concept. And it lets us determine when a deployment should back off.

Where Next?

Popular in Discussions Top

AstonJ
Are there any Elixir or Erlang libraries that help with this? I’ve been thinking how streaming services like twitch have exploded recentl...
New
JakeBecker
TL;DR: I’ve just released an implementation of Microsoft’s IDE-independent Language Server Protocol for Elixir. It adds language support ...
1144 54120 245
New
rms.mrcs
A couple of days ago I was discussing with a friend about different approaches to write microservices. He said that if he was going to w...
New
jer
I’ve been using umbrellas for a while, and generally started off (on greenfield projects at least) by isolating subapps based on clearly ...
New
chuck
Let me start by stating an assumption: Phoenix is a great approach to building REST APIs. There are many reasons for this, but I will ass...
New
slashdotdash
Phoenix Live View is now publicly available on GitHub. Here’s Chris McCord’s tweet announcing making it public.
New
Fl4m3Ph03n1x
Background This question comes mainly from my ignorance. Today is Black Friday, one of my favorite days of the year to buy books. One boo...
New
pillaiindu
I want to convert a Phoenix LiveView CRUD website to a CRUD mobile app. What do you think is the easiest way to do so?
New
crispinb
On reading dhh’s latest The One Person Framework it strikes me that Phoenix with LiveView is already pretty much this. However, never hav...
New
arcanemachine
https://nitter.net/josevalim/status/1744395345872683471 https://twitter.com/josevalim/status/1744395345872683471
New

Other popular topics Top

KronicDeth
Elixir plugin for JetBrain’s IntelliJ Platform (including Rubymine) This is a plugin that adds support for Elixir to JetBrains IntelliJ...
289 36352 110
New
AstonJ
Please see the new poll here: Which code editor or IDE do you use? (Poll) (2022 Edition) It’s been a while since we first asked this, I...
208 31265 143
New
joaquinalcerro
Hi there, I am working with Ecto-Postgresql and I need to call all of the records from a specific table but the table has 40,000 records...
New
jononomo
For some reason my phoenix channels are working for me in my local dev environment, but as soon as I deploy via Docker, I get a 403 error...
New
sergio_101
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
msaraiva
Surface is an experimental library built on top of Phoenix LiveView and its new LiveComponent API that aims to provide a more declarative...
564 43757 214
New
siddhant3030
Hi, I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
New
klo
Got a question about when to concat vs. prepending items to list then reversing to achieve appending. So i know lists boil down to [1 | ...
New
albydarned
Hello all! I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
New
WestKeys
Currently suffering from paralysis by [HTTP client] analysis. This is rather unusual in Elixirland as there tends to be consensus on the ...
New

Latest on Elixir Forum

Elixir Forum

We're in Beta

About us Mission Statement