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

tower: Use tx.set_request() to set HTTP request metadata #571

Merged
merged 1 commit into from Apr 25, 2023

Conversation

Turbo87
Copy link
Contributor

@Turbo87 Turbo87 commented Apr 25, 2023

Without this the transaction does not have any HTTP request metadata attached, because apparently the event processor is not running for performance traces. After this patch the performance trace looks like this:

Bildschirmfoto 2023-04-25 um 14 36 10

Note that I had to reorder the contents of the configure_scope() callback to be able to access sentry_req before it disappears into the add_event_processor() callback.

This should address #439 (review)

/cc @Swatinem

Without this the transaction does not have any HTTP request metadata attached, because apparently the event processor is not running for performance traces.

Note that I had to reorder the contents of the `configure_scope()` callback to be able to access `sentry_req` before it disappears into the `add_event_processor()` callback.
@codecov
Copy link

codecov bot commented Apr 25, 2023

Codecov Report

Merging #571 (c92f83d) into master (cf7d956) will decrease coverage by 0.02%.
The diff coverage is 0.00%.

❗ Current head c92f83d differs from pull request most recent head 3aeb946. Consider uploading reports for the commit 3aeb946 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #571      +/-   ##
==========================================
- Coverage   70.58%   70.57%   -0.02%     
==========================================
  Files          66       66              
  Lines        6704     6705       +1     
==========================================
  Hits         4732     4732              
- Misses       1972     1973       +1     

@Swatinem Swatinem merged commit 2a00742 into getsentry:master Apr 25, 2023
12 checks passed
@Turbo87 Turbo87 deleted the tower-transaction-request branch April 25, 2023 15:09
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.

None yet

2 participants