getsentry / getsentry/sentry

logs attribute naming conflict

Open
#120,640 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Product Area: Explore
Dominant language
Python
Stars
44.8k
Forks
4.9k
Avg merge
21h 23m
Merged PRs (30d)
607

Description

Environment

SaaS (https://sentry.io/)

Steps to Reproduce
  1. Generate a log with something like:
const origin = "http://disallowed.com";
log.warn({ origin }, 'Received request from disallowed origin');
  1. Try query logs with origin:
Image
Expected Result

I can very clearly see the origin attribute in the individual logs, and the value is correct (not auto.log.pino). However, I should be able to filter/query by it in the dashboard without it being overwritten by what I assume is an internal origin field added by Sentry.

Actual Result
Image
Product Area

Explore

Link

https://freecodecamp.sentry.io/explore/logs/?aggregateField=%7B%22groupBy%22%3A%22origin%22%7D&aggregateField=%7B%22yAxes%22%3A%5B%22count%28message%29%22%5D%7D&environment=api-org&logsFields=timestamp&logsFields=message&logsFields=origin&logsQuery=message%3A%22Received%20request%20from%20disallowed%20origin%22&logsSortBys=-origin&mode=aggregate&project=4508182869508096&statsPeriod=7d

DSN

No response

Version

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the conflict using the TypeScript log example and the linked Sentry Explore query. Start by tracing how the origin attribute is displayed versus how the Explore dashboard aggregates and filters it. Done means user-provided origin values remain queryable without being overwritten by Sentry’s internal field.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
observability
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.