[ 
https://issues.apache.org/jira/browse/HTRACE-275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14966191#comment-14966191
 ] 

stack commented on HTRACE-275:
------------------------------

If user calls wrap or getTracerPool, that is ok against NullTracer?

A subclass is returning an instance of superclass?

177       public static Tracer getNullTracer() {
178         return NullTracer.INSTANCE;
179       }


Otherwise looks good. 

> Add NullTracer which never creates a trace span
> -----------------------------------------------
>
>                 Key: HTRACE-275
>                 URL: https://issues.apache.org/jira/browse/HTRACE-275
>             Project: HTrace
>          Issue Type: Improvement
>          Components: api
>            Reporter: Colin Patrick McCabe
>            Assignee: Colin Patrick McCabe
>         Attachments: HTRACE-275.001.patch
>
>
> [~iwasakims] suggested adding a {{NullTracer}} which never creates a trace 
> span.  This would be more convenient than checking tracer objects against 
> null in some cases.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to