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 transaction source annotation #1902

Merged
merged 19 commits into from
Sep 30, 2022

Conversation

sl0thentr0py
Copy link
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

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 removed this from the 5.5.0 milestone Sep 28, 2022
@sl0thentr0py sl0thentr0py added this to the Dynamic Sampling milestone Sep 28, 2022
sentry-ruby/lib/sentry/scope.rb Outdated Show resolved Hide resolved
sentry-rails/lib/sentry/rails/action_cable.rb Outdated Show resolved Hide resolved
sentry-ruby/lib/sentry/transaction.rb Outdated Show resolved Hide resolved
sentry-ruby/lib/sentry/transaction.rb Outdated Show resolved Hide resolved
@@ -18,7 +18,7 @@ class Event
event_id level timestamp
release environment server_name modules
message user tags contexts extra
fingerprint breadcrumbs transaction
Copy link
Collaborator

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
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.

sentry-ruby/lib/sentry/transaction.rb Outdated Show resolved Hide resolved
@@ -13,7 +13,7 @@

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

Choose a reason for hiding this comment

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

🤦‍♂️ my bad

Copy link
Collaborator

@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