-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
Distributed tracing: Fixing clock skew #714
Comments
The UE SDK doesn't currently provide an interface to override transaction and span timestamps. However, the underlying Alternatively, you can try using lower-level calls to the native SDK to modify transaction/span objects directly like this: uint64_t correctedTimestamp = /* your corrected UNIX timestamp */;
sentry_value_set_by_key(transaction, "start_timestamp",
sentry__value_new_string_owned(sentry__usec_time_to_iso8601(correctedTimestamp))); |
Thanks for the response. What's the correct way to call |
@Acren I've opened a PR (#715) that adds these new APIs to Unreal plugin. Currently, their usage is limited to Windows and Linux so that's something to keep in mind if you're considering to support Apple/Android. You can give it a try by downloading the updated package from our GitHub CI.
You can't access native transaction objects directly. Instead, you'll need to add timestamp setter to
No, Sentry backend treats tags and extra data differently so you won't be able to achieve the exact same result by using those. |
Thanks a lot for that, I tried that version and it works perfectly. |
Awesome, thank you for confirming it works! |
Hello,
We are using the new distributed tracing in the UE SDK with our other services running Sentry.
This is working well other than the clock skew.
The documentation notes:
So, following this, if we use an NTP server as suggested to calculate the corrected local time, how do we then use the corrected time with the Sentry SDK to fix the transaction and span timestamps?
Much thanks,
Sam
The text was updated successfully, but these errors were encountered: