TelemetryEntry

Where the values of one path end up.

A TelemetryRegistry creates one entry per path, the first time a value is logged there, and only ever calls the method for the path's TelemetryType. Timestamps are in microseconds since the registry's origin, and every backend that a value reaches gets the same one.

Entries must be safe to call from any thread. They must copy any array or list they keep after a method returns, because the caller may reuse it. They should not throw, but if one does, the registry reports it and carries on.

Functions

Link copied to clipboard
abstract fun logBoolean(value: Boolean, timestampMicros: Long)
Link copied to clipboard
abstract fun logBooleanArray(value: BooleanArray, timestampMicros: Long)
Link copied to clipboard
abstract fun logDouble(value: Double, timestampMicros: Long)
Link copied to clipboard
abstract fun logDoubleArray(value: DoubleArray, timestampMicros: Long)
Link copied to clipboard
abstract fun logFloat(value: Float, timestampMicros: Long)
Link copied to clipboard
abstract fun logFloatArray(value: FloatArray, timestampMicros: Long)
Link copied to clipboard
abstract fun logInteger(value: Long, timestampMicros: Long)

Receives integers of every width, which the caller has widened to a Long.

Link copied to clipboard
abstract fun logIntegerArray(value: LongArray, timestampMicros: Long)
Link copied to clipboard
abstract fun logString(value: String, timestampMicros: Long)
Link copied to clipboard
abstract fun logStringArray(value: List<String>, timestampMicros: Long)
Link copied to clipboard
abstract fun <T> logStruct(schema: StructSchema<T>, value: T, timestampMicros: Long)

Receives a value of the path's StructType, with the schema that type was created from.

Link copied to clipboard
abstract fun <T> logStructArray(schema: StructSchema<T>, values: List<T>, timestampMicros: Long)

Receives an array of the path's StructType.