-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
feat(profiling): Add support for Rust profiles ingestion #1296
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! Just a few minor comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving this ahead of time, please see the comments below for minor changes on field names and types used.
relay-server/src/utils/profile.rs
Outdated
pub struct RustSample { | ||
pub frames: Vec<RustFrame>, | ||
pub thread_name: String, | ||
pub thread_id: u64, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The thread_id can be alphanumeric on some platforms, at least we also support strings in the event protocol. Are you certain you can constrain this to u64
? See ThreadId
. You could import and use this enum directly here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rust as_nanos returns u128. Unfortunately we can't store u128 into the DB, nor can Golang handle u128. As a fix here some fields are refactored to hold u64 values. That's enough to store the timing info we need without causing an overflow.
… and rust for debug images
8db77e2
to
977502c
Compare
This PR aims at supporting the ingestion of Rust profiles.
This was tested e2e by sending and ingesting a sample rust profile.
Link to related
sentry
PR