Prevent downstream Panics (golang)

  • What Grafana version and what operating system are you using?

  • What are you trying to achieve?
    Developing a backend datasource plugin

  • How are you trying to achieve it?
    Writing a grafana backend plugin in golang

  • What happened?
    I want a mechanism by which any unhandled panic (from golang code) does not bring down the backend plugin process. At the moment any downstream panic(s) raised by my golang code will freeze my backend plugin. How do I gracefully handle all panic(s) and still continue to serve my panels (like timeseries, chart etc) through my backend datasource?

  • What did you expect to happen?
    Want to gracefully handle any downstream panic(s)

  • Can you copy/paste the configuration(s) that you are having problems with?

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.

  • Did you follow any online instructions? If so, what is the URL?

This seems more of a golang issue than grafana?

Someone might chime in but
You might get more mileage on a go lang forum?

Okay. Will try in a golang forum.