Class MetricsRecordConverter.ScanReportBuilder
java.lang.Object
org.apache.polaris.extension.metrics.jdbc.MetricsRecordConverter.ScanReportBuilder
- Enclosing class:
MetricsRecordConverter
Builder for converting ScanReport to ScanMetricsRecord.
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.polaris.core.persistence.metrics.ScanMetricsRecordbuild()catalogId(long catalogId) otelSpanId(String otelSpanId) Sets the OpenTelemetry span ID.otelTraceId(String otelTraceId) Sets the OpenTelemetry trace ID.principalName(String principalName) Sets the principal name for request context.Sets the server-generated request ID.tableId(long tableId) Sets the table entity ID.Sets the timestamp for the metrics record.
-
Method Details
-
catalogId
-
tableId
Sets the table entity ID.This is the internal Polaris entity ID for the table.
- Parameters:
tableId- the table entity ID- Returns:
- this builder
-
timestamp
Sets the timestamp for the metrics record.This should be the time the metrics report was received by the server, which may differ from the time it was recorded by the client.
- Parameters:
timestamp- the timestamp- Returns:
- this builder
-
principalName
Sets the principal name for request context. -
requestId
Sets the server-generated request ID. -
otelTraceId
Sets the OpenTelemetry trace ID. -
otelSpanId
Sets the OpenTelemetry span ID. -
build
public org.apache.polaris.core.persistence.metrics.ScanMetricsRecord build()
-