Skip to content

feat(sentry): Add sentry.observed_timestamp_nanos - #137

Merged
loewenheim merged 5 commits into
mainfrom
sebastian/sentry-observed-timestamp-nanos
Sep 17, 2025
Merged

feat(sentry): Add sentry.observed_timestamp_nanos#137
loewenheim merged 5 commits into
mainfrom
sebastian/sentry-observed-timestamp-nanos

Conversation

@loewenheim

@loewenheim loewenheim commented Sep 11, 2025

Copy link
Copy Markdown
Contributor

This attribute is added by Relay based on the time an envelope is received.

Closes INGEST-573.

@linear

linear Bot commented Sep 11, 2025

Copy link
Copy Markdown

@cleptric

cleptric commented Sep 11, 2025

Copy link
Copy Markdown
Member

sentry._internal please 😬
Like in #128

@loewenheim

Copy link
Copy Markdown
Contributor Author

The sentry.observed_timestamp_nanos name is already used in a number of places in Relay, sentry, and sentry-mcp. https://github.com/search?q=org%3Agetsentry+sentry.observed_timestamp_nanos&type=code

@cleptric

Copy link
Copy Markdown
Member

Then lets add it as deprecated and point to sentry._internal.observed_timestamp_nanos.

This attribute is added by Relay based on the time an envelope is
received.
@loewenheim
loewenheim force-pushed the sebastian/sentry-observed-timestamp-nanos branch 2 times, most recently from 32b4160 to ad29b7e Compare September 16, 2025 12:31
@loewenheim

Copy link
Copy Markdown
Contributor Author

I've added the attribute both with and without the _internal segment now, the latter is deprecated.

@loewenheim
loewenheim merged commit 7a3f6a2 into main Sep 17, 2025
5 checks passed
@loewenheim
loewenheim deleted the sebastian/sentry-observed-timestamp-nanos branch September 17, 2025 08:52
loewenheim added a commit that referenced this pull request Oct 20, 2025
#137 added
`sentry.observed_timestamp_nanos` as a deprecated attribute and
`sentry._internal.observed_timestamp_nanos` as its non-deprecated
replacement. However, adding the attribute as deprecated was probably a
mistake because it is in active use and no concrete plan was made for a
migration to the `_internal` version. It's also questionable whether
this attribute should be hidden from users in the first place.

Since the `_internal` version is not used anywhere and not written by
Relay, I propose that we delete it and mark the non-`_internal` version
as not deprecated.
loewenheim added a commit that referenced this pull request Oct 29, 2025
#137 added
`sentry.observed_timestamp_nanos` as a deprecated attribute and
`sentry._internal.observed_timestamp_nanos` as its non-deprecated
replacement. However, adding the attribute as deprecated was probably a
mistake because it is in active use and no concrete plan was made for a
migration to the `_internal` version. It's also questionable whether
this attribute should be hidden from users in the first place.

Since the `_internal` version is not used anywhere and not written by
Relay, I propose that we delete it and mark the non-`_internal` version
as not deprecated.
loewenheim added a commit that referenced this pull request Oct 29, 2025
#137 added
`sentry.observed_timestamp_nanos` as a deprecated attribute and
`sentry._internal.observed_timestamp_nanos` as its non-deprecated
replacement. However, adding the attribute as deprecated was probably a
mistake because it is in active use and no concrete plan was made for a
migration to the `_internal` version. It's also questionable whether
this attribute should be hidden from users in the first place.

Since the `_internal` version is not used anywhere and not written by
Relay, I propose that we delete it and mark the non-`_internal` version
as not deprecated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants