-
-
Notifications
You must be signed in to change notification settings - Fork 0
feat(sentry): Add sentry #48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
|
||
| let parsed: Value = serde_json::from_reader(fs::File::open(&values_file)?)?; | ||
|
|
||
| // Extract generated_at if present |
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.
and because the json should always generated by the sentry options write, this property should also always be present right
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.
yea it should be
| } | ||
| } | ||
|
|
||
| transaction.finish(); |
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.
do we know how long this could take? does it block the main thread?
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.
i do not know, but don't think this overhead would be too important i'd assume its < 1 sec and won't impact option reads at all which is the important part
| /// Uses a custom Client that is completely isolated from the host application's Sentry setup. | ||
| static SENTRY_HUB: OnceLock<Arc<sentry::Hub>> = OnceLock::new(); | ||
|
|
||
| fn get_sentry_hub() -> &'static Arc<sentry::Hub> { |
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.
You may ask why this is necessary? It's because I don't want to conflict with a user's sentry instance where they use init(). Creating an entirely different hub here ensures we only send to our DSN
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.
makes sense to me
https://linear.app/getsentry/issue/DI-1457/observability-into-option-reads-and-propagation-time