Skip to content

Logs timestamp conversion issue #100599

@rodolfoBee

Description

@rodolfoBee

Environment

SaaS (https://sentry.io/)

Steps to Reproduce

NA

Expected Result

UI shows the same timestamp as collected by the SDK.

Actual Result

Sentry collects the log's timestamp with millisecond precision, but the stored value is set to nanoseconds:

"name": "sentry.timestamp_nanos",
 "type": "str",
"value": "1759221544818000000"

When showing in the UI, this value is converted back to ms, which can lead to different values, in this case 1759221544817.9998:
Image

Suggested solution is to simply truncate the value in the UI instead of converting it as the last 6 digits will always be 000000

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