You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@htrace.apache.org by "Colin Patrick McCabe (JIRA)" <ji...@apache.org> on 2015/06/09 04:21:00 UTC
[jira] [Commented] (HTRACE-178) Do not wrap already wrapped
runnables
[ https://issues.apache.org/jira/browse/HTRACE-178?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14578206#comment-14578206 ]
Colin Patrick McCabe commented on HTRACE-178:
---------------------------------------------
Hmm. What about having separate functions that took {{TraceRunnable}} objects as opposed to {{Runnable}}?
> Do not wrap already wrapped runnables
> -------------------------------------
>
> Key: HTRACE-178
> URL: https://issues.apache.org/jira/browse/HTRACE-178
> Project: HTrace
> Issue Type: Improvement
> Reporter: Matt Nelson
> Priority: Minor
>
> When submitting items to the TraceExecutorService, if the item is already wrapped with TraceRunnable/TraceCallable it results in a dual wrapping and dual span reporting. Submit should perform an instanceof check to avoid this scenario.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)