Uh oh!
There was an error while loading. Please reload this page.
Add config.instrumenter to switch between sentry and otel instrumentation - #1944
Conversation
codecov-commenter
commented
Nov 22, 2022
Codecov ReportBase: 98.33% // Head: 98.33% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@## master #1944 +/- ##
=======================================
Coverage 98.33% 98.33% =======================================
Files 151 151 Lines 9306 9369 +63 =======================================
+ Hits 9151 9213 +62 - Misses 155 156 +1
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. |
st0012
commented
Nov 24, 2022
Should this be applied to |
sl0thentr0py
commented
Nov 28, 2022
@st0012 so the idea was to make this config as non-interfering as possible, since we don't know the future of this feature. I don't want to add top-level apis we commit to for now, so the idea was to no-op the top-level hub I added the rails check because of the span nil issue, which is fine in this case I think to avoid all the checks. Potential users of |
AbhiPrasad
commented
Nov 28, 2022
Do we do error monitoring/add breadcrumbs via sentry-rails|sidekiq|delayed_job|resque? If yes, this will mean that they have to use these integrations anyway. |
sl0thentr0py
commented
Nov 28, 2022
hmm yea, nvm you're right, ignore that second argument |
st0012
commented
Nov 28, 2022
@sl0thentr0py Can you also add tests to those integrations to make sure they don't raise errors when the instrumenter is |
248ad25 to
9097a81Compare9097a81 to
09f1c1bComparesl0thentr0py
commented
Nov 28, 2022
added config/otel specs to other gems |
The new
config.instrumenterwill act as a top-level switch to disable on sentry transactions/spans when we are in:otelmode.:sentrystart_transactionandwith_child_spanAPIs when the instrumenter don't match with the currently active instrumenter (defaults to:sentry)