PK.pseudoCommonKotlinSourceSetPKÐïíúÇÇ&fleet/tracing/DynamicTraceRecording.kt// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. package fleet.tracing import kotlin.coroutines.CoroutineContext interface DynamicTraceRecording : CoroutineContext.Element { companion object : CoroutineContext.Key override val key: CoroutineContext.Key<*> get() = DynamicTraceRecording suspend fun start() suspend fun stop(): Sequence? }PKÇM–¿¥¥fleet/tracing/SpanBuilder.kt// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. package fleet.tracing import fleet.tracing.runtime.Span import fleet.tracing.runtime.SpanInfo class SpanInfoBuilder( val name: String, val job: Any, private val isScope: Boolean, ) { private val map = HashMap() var cause: Span? = null var startTimestampNano: Long? = null fun set(key: String, value: String) { map[key] = value } fun build(): SpanInfo = SpanInfo( name = name, job = job, map = map, isScope = isScope, startTimestampNano = startTimestampNano, cause = cause) }PKv4;fleet/tracing/runtime/Span.kt// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. @file:JvmName("SpanKt") @file:JvmMultifileClass package fleet.tracing.runtime import kotlin.jvm.JvmMultifileClass import kotlin.jvm.JvmName //@fleet.kernel.plugins.InternalInPluginModules(where = ["fleet.reporting.opentelemetry"]) data class SpanInfo( val name: String, val isScope: Boolean, val job: Any, val map: Map, val startTimestampNano: Long?, val cause: Span?, ) interface Span { object Noop : CompletableSpan { override val job: Any = Any() override fun startChild(childInfo: SpanInfo): CompletableSpan { return Noop } override fun complete(status: SpanStatus, endTimestampNano: Long?) { } } val job: Any fun startChild(childInfo: SpanInfo): CompletableSpan } //@fleet.kernel.plugins.InternalInPluginModules(where = ["fleet.reporting.opentelemetry"]) sealed class SpanStatus { data object Success : SpanStatus() data object Cancelled : SpanStatus() data class Failed(val x: Throwable) : SpanStatus() } //@fleet.kernel.plugins.InternalInPluginModules(where = ["fleet.reporting.opentelemetry"]) interface CompletableSpan : Span { fun complete(status: SpanStatus, endTimestampNano: Long?) } PK.pseudoCommonKotlinSourceSetPKÐïíúÇÇ&:fleet/tracing/DynamicTraceRecording.ktPKÇM–¿¥¥Efleet/tracing/SpanBuilder.ktPKv4;$fleet/tracing/runtime/Span.ktPK3p