-
Notifications
You must be signed in to change notification settings - Fork 505
refactor(metrics): move IcebergMetricsReporter SPI to polaris-core #5204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
177440d
477ed53
a80d3c2
e4c6ff8
adb87dd
0c78d66
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -350,8 +350,6 @@ polaris.credential-manager.type=default | |
|
|
||
| # Configuration for the behaviour of the metrics endpoint | ||
| polaris.iceberg-metrics.reporting.type=default | ||
| # Set to INFO if you want to see iceberg metric reports logged | ||
| quarkus.log.category."org.apache.polaris.service.reporting".level=OFF | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unrelated change? |
||
|
|
||
| quarkus.arc.ignored-split-packages=\ | ||
| org.apache.polaris.service.catalog.api,\ | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -132,10 +132,10 @@ | |
| import org.apache.polaris.service.http.IfNoneMatch; | ||
| import org.apache.polaris.service.idempotency.EntityIdempotency; | ||
| import org.apache.polaris.service.idempotency.IdempotencyRequestContext; | ||
| import org.apache.polaris.service.metrics.IcebergMetricsReporter; | ||
| import org.apache.polaris.service.metrics.MetricType; | ||
| import org.apache.polaris.service.metrics.MetricsReportEnvelope; | ||
| import org.apache.polaris.service.types.NotificationRequest; | ||
| import org.apache.polaris.spi.substrate.metrics.IcebergMetricsReporter; | ||
| import org.apache.polaris.spi.substrate.metrics.MetricType; | ||
| import org.apache.polaris.spi.substrate.metrics.MetricsReportEnvelope; | ||
| import org.jspecify.annotations.NonNull; | ||
| import org.jspecify.annotations.Nullable; | ||
| import org.slf4j.Logger; | ||
|
|
@@ -389,7 +389,7 @@ | |
| return catalogHandlerUtils().listTables(baseCatalog, namespace); | ||
| } | ||
|
|
||
| /** | ||
|
Check warning on line 392 in runtime/service/src/main/java/org/apache/polaris/service/catalog/iceberg/IcebergCatalogHandler.java
|
||
| * Create a table. | ||
| * | ||
| * @param namespace the namespace to create the table in | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| /* | ||
| * Licensed to the Apache Software Foundation (ASF) under one | ||
| * or more contributor license agreements. See the NOTICE file | ||
| * distributed with this work for additional information | ||
| * regarding copyright ownership. The ASF licenses this file | ||
| * to you under the Apache License, Version 2.0 (the | ||
| * "License"); you may not use this file except in compliance | ||
| * with the License. You may obtain a copy of the License at | ||
| * | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, | ||
| * software distributed under the License is distributed on an | ||
| * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| * KIND, either express or implied. See the License for the | ||
| * specific language governing permissions and limitations | ||
| * under the License. | ||
| */ | ||
|
|
||
| plugins { | ||
| id("polaris-client") | ||
| id("org.kordamp.gradle.jandex") | ||
| } | ||
|
|
||
| description = "Polaris shared SPI contracts" | ||
|
|
||
| dependencies { | ||
| implementation(platform(libs.iceberg.bom)) | ||
| implementation("org.apache.iceberg:iceberg-api") | ||
|
|
||
| implementation(libs.guava) | ||
|
|
||
| compileOnly(libs.jspecify) | ||
| } | ||
|
|
||
| tasks.named("javadoc") { dependsOn("jandex") } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,7 +16,7 @@ | |
| * specific language governing permissions and limitations | ||
| * under the License. | ||
| */ | ||
| package org.apache.polaris.service.metrics; | ||
| package org.apache.polaris.spi.substrate.metrics; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is Why not I believe the "owner" module ("metrics" in this case) has higher weight than "spi" because an SPI is needed by a particular module. I do not think we can talk about "general SPI" in Polaris. It is always grounded in a particular need in a particular module to access the pluggable service. |
||
|
|
||
| import com.google.common.annotations.Beta; | ||
| import org.jspecify.annotations.NonNull; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar to my other comment:
polaris-spifeels too generic.In this case we're adding a module needed by
runtime/service, which is why I proposed to name itpolaris-service-spi(path:runtime/service-spi) in the old comment thread. "Service" here meaning REST Catalog services.Alternative:
polaris-rest-spi(path:spi/rest).Alternative:
polaris-catalog-spi(path:spi/catalog).WDYT?