-
-
Notifications
You must be signed in to change notification settings - Fork 36
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
Add trace propagation #631
Conversation
Instructions and example for changelogPlease add an entry to Example: ## Unreleased
- Add trace propagation ([#631](https://github.com/getsentry/sentry-unreal/pull/631)) If none of the above apply, you can opt out of this check by adding |
plugin-dev/Source/Sentry/Private/Android/Infrastructure/SentryJavaClasses.cpp
Show resolved
Hide resolved
@@ -303,3 +302,36 @@ USentryTransaction* SentrySubsystemApple::StartTransactionWithContextAndOptions( | |||
|
|||
return SentryConvertorsApple::SentryTransactionToUnreal(transaction); | |||
} | |||
|
|||
USentryTransactionContext* SentrySubsystemApple::ContinueTrace(const FString& sentryTrace, const TArray<FString>& baggageHeaders) |
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.
Can we add some tests for this?
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.
Yeah, I've added a basic one. The existing sentry-native
API is quite limited though so it's somewhat problematic to set up thorough testing for the tracing feature.
Co-authored-by: Stefan Jandl <[email protected]>
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.
Thanks!
This PR adds missing APIs required for the distributed tracing feature. Basically, now it's possible to create a new
TransactionContext
based on a given trace header and query existing span/transaction trace info for its further propagation.Closes #627