# Telemetry

Diffblue Cover captures telemetry (usage) data to help improve Cover services and features. Data is sent to the following endpoints:

* **Diffblue** - Telemetry data is sent to Diffblue by default.
* **Cover Reports** - Telemetry data can be sent to your Cover Reports instance (if required), allowing you to monitor Diffblue Cover usage across your organization.

Further information on our data collection and policies is provided in the [Diffblue Privacy Notice](/legal/diffblue-legal/privacy-notice.md).

## Configure telemetry

Telemetry can be configured (if required) using environment variables, and/or a properties file, on the host machine (where Diffblue Cover is being used). Note that these configuration settings apply to Cover Plugin **and** Cover CLI.

* Environment variables always take priority and is the recommended method for configuring telemetry - variables listed below.
* If you use a properties file, create a `telemetry.properties` file in the home directory under the `.diffblue` folder (for example, `/users/joeblogs/.diffblue/telemetry.properties`) and define one or more of the properties listed below.
* If an individual environment variable or property is not found, the default value will be used.

<table data-full-width="false"><thead><tr><th width="239">Environment variable</th><th width="138">Property</th><th width="263">Description</th><th width="131">Default</th></tr></thead><tbody><tr><td><code>DIFFBLUE_TELEMETRY_</code><br><code>EXTERNAL_ENABLED</code></td><td><p><code>telemetry.</code></p><p><code>external.</code></p><p><code>enabled</code></p></td><td>Enable (<code>true</code>) or disable (<code>false</code>) telemetry data for Diffblue. <strong>*</strong></td><td><code>true</code></td></tr><tr><td><code>DIFFBLUE_TELEMETRY_</code><br><code>REPORTS_ENABLED</code></td><td><p><code>telemetry.</code></p><p><code>reports.</code></p><p><code>enabled</code></p></td><td>Enable (<code>true</code>) or disable (<code>false</code>) telemetry data for Cover Reports. <strong>**</strong></td><td><code>false</code></td></tr><tr><td><code>DIFFBLUE_TELEMETRY_</code><br><code>REPORTS_HOSTNAME</code></td><td><p><code>telemetry.</code></p><p><code>reports.</code></p><p><code>hostname</code></p></td><td>Hostname of your Cover Reports server. <strong>**</strong></td><td><code>localhost</code></td></tr><tr><td><code>DIFFBLUE_TELEMETRY_</code><br><code>REPORTS_PORT</code></td><td><p><code>telemetry.</code></p><p><code>reports.</code></p><p><code>port</code></p></td><td>Port number of your Cover Reports instance <strong>**</strong></td><td><code>8080</code></td></tr><tr><td><code>DIFFBLUE_TELEMETRY_</code><br><code>REPORTS_SCHEME</code></td><td><p><code>telemetry.</code></p><p><code>reports.</code></p><p><code>scheme</code></p></td><td>Protocol used to communicate with Cover Reports - <code>http</code> or <code>https</code> <strong>**</strong></td><td><code>http</code></td></tr></tbody></table>

> **\*** Disabling the Diffblue endpoint for telemetry data is only available to Diffblue Cover Enterprise Edition customers.
>
> **\*\*** See your Cover Reports Administrator for help, if needed.

{% hint style="info" %}
If IntelliJ is open when making any telemetry configuration updates, you'll need to restart IntelliJ to apply the changes.
{% endhint %}

**Example `telemetry.properties` file:**

```
# Copyright 2021-2024 Diffblue Limited. All Rights Reserved.
# Example telemetry.properties file
telemetry.external.enabled=true
telemetry.reports.enabled=true
telemetry.reports.hostname=localhost
telemetry.reports.port=8080
telemetry.reports.scheme=http
```

## Manage configurations

If you need to manage telemetry configuration across your organization, you can set the environment variables defined above (as needed) and apply these settings across your organization (for example, using a group policy).

{% hint style="info" %}
From release 2024.01.02, it is no longer possible to repackage Cover Plugin with telemetry disabled.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cover-docs-preview.diffblue.com/features/cover-plugin/cover-plugin-admin/telemetry.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
