getsentry / sentry-native

Sentry SDK for C, C++ and native applications.
MIT License
395 stars 166 forks source link

Feature Request: Support for ESP32 microcontroller #915

Open zhiyan114 opened 10 months ago

zhiyan114 commented 10 months ago

Although sentry advertise its support for IoT devices, it doesn't seems to support small embedded device, like ESP32. In the near future, we're planning to develop a software that runs on multiple ESP32 devices, and wanting to use sentry to capture any potential runtime errors. It would be great if the client supports micro-controllers that has WIFI capability.

supervacuus commented 10 months ago

We discussed this internally already at some point. In short, there is currently little chance that we'll port sentry-native ever to any microcontroller. The Native SDK is focused entirely on the affordances of "protected mode" operating systems (in how it captures issues and what kind of infrastructure it expects for a large part of the API).

I guess the document you referenced sees Embedded Linux as the IoT target rather than a Firmware environment. I can imagine that there might be a "sentry-micro" SDK at some point that addresses the specifics of capturing errors on microcontrollers and the different RTOS or state machines managing their workload (of which sentry-micro then would be one).

When you say ESP32, would you run ESP-IDF on Xtensa cores?

zhiyan114 commented 10 months ago

When you say ESP32, would you run ESP-IDF on Xtensa cores?

It seems like that's the case, yes.

soisyourface commented 4 months ago

@supervacuus, a sentry-micro library that can work on Xtensa-based esp32 would be excellent. We have millions of esp32's on freertos and monitoring them, as you might imagine, is quite tricky. Used sentry in a past life on more capable hardware and really miss the awesomeness from sentry.

Is this something that we as the community/customers/potential customers can help with?

supervacuus commented 4 months ago

@soisyourface, we hear you. However, this topic is not a priority at Sentry since the community and customer signal regarding support for micro-controllers still needs to be stronger.

The biggest help is to make yourself heard in a ticket like you already did or any personal contact you might have and to provide the context in which a suggested SDK would be deployed.

carolynz commented 3 months ago

I'm working on an esp32 project and would like to +1 this request. I'm already using Sentry in other parts of my stack (bash scripts, python scripts, flask app, javascript server) and plan to use esp32 for devices that we are putting in the hands of customers. Having sentry would be great!

soisyourface commented 3 months ago

yes, there are ones of us that love sentry and using esp32! :)