[
https://issues.apache.org/jira/browse/HTRACE-317?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15049272#comment-15049272
]
Colin Patrick McCabe commented on HTRACE-317:
---------------------------------------------
I guess that section of the docs was overlooked when we updated the examples to
be in the new 4.0 API. Do you want to post a patch, or give the jira to
someone else?
> Docs for adding tracing to an application are incorrect
> -------------------------------------------------------
>
> Key: HTRACE-317
> URL: https://issues.apache.org/jira/browse/HTRACE-317
> Project: HTrace
> Issue Type: Bug
> Components: docs
> Affects Versions: 4.0.1
> Reporter: Sean Busbey
> Priority: Critical
>
> The docs for adding tracing state:
> {code}
> Span computationSpan = tracer.newScope("Expensive computation.");
> try {
> //expensive computation here
> } finally {
> computationSpan.stop();
> }
> {code}
> the {{tracer.newScope}} method returns a TraceScope object. That object has a
> {{close}} method, not {{stop}}.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)