feat!: remove enable_logs/metrics - #1980
Conversation
abe79de to
6522a1f
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 6522a1f. Configure here.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1980 +/- ##
=======================================
Coverage 74.22% 74.22%
=======================================
Files 104 104
Lines 25361 25340 -21
Branches 4534 4527 -7
=======================================
- Hits 18824 18809 -15
+ Misses 5237 5232 -5
+ Partials 1300 1299 -1 🚀 New features to boost your workflow:
|
|
Consensus changed towards making |
| sentry__logs_startup(options); | ||
| sentry__metrics_startup(options); |
There was a problem hiding this comment.
one of my only concerns here is starting the batcher threads for every SDK user now, even if they never call a single log/metric API. but think there's probably no real way around this 🤔
There was a problem hiding this comment.
Yeah, these unconditional threads are a bit annoying, but fortunately quite cheap because they don't do anything besides waiting on the condition variable.
Perhaps lazy batcher creation/start could be one option? It might introduce some latency for the first log/metric call, but it would be justified because it speeds up SDK init for everyone, and moves the cost for those who actually use logs and metrics...
There was a problem hiding this comment.
I had a prototype of this approach in #1611 that we ended up not doing back then, but might be worth reconsidering 👀
|
I created a follow-up docs PR getsentry/sentry-docs#19041 , to be merged after we release this one |

Important
BREAKING CHANGE
Remove
sentry_options_get/set_enable_logsandsentry_options_get/set_enable_metrics