SentryAttributes

A type-safe mutable map of attribute key-value pairs.

  • Supports type-safe setters for primitives. Use properties on SentryAttributeValue (e.g., stringOrNull, longOrNull) to extract typed values.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun clear()
Link copied to clipboard
open override fun containsKey(key: String): Boolean
Link copied to clipboard
open override fun containsValue(value: SentryAttributeValue): Boolean
Link copied to clipboard

Creates a copy of this SentryAttributes instance.

Link copied to clipboard
open operator override fun get(key: String): SentryAttributeValue?
Link copied to clipboard
open override fun isEmpty(): Boolean
Link copied to clipboard
open override fun put(key: String, value: SentryAttributeValue): SentryAttributeValue?
Link copied to clipboard
open override fun putAll(from: Map<out String, SentryAttributeValue>)
Link copied to clipboard
open override fun remove(key: String): SentryAttributeValue?
Link copied to clipboard
operator fun set(key: String, value: Boolean)

Sets a Boolean value by key.

operator fun set(key: String, value: Double)

Sets a Double value by key.

operator fun set(key: String, value: Float)

Sets an Float value by key. Stored as 64-bit Double value.

operator fun set(key: String, value: Int)

Sets an Int value by key. Stored as 64-bit Long value.

operator fun set(key: String, value: Long)

Sets a Long value by key.

operator fun set(key: String, value: String)

Sets a String value by key.

Properties

Link copied to clipboard
Link copied to clipboard
open override val keys: MutableSet<String>
Link copied to clipboard
open override val size: Int
Link copied to clipboard