Skip to content

Commit

Permalink
HBASE-26414 Tracing INSTRUMENTATION_NAME is incorrect (#3810)
Browse files Browse the repository at this point in the history
Signed-off-by: Tak Lon (Stephen) Wu <taklwu@apache.org>
Signed-off-by: Duo Zhang <zhangduo@apache.org>
  • Loading branch information
ndimiduk authored and Duo Zhang committed Nov 10, 2021
1 parent 9a720d7 commit 76ceda3
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,13 @@
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");
Expand Down Expand Up @@ -68,7 +67,7 @@ private TraceUtil() {
}

public static Tracer getGlobalTracer() {
return GlobalOpenTelemetry.getTracer(INSTRUMENTATION_NAME);
return GlobalOpenTelemetry.getTracer("org.apache.hbase", Version.version);
}

/**
Expand Down

0 comments on commit 76ceda3

Please sign in to comment.