SentryAttributeValue

Represents a typed attribute value.

  • Used as the value type in SentryAttributes map.

  • Supported types per the Sentry logs spec:

  • String

  • Boolean

  • Long (64-bit signed integer)

  • Double (64-bit floating point)

Inheritors

Types

Link copied to clipboard

Holds a Boolean attribute value.

Link copied to clipboard
object Companion

Convenience factory methods for creating attribute values.

Link copied to clipboard

Holds a Double attribute value.

Link copied to clipboard
class LongValue(val value: Long) : SentryAttributeValue

Holds a Long attribute value.

Link copied to clipboard

Holds a String attribute value.

Properties

Link copied to clipboard

Returns the Boolean value, or null if this is not a BooleanValue.

Link copied to clipboard

Returns the Double value, or null if this is not a DoubleValue.

Link copied to clipboard

Returns the Long value, or null if this is not a LongValue.

Link copied to clipboard

Returns the String value, or null if this is not a StringValue.

Link copied to clipboard
val value: Any

The underlying raw value.