: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
Hi @heinzmandala. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
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):
2. Opt-out by setting environment variable (https://refine.dev/docs/further-readings/telemetry):
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:
----------------------Telemetry | refine
Summary
<@700583944378122250> kapa.ai is still learning and improving, please let us how it did by reacting below
sensitive-blue•17mo ago
@kapa.ai But the generated project does not support .env files.
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:
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:
----------------------<@700583944378122250> kapa.ai is still learning and improving, please let us how it did by reacting below
genetic-orange•17mo 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.
sensitive-blue•17mo ago
@kapa.ai I exactly did this, but I still see a telemetry GET request.
Let me check the knowledge base for you. One moment! :books:
sensitive-blue•17mo ago
@aliemirs Ah ok! Thx for the info.
----------------------
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):
To disable telemetry, update your <Refine />
component in your project like this:
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.
<@700583944378122250> kapa.ai is still learning and improving, please let us how it did by reacting below
sensitive-blue•17mo 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?
Let me check the knowledge base for you. One moment! :books:
----------------------
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?