Skip to content

Searchable custom context #75531

@lhunath

Description

@lhunath

Problem Statement

It's not 100% clear whether this is currently possible or not, but if so, I could not discover how —

It would be great if Sentry's issue search would allow us to search issued based on structured custom context values. Without this ability, the developer is incentivized to neglect structured custom contexts for tags instead, which are searchable.

In addition, custom data associated with the sentry user in the SDK similarly ought to be surfaced.

Solution Brainstorm

eg.

<my_context_key>.<structured>.<context>.<value>.<path>:<myvalue>

or

context.<my_context_key>.<structured>.<context>.<value>.<path>:<myvalue>

For data associated to the sentry user, eg. through sentryUser.data = ["custom_key": "value"]:

user.<custom_key>:<value>

or

user.data.<custom_key>:<value>

Since user-associated data appears in the issue event identically as a custom context named "User", perhaps the best consistency would be achieved with the combination:

<my_context_key>.<structured>.<context>.<value>.<path>:<myvalue>
user.<custom_key>:<value>

Product Area

Issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions