Skip to content

feat: Send transactions in envelopes #729

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

Merged
merged 1 commit into from
Jun 26, 2020

Conversation

rhcarvalho
Copy link
Contributor

@rhcarvalho rhcarvalho commented Jun 22, 2020

This matches what the JS SDK does and what the Tracing dev docs indicates.

Related: #730

@rhcarvalho rhcarvalho force-pushed the rhcarvalho/send-transactions-as-envelopes branch from 3910fa9 to 7c68b5e Compare June 25, 2020 19:53
This matches what the JS SDK does and what the Tracing dev docs
indicates.
@rhcarvalho rhcarvalho force-pushed the rhcarvalho/send-transactions-as-envelopes branch from 7c68b5e to 2e613a2 Compare June 25, 2020 20:59
@rhcarvalho rhcarvalho marked this pull request as ready for review June 26, 2020 08:07
@rhcarvalho rhcarvalho requested a review from untitaker June 26, 2020 08:07
@@ -22,7 +22,8 @@ def test_basic(sentry_init, capture_events, sample_rate):
pass

if sample_rate:
(event,) = events
Copy link
Member

Choose a reason for hiding this comment

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

I really like this pattern! :P

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't dislike it. The problem was the kind of output we were getting when the test fails "not enough values to unpack" or "too many values to unpack", no clue what the events were.

The fix is adding an assert so that pytest handles printing the contents of events. Could have kept the unpacking, but now I don't want to trigger CI again.

Copy link
Member

Choose a reason for hiding this comment

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

that's also been a complaint from @mitsuhiko. I might make a pytest plugin that does something similar to assertion rewrites

@rhcarvalho rhcarvalho merged commit 391396a into master Jun 26, 2020
@rhcarvalho rhcarvalho deleted the rhcarvalho/send-transactions-as-envelopes branch June 26, 2020 09:59
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.

2 participants