Add config.instrumenter to switch between sentry and otel instrumentation#1944
Add config.instrumenter to switch between sentry and otel instrumentation#1944sl0thentr0py merged 1 commit intomasterfrom
Conversation
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. |
|
Should this be applied to |
|
@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 |
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. |
|
hmm yea, nvm you're right, ignore that second argument |
|
@sl0thentr0py Can you also add tests to those integrations to make sure they don't raise errors when the instrumenter is |
248ad25 to
9097a81
Compare
9097a81 to
09f1c1b
Compare
|
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)