Skip to content

[Structured logging] Stringify u64 attributes #845

@lcian

Description

@lcian

How do you use Sentry?

Sentry SaaS (sentry.io)

SDK version

latest

Steps to reproduce

Log something with an attribute with a value higher than max i64 and lower than max u64

Expected result

Correct attribute value in Sentry, matching the one that is logged to the console.

Actual result

serde serializes it as float and there can be loss of precision.
We should make sure that these values are actually serialized as string instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't workingLogsRustSDK

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions