sentry-rust
sentry-rust copied to clipboard
feat: put sentry_debug! logs behind feature flag
Description
feature/chore to allow for enabling and disabling [sentry] debug logs. I was getting my container and other log systems filled with logs like this:
[sentry] [LogsBatcher] Flushing 31 logs
[sentry] Get response: `{"id":"f42674c3591b41dfa855d216760a9ea8"}`
Totally get having the debug logs there and I understand their use but I wanted the ability to disable them.
Perhaps another approach could be to make them traces at the trace/debug level if tracing flag is enabled that way people could opt in with level filters?
For now I've just feature flagged the macro to a no-op when used if the debug_logs flag is not enabled.
Happy for input or thoughts but I would personally love this.
Issues
N/A