attributes

abstract fun attributes(prebuilt: SentryAttributes)

Merges prebuilt attributes into this log entry.


abstract fun attributes(block: SentryAttributes.() -> Unit)

Defines attributes inline using a DSL block.

Example:

attributes {
this["user.id"] = userId
this["request.duration"] = durationMs
}