Package-level declarations

Types

Link copied to clipboard

Reuses host-configured sinks. A sequence orders observations, not native engine causality.

Link copied to clipboard
internal class AppleDiagnosticLogStorage(rootPath: String, streamName: String, fileSystem: FileSystem, maxFileBytes: Long, rolledFiles: Int)

All entry points run on their writer's serial queue, including directory creation and lock-file access.

Link copied to clipboard
class AppleDiagnosticLogWriter(rootPath: String, streamName: String = "app", diagnosticLoggingEnabled: Boolean = false, fileSystem: FileSystem = FileSystem.SYSTEM, maxFileBytes: Long = DEFAULT_MAX_FILE_BYTES, rolledFiles: Int = DEFAULT_ROLLED_FILES) : LogWriter

Opt-in, app-lifetime file writer shared by Apple hosts. The host owns preferences and logger configuration. Use distinct stream names for the app and extensions. All instances sharing a root coordinate through flock.

Link copied to clipboard
internal object AppleDiagnosticProcess
Link copied to clipboard

Bounded, process-local observations for investigating suspension with shared files open.

Link copied to clipboard
class CallTraceContext(attempt: String? = null, signal: String? = null, engine: String? = null, operation: String? = null)

Opaque, random UUIDs only. Invalid input is omitted rather than interrupting the operation being diagnosed.

Link copied to clipboard

Closed diagnostic vocabulary. No signaling payloads or user identifiers belong in these records.

Link copied to clipboard
Link copied to clipboard
internal class CallTraceProcess
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class FileLogger(outputFile: File) : LogWriter
Link copied to clipboard
class KaliumLogger(config: KaliumLogger.Config = Config.DISABLED, tag: KaliumLogger.Tag = Tag.Text("KaliumLogger"))

Custom logger writer which uses multiplatform KermitLogger underneath to allow to customize log message or tag.

Link copied to clipboard

LoggerType in order from lowest to the highest severity level.

Link copied to clipboard
internal class SuspensionDiagnosticRegistry(pid: Int, run: String, clockMillis: () -> Long, emit: (String) -> Unit, capacity: Int = DEFAULT_REGISTRY_CAPACITY, eventLimitPerSecond: Int = DEFAULT_EVENT_LIMIT)

No filesystem operation, SQL operation or emitter runs while lock is held.

Functions

Link copied to clipboard
fun String.obfuscateDomain(): String
Link copied to clipboard
fun String.obfuscateId(): String
Link copied to clipboard
fun String.obfuscateUrlPath(): String
Link copied to clipboard
Link copied to clipboard