-
-
Notifications
You must be signed in to change notification settings - Fork 170
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
feat: extend performance API with explicit timings #1093
base: master
Are you sure you want to change the base?
Conversation
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1093 +/- ##
==========================================
+ Coverage 82.40% 82.46% +0.05%
==========================================
Files 53 53
Lines 7760 7806 +46
Branches 1215 1215
==========================================
+ Hits 6395 6437 +42
- Misses 1254 1258 +4
Partials 111 111 |
event_id = sentry_transaction_finish(tx); | ||
TEST_CHECK(!sentry_uuid_is_nil(&event_id)); | ||
if (timestamped) { | ||
sentry_uuid_t event_id = sentry_transaction_finish_ts(tx, 4); |
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.
Since the transaction gets destroyed at this point, I'm not sure if there is a unit-test way to check if the timestamp got set correctly. Would we need an integration test for this?
@@ -378,7 +378,7 @@ sentry__value_span_new_n(size_t max_spans, sentry_value_t parent, | |||
sentry_value_new_string_n(description.ptr, description.len)); | |||
sentry_value_set_by_key(child, "start_timestamp", | |||
sentry__value_new_string_owned( | |||
sentry__usec_time_to_iso8601(sentry__usec_time()))); | |||
sentry__usec_time_to_iso8601(timestamp))); |
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.
Should our API's in-code docs mention what kind of timestamp we 'expect' (e.g. a value relative to the epoch time)?
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.
Yes, and also that the unit of time is microseconds.
Fixes #941