Skip to main content

Sentry Event Enrichment

The available contextual data for each request from the backend that is available.

Contexts

  • user

    • id: identities_user.id
    • email: identities_user.email
    • actor_class: Org::UserProfile.class.name || Careers::UserProfile.class.name
    • actor_id: Org::UserProfile.id || Careers::UserProfile.id
  • user_profile

    • profile_type: Org::UserProfile.class.name || Careers::UserProfile.class.name
    • profile_id: Org::UserProfile.class.name || Careers::UserProfile.class.name
    • org_company_id: Org::UserProfile.class.name || Careers::UserProfile.class.name
  • request_meta

    • uuid: ActionDispatch::Request.uuid,
    • remote_ip: ActionDispatch::Request.remote_ip,
    • user_agent: ActionDispatch::Request.user_agent,
    • path: ActionDispatch::Request.path,
    • method: ActionDispatch::Request.method,
    • format: ActionDispatch::Request.format.to_s
  • request_headers

    • content_type: ActionDispatch::Request.content_type,
    • accept: ActionDispatch::Request.headers['Accept'],
    • accept_language: ActionDispatch::Request.headers['Accept-Language']
  • request_params

    • params: ActionDispatch::Request.to_h

Tags

  • org_company_id: Org::Company.id

    • allows us to search for all errors for a single client (i.e. Org::Company)
  • profile_type: Org::UserProfile.class.name || Careers::UserProfile.class.name

  • domain: path to the file raising the error inside /domains/ (e.g. identities/users)