Skip to content

Add transaction source annotation#1902

Merged
sl0thentr0py merged 19 commits intoneel/baggage-dsc-continuationfrom
neel/tx-source
Sep 30, 2022
Merged

Add transaction source annotation#1902
sl0thentr0py merged 19 commits intoneel/baggage-dsc-continuationfrom
neel/tx-source

Conversation

@sl0thentr0py
Copy link
Copy Markdown
Member

@sl0thentr0py sl0thentr0py commented Sep 19, 2022

See https://develop.sentry.dev/sdk/event-payloads/transaction/#transaction-annotations for spec.

This is necessary going forward because we need to separate high cardinality / low quality (for us, only raw urls from rack) to enable ingestion to do metrics aggregation without blowing up.

Note: This is independent in principle, but I'm basing it off the baggage changes since all of this needs to go out together anyway and some of the Transaction constructors changed and would cause merge conflicts otherwise.

closes #1866

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Sep 20, 2022

Codecov Report

Base: 98.42% // Head: 98.43% // Increases project coverage by +0.01% 🎉

Coverage data is based on head (d1768b6) compared to base (8fae12f).
Patch coverage: 97.77% of modified lines in pull request are covered.

Additional details and impacted files
@@                        Coverage Diff                        @@
##           neel/baggage-dsc-continuation    #1902      +/-   ##
=================================================================
+ Coverage                          98.42%   98.43%   +0.01%     
=================================================================
  Files                                150      150              
  Lines                               9183     9195      +12     
=================================================================
+ Hits                                9038     9051      +13     
+ Misses                               145      144       -1     
Impacted Files Coverage Δ
sentry-ruby/lib/sentry/event.rb 98.76% <ø> (ø)
sentry-ruby/lib/sentry/rake.rb 65.00% <0.00%> (ø)
...entry-delayed_job/lib/sentry/delayed_job/plugin.rb 100.00% <100.00%> (ø)
sentry-rails/lib/sentry/rails/action_cable.rb 100.00% <100.00%> (ø)
sentry-rails/lib/sentry/rails/active_job.rb 100.00% <100.00%> (ø)
...entry-rails/lib/sentry/rails/capture_exceptions.rb 100.00% <100.00%> (+3.44%) ⬆️
...y-rails/lib/sentry/rails/controller_transaction.rb 100.00% <100.00%> (ø)
sentry-resque/lib/sentry/resque.rb 97.22% <100.00%> (+0.07%) ⬆️
sentry-ruby/lib/sentry/rack/capture_exceptions.rb 95.45% <100.00%> (ø)
sentry-ruby/lib/sentry/scope.rb 100.00% <100.00%> (ø)
... and 7 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Base automatically changed from neel/baggage-dsc-head to neel/baggage-dsc-continuation September 27, 2022 09:47
@st0012 st0012 added this to the 5.5.0 milestone Sep 27, 2022
@sl0thentr0py sl0thentr0py marked this pull request as ready for review September 27, 2022 16:24
@sl0thentr0py sl0thentr0py requested a review from st0012 September 27, 2022 16:38
@sl0thentr0py sl0thentr0py modified the milestones: 5.5.0, Dynamic Sampling Sep 28, 2022
event_id level timestamp
release environment server_name modules
message user tags contexts extra
fingerprint breadcrumbs transaction
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It looks like a TransactionEvent-only attribute? If that's the case, can we put it there?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I had it there first, but then moved it here because it's always coupled to the transaction field.

let(:client) { Sentry::Client.new(configuration) }
let(:hub) do
Sentry::Hub.new(client, subject)
Sentry::Hub.new(client, Sentry::Scope.new)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🤦‍♂️ my bad

Copy link
Copy Markdown
Contributor

@st0012 st0012 left a comment

Choose a reason for hiding this comment

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

👍

@sl0thentr0py sl0thentr0py merged commit a558764 into neel/baggage-dsc-continuation Sep 30, 2022
@sl0thentr0py sl0thentr0py deleted the neel/tx-source branch September 30, 2022 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants