File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
hbase-common/src/main/java/org/apache/hadoop/hbase/trace Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 3131import java .util .concurrent .CompletableFuture ;
3232import java .util .function .Supplier ;
3333import org .apache .hadoop .hbase .TableName ;
34+ import org .apache .hadoop .hbase .Version ;
3435import org .apache .hadoop .hbase .util .FutureUtils ;
3536import org .apache .yetus .audience .InterfaceAudience ;
3637
3738@ InterfaceAudience .Private
3839public final class TraceUtil {
3940
40- private static final String INSTRUMENTATION_NAME = "io.opentelemetry.contrib.hbase" ;
41-
4241 public static final AttributeKey <String > NAMESPACE_KEY = SemanticAttributes .DB_HBASE_NAMESPACE ;
4342
4443 public static final AttributeKey <String > TABLE_KEY = AttributeKey .stringKey ("db.hbase.table" );
@@ -68,7 +67,7 @@ private TraceUtil() {
6867 }
6968
7069 public static Tracer getGlobalTracer () {
71- return GlobalOpenTelemetry .getTracer (INSTRUMENTATION_NAME );
70+ return GlobalOpenTelemetry .getTracer ("org.apache.hbase" , Version . version );
7271 }
7372
7473 /**
You can’t perform that action at this time.
0 commit comments