[
https://issues.apache.org/jira/browse/HTRACE-178?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14578220#comment-14578220
]
Matt Nelson commented on HTRACE-178:
------------------------------------
Doesn't it need to be runtime check? Casting the TraceRunnable to a Runnable
would still result in dual wrapping.
> 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)