org.htrace
Class Tracer

java.lang.Object
  extended by org.htrace.Tracer

public class Tracer
extends Object

A Tracer provides the implementation for collecting and distributing Spans within a process.


Field Summary
static TraceInfo DONT_TRACE
           
static org.apache.commons.logging.Log LOG
           
protected static String processId
           
 
Constructor Summary
Tracer()
           
 
Method Summary
protected  void addReceiver(SpanReceiver receiver)
           
 TraceScope continueSpan(Span s)
           
protected  Span createNew(String description)
           
protected  Span currentSpan()
           
 void deliver(Span span)
           
static Tracer getInstance()
           
protected  boolean isTracing()
           
protected  int numReceivers()
           
protected  void removeReceiver(SpanReceiver receiver)
           
protected  Span setCurrentSpan(Span span)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static final org.apache.commons.logging.Log LOG

DONT_TRACE

public static final TraceInfo DONT_TRACE

processId

protected static String processId
Constructor Detail

Tracer

public Tracer()
Method Detail

getInstance

public static Tracer getInstance()

createNew

protected Span createNew(String description)

isTracing

protected boolean isTracing()

currentSpan

protected Span currentSpan()

deliver

public void deliver(Span span)

addReceiver

protected void addReceiver(SpanReceiver receiver)

removeReceiver

protected void removeReceiver(SpanReceiver receiver)

setCurrentSpan

protected Span setCurrentSpan(Span span)

continueSpan

public TraceScope continueSpan(Span s)

numReceivers

protected int numReceivers()


Copyright © 2014. All Rights Reserved.