Class HeartbeatOtelStats
java.lang.Object
com.linkedin.davinci.stats.ingestion.heartbeat.HeartbeatOtelStats
OpenTelemetry metrics for heartbeat monitoring.
Note: Tehuti metrics are managed separately in
HeartbeatStatReporter.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionHeartbeatOtelStats(io.tehuti.metrics.MetricsRepository metricsRepository, String storeName, String clusterName) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if OTel metrics are emitted.com.linkedin.davinci.stats.ingestion.heartbeat.HeartbeatOtelStats.VersionInfovoidrecordHeartbeatDelayOtelMetrics(int version, String region, ReplicaType replicaType, ReplicaState replicaState, long delayMs) Records a heartbeat delay with all dimensional attributes to OTel metrics.voidupdateVersionInfo(int currentVersion, int futureVersion) Updates the current and future version for this store.
-
Field Details
-
SERVER_METRIC_ENTITIES
-
-
Constructor Details
-
HeartbeatOtelStats
-
-
Method Details
-
emitOtelMetrics
public boolean emitOtelMetrics()Returns true if OTel metrics are emitted. -
updateVersionInfo
public void updateVersionInfo(int currentVersion, int futureVersion) Updates the current and future version for this store.- Parameters:
currentVersion- The current serving versionfutureVersion- The future/upcoming version
-
recordHeartbeatDelayOtelMetrics
public void recordHeartbeatDelayOtelMetrics(int version, String region, ReplicaType replicaType, ReplicaState replicaState, long delayMs) Records a heartbeat delay with all dimensional attributes to OTel metrics. Returns early if OTel metrics are disabled or version is invalid.- Parameters:
version- The version numberregion- The region namereplicaType- The replica typeReplicaTypereplicaState- The replica stateReplicaStatedelayMs- The delay in milliseconds
-
getVersionInfo
public com.linkedin.davinci.stats.ingestion.heartbeat.HeartbeatOtelStats.VersionInfo getVersionInfo()
-