KueryClientFetchContext

class KueryClientFetchContext(val sqlId: String, val sql: Sql) : Observation.Context(source)

Observation.Context for the fetch observations recorded by KueryClient and KueryBlockingClient.

Constructors

Link copied to clipboard
constructor(sqlId: String, sql: Sql)

Properties

Link copied to clipboard
open val allKeyValues: KeyValues?
Link copied to clipboard
open var contextualName: @Nullable String?
Link copied to clipboard
open var error: @Nullable Throwable?
Link copied to clipboard
open val highCardinalityKeyValues: KeyValues?
Link copied to clipboard
open val lowCardinalityKeyValues: KeyValues?
Link copied to clipboard
open var name: @Nullable String?
Link copied to clipboard
open var parentObservation: @Nullable ObservationView?
Link copied to clipboard
val sql: Sql

the executed SQL (with named placeholders; bound values are held separately in Sql.parameters)

Link copied to clipboard

the ID that identifies the executed query

Functions

Link copied to clipboard
open fun addHighCardinalityKeyValue(keyValue: KeyValue?): Observation.Context?
Link copied to clipboard
open fun addHighCardinalityKeyValues(keyValues: KeyValues?): Observation.Context?
Link copied to clipboard
open fun addLowCardinalityKeyValue(keyValue: KeyValue?): Observation.Context?
Link copied to clipboard
open fun addLowCardinalityKeyValues(keyValues: KeyValues?): Observation.Context?
Link copied to clipboard
open fun clear()
Link copied to clipboard
open fun <T : Any?> computeIfAbsent(key: Any?, mappingFunction: Function<Any?, out T?>?): T?
Link copied to clipboard
open fun containsKey(key: Any?): Boolean
Link copied to clipboard
open operator fun <T : Any?> get(key: Any?): @Nullable T?
Link copied to clipboard
open fun getHighCardinalityKeyValue(key: String?): @Nullable KeyValue?
Link copied to clipboard
open fun getLowCardinalityKeyValue(key: String?): @Nullable KeyValue?
Link copied to clipboard
open fun <T : Any?> getOrDefault(key: Any?, defaultObject: T?): T?
open fun <T : Any?> getOrDefault(key: Any?, defaultObjectSupplier: Supplier<T?>?): T?
Link copied to clipboard
open fun <T : Any?> getRequired(key: Any?): T?
Link copied to clipboard
open fun <T : Any?> put(key: Any?, object: T?): Observation.Context?
Link copied to clipboard
open fun remove(key: Any?): @Nullable Any?
Link copied to clipboard
open fun removeHighCardinalityKeyValue(keyName: String?): Observation.Context?
Link copied to clipboard
open fun removeHighCardinalityKeyValues(vararg keyNames: String?): Observation.Context?
Link copied to clipboard
open fun removeLowCardinalityKeyValue(keyName: String?): Observation.Context?
Link copied to clipboard
open fun removeLowCardinalityKeyValues(vararg keyNames: String?): Observation.Context?