optimistic-gold
optimistic-gold14mo ago

:disableTelemetry prop in the Refine node does not exist, how to disable telemetry?

The manual states that one can disable telemetry by adding the prop disableTelemetry to the Refine node. But this prop doesn't exist. So how you can disable telemetry?
18 Replies
kapa.ai
kapa.ai14mo ago
Hi @heinzmandala. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
kapa.ai
kapa.ai14mo ago
---------------------- You can disable telemetry in refine by adding the disableTelemetry prop to the <Refine /> component or by setting the REFINE_NO_TELEMETRY=true environment variable. Here are the relevant extracts: 1. Opt-out by adding disableTelemetry prop (https://refine.dev/docs/further-readings/telemetry):
You can opt out of telemetry by simply adding `disableTelemetry` prop to the `<Refine />` component.

You can opt out of telemetry by simply adding `disableTelemetry` prop to the `<Refine />` component.

2. Opt-out by setting environment variable (https://refine.dev/docs/further-readings/telemetry):
You can opt out of telemetry by simply adding `REFINE_NO_TELEMETRY=true` to environment variables.

You can opt out of telemetry by simply adding `REFINE_NO_TELEMETRY=true` to environment variables.

Please make sure to review the telemetry documentation (https://refine.dev/docs/further-readings/telemetry) for more information on how to disable telemetry in refine. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai14mo ago
<@700583944378122250> kapa.ai is still learning and improving, please let us how it did by reacting below
optimistic-gold
optimistic-gold14mo ago
@kapa.ai But the generated project does not support .env files.
kapa.ai
kapa.ai14mo ago
Let me check the knowledge base for you. One moment! :books: ---------------------- I apologize for the confusion. While the extracts don't mention the use of .env files specifically, you can still create a .env file in your project's root directory and add the REFINE_NO_TELEMETRY=true environment variable to disable telemetry. Here's how you can do it: 1. Create a .env file in your project's root directory. 2. Add the following line to the .env file:
REFINE_NO_TELEMETRY=true

REFINE_NO_TELEMETRY=true

3. Save the file and restart your development server. This should disable telemetry for your refine project. For more information on telemetry and how to opt-out, please refer to the telemetry documentation (https://refine.dev/docs/further-readings/telemetry). ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai14mo ago
<@700583944378122250> kapa.ai is still learning and improving, please let us how it did by reacting below
modern-teal
modern-teal14mo ago
Looks like we’ve missed to update this in the telemetry docs but here’s the docs for the <Refine> component https://refine.dev/docs/api-reference/core/components/refine-config/#disabletelemetry The property is inside the options prop 🙏
| refine
`` component is the entry point of a refine app. It is where the highest level of configuration of the app occurs.
optimistic-gold
optimistic-gold14mo ago
@kapa.ai I exactly did this, but I still see a telemetry GET request.
kapa.ai
kapa.ai14mo ago
Let me check the knowledge base for you. One moment! :books:
optimistic-gold
optimistic-gold14mo ago
@aliemirs Ah ok! Thx for the info.
kapa.ai
kapa.ai14mo ago
---------------------- I apologize for the confusion. Based on the provided extracts, the recommended way to disable telemetry is by adding the disableTelemetry prop to the <Refine /> component in your project. Here's the relevant extract from the refine documentation (https://refine.dev/docs/api-reference/core/components/refine-config):
You can disable this by setting `disableTelemetry` to `true`.
You can disable this by setting `disableTelemetry` to `true`.
To disable telemetry, update your <Refine /> component in your project like this:
<Refine disableTelemetry={true}>
{/* Your other configurations */}
</Refine>
<Refine disableTelemetry={true}>
{/* Your other configurations */}
</Refine>
If you still see telemetry requests after making this change, it's possible that there might be an issue with the implementation. In that case, I recommend referring to the refine documentation (https://refine.dev/docs) and GitHub repository (https://github.com/pankod/refine) for further assistance or to report the issue. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
Overview | refine
What is refine?
GitHub
GitHub - refinedev/refine: Build your React-based CRUD applications...
Build your React-based CRUD applications, without constraints. - GitHub - refinedev/refine: Build your React-based CRUD applications, without constraints.
kapa.ai
kapa.ai14mo ago
<@700583944378122250> kapa.ai is still learning and improving, please let us how it did by reacting below
optimistic-gold
optimistic-gold14mo ago
@aliemirs The entry in the .env file does not seem to work. Will try the config node @aliemirs Thanks, inside options{} it works nicely. I wonder if there is something wrong with the .env support? The project includes react-scripts, so .env support should work ootb. Weird... I also restarted the dev server of course. I can see that REFINE_NO_TELEMETRY is parsed in utils/env/index.ts. @aliemirs PORT works in .env file, REFINE_NO_TELEMETRY=true has no effect. @kapa.ai the .env support in refine seems to be broken, any idea how to enable it?
kapa.ai
kapa.ai14mo ago
Let me check the knowledge base for you. One moment! :books:
kapa.ai
kapa.ai14mo ago
---------------------- Hmm, I don't know enough to give you a confident answer yet. I recommend referring to the refine documentation (https://refine.dev/docs) for more information on environment variables and configuration. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
Overview | refine
What is refine?
kapa.ai
kapa.ai14mo ago
<@700583944378122250> kapa.ai is still learning and improving, please let us how it did by reacting below
modern-teal
modern-teal14mo ago
Hey @heinzmandala the env variable is for the CLI package, does not have effects on the core package
optimistic-gold
optimistic-gold14mo ago
ah ok!