You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "twz915 (via GitHub)" <gi...@apache.org> on 2024/12/12 02:44:33 UTC

[PR] make default panic handler could be customized [rocketmq-client-go]

twz915 opened a new pull request, #1182:
URL: https://github.com/apache/rocketmq-client-go/pull/1182

   ## What is the purpose of the change
   
   in old version, we could do this
   ```
   primitive.PanicHandler = func(i interface{}) {
        msentry.CaptureMessage(fmt.Sprintf("%+v", i), nil)
   }
   ```
   but in latest version, default panic handler could not be customized.
   
   
   when push consume panic, default panic handler should be called (we log and monitor the panic in default panic handler)
   ![image](https://github.com/user-attachments/assets/29ee167e-0c19-49f2-b737-f9e6c162506a)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] make default panic handler could be customized [rocketmq-client-go]

Posted by "ShannonDing (via GitHub)" <gi...@apache.org>.
ShannonDing merged PR #1182:
URL: https://github.com/apache/rocketmq-client-go/pull/1182


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org