You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@eventmesh.apache.org by "pandaapo (via GitHub)" <gi...@apache.org> on 2023/05/19 10:03:26 UTC

[GitHub] [eventmesh] pandaapo opened a new issue, #3973: [Enhancement] log.error should be in try-catch() instead of log.warn

pandaapo opened a new issue, #3973:
URL: https://github.com/apache/eventmesh/issues/3973

   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/eventmesh/issues?q=is%3Aissue) and found no similar issues.
   
   
   ### Enhancement Request
   
   org.apache.eventmesh.runtime.trace.Trace
   * log.error should be used when catch exception, not log.warn.
   * `finishSpan(ChannelHandlerContext, StatusCode, String, Throwable)` can invoke `finishSpan(Span, StatusCode, String, Throwable)` internally.
   * It is the same to `finishSpan(ChannelHandlerContext, StatusCode)` and `finishSpan(Span, StatusCode)`.
   * It is the same to `addTraceInfoToSpan(ChannelHandlerContext, CloudEvent)` and `addTraceInfoToSpan(Span, CloudEvent)`
   * `TraceUtils` is better to be moved to util package.
   
   ### Describe the solution you'd like
   
   org.apache.eventmesh.runtime.trace.Trace
   * Use log.error
   * Use `finishSpan(Span, StatusCode, String, Throwable)` to replace some logic of `finishSpan(ChannelHandlerContext, StatusCode, String, Throwable)`.
   * Use `finishSpan(Span, StatusCode)` to replace some logic of `finishSpan(ChannelHandlerContext, StatusCode)`.
   * Use `addTraceInfoToSpan(Span, CloudEvent)` to replace some logic of `addTraceInfoToSpan(ChannelHandlerContext, CloudEvent)`.
   * Move `TraceUtils`.
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!


-- 
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: issues-unsubscribe@eventmesh.apache.org.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: issues-help@eventmesh.apache.org


[GitHub] [eventmesh] xwm1992 closed issue #3973: [Enhancement] log.error should be in try-catch() instead of log.warn

Posted by "xwm1992 (via GitHub)" <gi...@apache.org>.
xwm1992 closed issue #3973: [Enhancement] log.error should be in try-catch() instead of log.warn
URL: https://github.com/apache/eventmesh/issues/3973


-- 
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: issues-unsubscribe@eventmesh.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: issues-help@eventmesh.apache.org