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 tracing support to ActionCable integration #1640

Merged
merged 5 commits into from
Dec 25, 2021

Conversation

st0012
Copy link
Collaborator

@st0012 st0012 commented Dec 12, 2021

  1. Add tracing support.

截圖 2021-12-12 20 21 06

  1. Use contexts instead of extras for the additional data.

截圖 2021-12-12 20 19 58

@st0012 st0012 added this to the 4.9.0 milestone Dec 12, 2021
@st0012 st0012 self-assigned this Dec 12, 2021
@st0012 st0012 added this to In progress in 4.x via automation Dec 12, 2021
@codecov-commenter
Copy link

codecov-commenter commented Dec 12, 2021

Codecov Report

Merging #1640 (0e4b010) into master (ce10521) will increase coverage by 0.03%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1640      +/-   ##
==========================================
+ Coverage   98.45%   98.49%   +0.03%     
==========================================
  Files         135      135              
  Lines        7505     7570      +65     
==========================================
+ Hits         7389     7456      +67     
+ Misses        116      114       -2     
Impacted Files Coverage Δ
sentry-rails/lib/sentry/rails/action_cable.rb 92.00% <100.00%> (+3.11%) ⬆️
...entry-rails/spec/sentry/rails/action_cable_spec.rb 100.00% <100.00%> (ø)
sentry-ruby/lib/sentry/background_worker.rb 100.00% <0.00%> (+5.55%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ce10521...0e4b010. Read the comment docs.

@st0012 st0012 changed the title Improve ActionCable integration Adding tracing support to ActionCable integration Dec 12, 2021
@st0012 st0012 changed the title Adding tracing support to ActionCable integration Add tracing support to ActionCable integration Dec 12, 2021
@st0012 st0012 force-pushed the improve-action-cable-integration branch from 0e4b010 to 8363681 Compare December 12, 2021 20:49
Copy link
Member

@sl0thentr0py sl0thentr0py left a comment

Choose a reason for hiding this comment

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

LGTM!

@st0012 st0012 merged commit 1f59f0b into master Dec 25, 2021
4.x automation moved this from In progress to Done Dec 25, 2021
@st0012 st0012 deleted the improve-action-cable-integration branch December 25, 2021 14:10
end
end

def start_transaction(env, transaction_name)
sentry_trace = env["HTTP_SENTRY_TRACE"]
Copy link
Contributor

Choose a reason for hiding this comment

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

It's not possible to define HTTP headers on WebSocket connections from Javascript to specify the trace ID. And the Sentry JS library only seems to append the trace id to XHR's. So I'm not sure how to actually use this feature?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
4.x
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

4 participants