diff --git a/compatibility/4.4/neo4j-kernel-adapter/src/main/java/org/neo4j/gds/compat/_44/Neo4jProxyImpl.java b/compatibility/4.4/neo4j-kernel-adapter/src/main/java/org/neo4j/gds/compat/_44/Neo4jProxyImpl.java index ace9e24736..a70e7d52c1 100644 --- a/compatibility/4.4/neo4j-kernel-adapter/src/main/java/org/neo4j/gds/compat/_44/Neo4jProxyImpl.java +++ b/compatibility/4.4/neo4j-kernel-adapter/src/main/java/org/neo4j/gds/compat/_44/Neo4jProxyImpl.java @@ -857,4 +857,9 @@ public DependencyResolver emptyDependencyResolver() { public String neo4jArrowServerAddressHeader() { throw new UnsupportedOperationException("Not implemented for Neo4j versions <5.14"); } + + @Override + public String metricsManagerClass() { + return "com.neo4j.metrics.global.MetricsManager"; + } } diff --git a/compatibility/5-common/neo4j-kernel-adapter/src/main/java/org/neo4j/gds/compat/_5x/CommonNeo4jProxyImpl.java b/compatibility/5-common/neo4j-kernel-adapter/src/main/java/org/neo4j/gds/compat/_5x/CommonNeo4jProxyImpl.java index 26ab70a0f4..487fd85a2e 100644 --- a/compatibility/5-common/neo4j-kernel-adapter/src/main/java/org/neo4j/gds/compat/_5x/CommonNeo4jProxyImpl.java +++ b/compatibility/5-common/neo4j-kernel-adapter/src/main/java/org/neo4j/gds/compat/_5x/CommonNeo4jProxyImpl.java @@ -509,4 +509,9 @@ public GlobalProcedureRegistry globalProcedureRegistry(org.neo4j.kernel.api.proc } public abstract Object cursorContextFactory(Optional pageCacheTracer); + + @Override + public String metricsManagerClass() { + return "com.neo4j.metrics.global.MetricsManager"; + } } diff --git a/compatibility/5-common/neo4j-kernel-adapter/src/main/java17/org/neo4j/gds/compat/_5x/CommonNeo4jProxyImpl.java b/compatibility/5-common/neo4j-kernel-adapter/src/main/java17/org/neo4j/gds/compat/_5x/CommonNeo4jProxyImpl.java index c7454d16e9..2d54fef905 100644 --- a/compatibility/5-common/neo4j-kernel-adapter/src/main/java17/org/neo4j/gds/compat/_5x/CommonNeo4jProxyImpl.java +++ b/compatibility/5-common/neo4j-kernel-adapter/src/main/java17/org/neo4j/gds/compat/_5x/CommonNeo4jProxyImpl.java @@ -752,4 +752,9 @@ public boolean isCompositeDatabase(GraphDatabaseService databaseService) { } public abstract CursorContextFactory cursorContextFactory(Optional pageCacheTracer); + + @Override + public String metricsManagerClass() { + return "com.neo4j.metrics.global.MetricsManager"; + } } diff --git a/compatibility/api/neo4j-kernel-adapter/src/main/java/org/neo4j/gds/compat/Neo4jProxyApi.java b/compatibility/api/neo4j-kernel-adapter/src/main/java/org/neo4j/gds/compat/Neo4jProxyApi.java index a67483837a..b20b5d58c1 100644 --- a/compatibility/api/neo4j-kernel-adapter/src/main/java/org/neo4j/gds/compat/Neo4jProxyApi.java +++ b/compatibility/api/neo4j-kernel-adapter/src/main/java/org/neo4j/gds/compat/Neo4jProxyApi.java @@ -317,4 +317,6 @@ TransactionalContext newQueryContext( DependencyResolver emptyDependencyResolver(); String neo4jArrowServerAddressHeader(); + + String metricsManagerClass(); } diff --git a/compatibility/common/neo4j-kernel-adapter/src/main/java/org/neo4j/gds/compat/Neo4jProxy.java b/compatibility/common/neo4j-kernel-adapter/src/main/java/org/neo4j/gds/compat/Neo4jProxy.java index 06aaa16998..1506317555 100644 --- a/compatibility/common/neo4j-kernel-adapter/src/main/java/org/neo4j/gds/compat/Neo4jProxy.java +++ b/compatibility/common/neo4j-kernel-adapter/src/main/java/org/neo4j/gds/compat/Neo4jProxy.java @@ -480,4 +480,8 @@ public static String neo4jArrowServerAddressHeader() { private Neo4jProxy() { throw new UnsupportedOperationException("No instances"); } + + public static String metricsManagerClass() { + return IMPL.metricsManagerClass(); + } }