Hello, is there a way to disable telemetry from sd...
# gooddata-ui
t
Hello, is there a way to disable telemetry from sdk (at least in development) please? Just having constantly polluted console logs as I have addblock on.
yes, I can disable addblock, but also telemetry from dev environment is kinda useless I think
i
Hi Tomas, Thanks for the question. Which version of SDK are you using? I found this that may work depending on your version. https://sdk.gooddata.com/gooddata-ui-apidocs/v10.42.0/docs/sdk-backend-spi.ianalyticalbackend.withtelemetry.html
Copy code
import tigerFactory from "@gooddata/sdk-backend-tiger";

const backend = tigerFactory().withTelemetry({ disabled: true });
// then pass `backend` to <BackendProvider backend={backend}> ...
Could you please try it and let us know if it works? Thank you.
t
Hi Ismail. Thanks for the message. No that does not work. According to that documentation, the method does not accept the options you sent. This is its signature:
withTelemetry(componentName: string, props: object)
I’ve tried anyways, but it does not work. Neither does
.withTelemetry("", { disabled: true })
. Our sdk version is
10.39.0
i
Hi Tomas, thank you for your message. I will ask this internally and update you.
d
Hi Tomas. We raised your question with the product team, will share the answers with you. Until then, would whitelisting the telemetry URLs in AdBlock solve your issue of polluted console logs? For clarity, you don't have a DEV organization (unless I missed something??). Do you mean you would like to disable telemetry in the development phase and re-enable when rolling out your app to customers?
Hi Tomas. The product team confirmed that there is no way to switch telemetry off for specific queries or settings. Telemetry is set on the level of the whole Organization and applies to all access to it. They have noted your requirement and will consider it during future development. We are aware that ad-blockers can interfere with telemetry and we adjust the measurements accordingly. However, we cannot avoid the clutter caused by your ad-blocker in the console. Whitelisting the telemetry URLs in AdBlock sounds like the best option.