Skip to content

feat: Scan Reporting (PR 2/3) - #3687

Closed
DerGut wants to merge 6 commits into
apache:mainfrom
DerGut:scan-reports-2-public-api
Closed

DerGut wants to merge 6 commits into
apache:mainfrom
DerGut:scan-reports-2-public-api

Conversation

@DerGut

@DerGut DerGut commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

This PR belongs to the second attempt at closing #1466 by implementing Iceberg's Metrics Reporting API.
This is the second of three planned PRs:

  1. feat: Scan Reporting (PR 1/3) #3667: Scan report collection and lifecycle, with a logging consumer
  2. (this PR): Public reporter API and configuration
  3. REST catalog scan reporting

What changes are included in this PR?

This PR adds the public API:

  • a public MetricsReporter trait and the types it consumes (pub enum MetricsReport and its children/ fields).
  • setters on the Table and TableScan to overwrite a metrics reporter (default is the LoggingMetricsReporter matching Java's behavior

This is the most interesting bit:

#[async_trait::async_trait]
pub trait MetricsReporter: Debug + Send + Sync {
    async fn report(&self, report: MetricsReport);
}

This build towards the third planned PR which adds a REST-catalog specific metrics reporter based on this API.

Reviewing the commits:

  1. skip it, it belongs to build(deps): update quinn-udp to fix security check #3686
  2. skip it, belongs to feat: Scan Reporting (PR 1/3) #3667
  3. same as 2.
  4. same as 2. + 3.
  5. relevant!
  6. relevant!

Are these changes tested?

The scan_metrics.rs example exercises the public API.

AI Disclosure

I used AI to generate and validate the changes.

@DerGut
DerGut force-pushed the scan-reports-2-public-api branch 3 times, most recently from 3c7ad01 to 80ef777 Compare November 17, 2026 11:41
@DerGut
DerGut force-pushed the scan-reports-2-public-api branch from 80ef777 to 0eefa04 Compare November 17, 2026 15:40
@DerGut

DerGut commented Nov 17, 2026

Copy link
Copy Markdown
Contributor Author

Closing this in favor of the smaller #3709

  • The remaining bit to add from this PR is predicate sanitization

@DerGut DerGut closed this Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant