Skip to content

Logs: Cannot filter by custom boolean attributes - "Invalid key" errorΒ #106809

@Kobby-Bawuah

Description

@Kobby-Bawuah

Environment

SaaS (https://sentry.io/)

Steps to Reproduce

  1. Send logs to Sentry with a custom boolean attribute (e.g., isManual: true) using SDK v9.x with _experiments: { enableLogs: true }
  2. Go to Explore β†’ Logs
  3. Find a log entry containing the boolean attribute
  4. Expand the log entry to view its attributes
  5. Click the "+ Add to filter" link next to the boolean attribute (e.g., isManual)

Expected Result

The filter isManual is true is added and logs are filtered to show only entries where the boolean attribute equals true.

Actual Result

  • An error tooltip appears: "Invalid key. 'tags[isManual,boolean]' is not a supported search key."

  • The query does not return the expected results

  • Attempting to manually type isManual is "" shows a different error: "Invalid number. Expected number then optional k, m, or b suffix (e.g. 500k)"

Screenshot 1 - Error when filtering by boolean attribute:

Image

Screenshot 2 - Invalid number error when value is empty:

Image

Product Area

Explore

Link

No response

DSN

No response

Version

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Waiting for: Product Owner

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions