HBASE-26414 Tracing INSTRUMENTATION_NAME is incorrect (#3810)

Signed-off-by: Tak Lon (Stephen) Wu <taklwu@apache.org>
Signed-off-by: Duo Zhang <zhangduo@apache.org>
This commit is contained in:
Nick Dimiduk 2021-11-09 20:53:36 -08:00 committed by Duo Zhang
parent 9a720d7737
commit 76ceda3b58
1 changed files with 2 additions and 3 deletions

View File

@ -31,14 +31,13 @@ import java.util.List;
import java.util.concurrent.CompletableFuture;
import java.util.function.Supplier;
import org.apache.hadoop.hbase.TableName;
import org.apache.hadoop.hbase.Version;
import org.apache.hadoop.hbase.util.FutureUtils;
import org.apache.yetus.audience.InterfaceAudience;
@InterfaceAudience.Private
public final class TraceUtil {
private static final String INSTRUMENTATION_NAME = "io.opentelemetry.contrib.hbase";
public static final AttributeKey<String> NAMESPACE_KEY = SemanticAttributes.DB_HBASE_NAMESPACE;
public static final AttributeKey<String> TABLE_KEY = AttributeKey.stringKey("db.hbase.table");
@ -68,7 +67,7 @@ public final class TraceUtil {
}
public static Tracer getGlobalTracer() {
return GlobalOpenTelemetry.getTracer(INSTRUMENTATION_NAME);
return GlobalOpenTelemetry.getTracer("org.apache.hbase", Version.version);
}
/**