Skip to content
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

Merged
merged 11 commits into from
Oct 9, 2024
Merged

Add trace propagation #631

merged 11 commits into from
Oct 9, 2024

Conversation

tustanivsky
Copy link
Collaborator

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

Copy link
Contributor

github-actions bot commented Sep 9, 2024

Fails
🚫 Please consider adding a changelog entry for the next release.
Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Instructions and example for changelog

Please add an entry to CHANGELOG.md to the "Unreleased" section. Make sure the entry includes this PR's number.

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 #skip-changelog to the PR description.

Generated by 🚫 dangerJS against 3933fd6

@tustanivsky tustanivsky changed the title Feat/trace propagation Add trace propagation Sep 9, 2024
@tustanivsky tustanivsky marked this pull request as ready for review September 10, 2024 06:34
CHANGELOG.md Outdated 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)
Copy link
Contributor

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?

Copy link
Collaborator Author

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.

Copy link
Contributor

@bitsandfoxes bitsandfoxes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@bitsandfoxes bitsandfoxes merged commit be32823 into main Oct 9, 2024
10 of 11 checks passed
@bitsandfoxes bitsandfoxes deleted the feat/trace-propagation branch October 9, 2024 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add trace propagation capabilities
2 participants