[ https://issues.apache.org/jira/browse/HBASE-25373?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17246555#comment-17246555 ]
Duo Zhang commented on HBASE-25373: ----------------------------------- After learning the docs of open-telemetry-java and opentelemetry-java-instrumentation, I think for a modern style tracing framework for java, the typical way is to support tracing through a java agent, without touching the code, and all the related configs for tracing, will be passed in through command line when starting. Anyway, I think the basic rule here, is to minimize the modification on java code. For HBase, I do not know whether it is easy to implement an agent and push it into open telemetry. It is not designed for better tracing, so let's try to use the opentelemetry-api to manually add tracing support first. Later we could see if it is possible to use an agent to do the instrumentation automatically. And also, I think we should remove all the sampler related code, as it will pull in the dependency of sdk and exporter. Will update the PR soon. > Remove HTrace completely in code base and try to make use of OpenTelemetry > -------------------------------------------------------------------------- > > Key: HBASE-25373 > URL: https://issues.apache.org/jira/browse/HBASE-25373 > Project: HBase > Issue Type: Sub-task > Components: tracing > Reporter: Duo Zhang > Assignee: Duo Zhang > Priority: Major > -- This message was sent by Atlassian Jira (v8.3.4#803005)