pub struct User {
pub id: Annotated<LenientString>,
pub email: Annotated<String>,
pub ip_address: Annotated<IpAddr>,
pub username: Annotated<LenientString>,
pub name: Annotated<String>,
pub sentry_user: Annotated<String>,
pub geo: Annotated<Geo>,
pub segment: Annotated<String>,
pub data: Annotated<Object<Value>>,
pub other: Object<Value>,
}
Expand description
Information about the user who triggered an event.
{
"user": {
"id": "unique_id",
"username": "my_user",
"email": "foo@example.com",
"ip_address": "127.0.0.1",
"subscription": "basic"
}
}
Fields§
§id: Annotated<LenientString>
Unique identifier of the user.
email: Annotated<String>
Email address of the user.
ip_address: Annotated<IpAddr>
Remote IP address of the user. Defaults to “{{auto}}”.
username: Annotated<LenientString>
Username of the user.
name: Annotated<String>
Human readable name of the user.
sentry_user: Annotated<String>
The user string representation as handled in Sentry.
This field is computed by concatenating the name of specific fields of the User
struct with their value. For example, if id
is set, sentry_user
will be equal to
`“id:id-of-the-user”.
geo: Annotated<Geo>
Approximate geographical location of the end user or device.
segment: Annotated<String>
The user segment, for apps that divide users in user segments.
data: Annotated<Object<Value>>
Additional arbitrary fields, as stored in the database (and sometimes as sent by clients).
All data from self.other
should end up here after store normalization.
other: Object<Value>
Additional arbitrary fields, as sent by clients.