Interface PolarisEventMetadata
@PolarisImmutable
public interface PolarisEventMetadata
Metadata associated with a Polaris event.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.polaris.service.events.ImmutablePolarisEventMetadata.Builderbuilder()default UUIDeventId()The unique ID of the event.The OpenTelemetry context associated with the event, if any.realmId()The realm in which the event was emitted.The request ID associated with the event, if any.default InstantThe timestamp when the event was emitted.Optional<org.apache.polaris.core.auth.PolarisPrincipal> user()The user who triggered the event.
-
Field Details
-
OPEN_TELEMETRY_SPAN_ID_KEY
- See Also:
-
OPEN_TELEMETRY_TRACE_ID_KEY
- See Also:
-
OPEN_TELEMETRY_SAMPLED_KEY
- See Also:
-
OPEN_TELEMETRY_TRACE_FLAGS_KEY
- See Also:
-
-
Method Details
-
builder
static org.apache.polaris.service.events.ImmutablePolarisEventMetadata.Builder builder() -
eventId
The unique ID of the event. -
timestamp
The timestamp when the event was emitted. -
realmId
String realmId()The realm in which the event was emitted. -
user
Optional<org.apache.polaris.core.auth.PolarisPrincipal> user()The user who triggered the event. -
requestId
The request ID associated with the event, if any. -
openTelemetryContext
The OpenTelemetry context associated with the event, if any.
-