Package-level declarations

Types

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.FUNCTION])
annotation class Trace(val name: String = "", val metadataCustomizer: KClass<out SpanMetadataCustomizer> = DefaultSpanMetadataCustomizer::class)

Annotates a function to automatically generate a tracing span on each invocation.

Link copied to clipboard

Holder object for ProjectID and sessionID

Link copied to clipboard

Defines standard attribute keys used for Tracy tracing spans.

Functions

Link copied to clipboard
expect suspend fun <T> withProjectId(id: String, block: suspend ERROR CLASS: Symbol not found for CoroutineScope.() -> T): T

Executes the block with a projectId set. It has no effect on Langfuse.

actual suspend fun <T> withProjectId(id: String, block: suspend CoroutineScope.() -> T): T
Link copied to clipboard
expect fun <T> withProjectIdBlocking(id: String, block: suspend ERROR CLASS: Symbol not found for CoroutineScope.() -> T): T

Same as withProjectId but blocking.

actual fun <T> withProjectIdBlocking(id: String, block: suspend CoroutineScope.() -> T): T
Link copied to clipboard
expect suspend fun <T> withSessionId(id: String, block: suspend ERROR CLASS: Symbol not found for CoroutineScope.() -> T): T

Executes the block with a sessionId set. Has no effect on W&B Weave.

actual suspend fun <T> withSessionId(id: String, block: suspend CoroutineScope.() -> T): T
Link copied to clipboard
expect fun <T> withSessionIdBlocking(id: String?, block: suspend ERROR CLASS: Symbol not found for CoroutineScope.() -> T): T

Same as withSessionId but blocking.

actual fun <T> withSessionIdBlocking(id: String?, block: suspend CoroutineScope.() -> T): T