Skip to content

Add page context and infer data from it (WIP) #4649

@mydea

Description

@mydea

Based on getsentry/sentry-docs#13203, let's wait for this to be merged so details are settled.

We want to add a new page context, based on the develop docs schema:

{
  "contexts": {
    "page": {
      "url": "https://sentry.io/issues",
      "http.query": "?page=1",
      "http.fragment": "#123",
      "referer": "https://sentry.io/"
    }
  }
}

The only required field is url, all others are optional.

When this is present, we want to infer the url from it instead of from event.request.url.
I am not sure if we do anything with referer right now, but if we do, we should also infer it from there instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions