Repository: incubator-htrace
Updated Branches:
  refs/heads/master 2972045d2 -> 701adc0ff


Add note on how to migrate from old org.htrace to org.apache.htrace


Project: http://git-wip-us.apache.org/repos/asf/incubator-htrace/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-htrace/commit/701adc0f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-htrace/tree/701adc0f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-htrace/diff/701adc0f

Branch: refs/heads/master
Commit: 701adc0ffc9974f5b5594bdbd58258c049e908eb
Parents: 2972045
Author: stack <[email protected]>
Authored: Fri Jan 9 17:07:08 2015 -0800
Committer: stack <[email protected]>
Committed: Fri Jan 9 17:07:21 2015 -0800

----------------------------------------------------------------------
 src/main/site/markdown/index.md | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-htrace/blob/701adc0f/src/main/site/markdown/index.md
----------------------------------------------------------------------
diff --git a/src/main/site/markdown/index.md b/src/main/site/markdown/index.md
index 1e3f866..d7ce84b 100644
--- a/src/main/site/markdown/index.md
+++ b/src/main/site/markdown/index.md
@@ -246,6 +246,23 @@ to create a simple visualization of the trace. Or you 
could write
 some javascript to make a better visualization, and send a pull
 request if you do :).
 
+Migrating to Apache HTrace (incubating) from org.htrace
+-------------------------------
+First, the package has changed from org.htrace to org.apache.htrace.
+
+Also, here are some notes on what had to be done migrating:
+
+HTRACE-1 changes the SpanReceiver interface. HBase was instantiating
+SpanReceivers itself and calling .configure(HTraceConfiguration) on each
+one. The expectation now is that SpanReceiver implementations
+provide a constructor that takes a single parameter of HTraceConfiguration.
+
+HTRACE-16 refactors the TraceTree interface. The handy
+getRoots() method has been replaced with the less obvious
+getSpansByParent().find(Span.ROOT_SPAN_ID) and .getSpansByParentIdMap() is
+also an invocation of getSpansByParent().find().
+
+
 Publishing to Maven Central
 -------------------------------
 See [OSSRH-8896](https://issues.sonatype.org/browse/OSSRH-8896)

Reply via email to