of

Creates a SentryAttributes collection from the given map.


fun of(vararg pairs: Pair<String, Any?>): SentryAttributes

Creates a SentryAttributes collection from the given key-value pairs.

Supported value types: String, Int, Long, Float, Double, Boolean. Unsupported types are silently ignored.

Example:

SentryAttributes.of(
"username" to "john",
"count" to 42,
"enabled" to true
)