bitdriftlabs / capture-sdk

mobile bitdrift SDK
Other
14 stars 3 forks source link

Support disabling the capture SDK #63

Open pyricau opened 1 month ago

pyricau commented 1 month ago

There doesn't seem to be a way to turn off the SDK? i.e. once configured, it's running. Ideally we could have a flag and live turn it on / off, which would make us feel safer about rolling it out

mattklein123 commented 1 month ago

@pyricau disable semantics are a bit complicated. What is the behavior that you want to see? Something like no more network traffic and all logging functions become NOP? Something else?

mattklein123 commented 1 month ago

(We have an internal mechanism to kill all network traffic already but would want to better understand what else you would want exposed.)

murki commented 3 weeks ago

This is particularly important for the case of enabled-by-default, disabled-by-request, since it makes sense that the SDK would be initialized early on and potentially disabled on demand later. We will work on adding this.