# NewRelic

Your instance comes with the **NewRelic** module already pre-installed. In order to activate it, you must [create a NewRelic account](https://newrelic.com/signup) and configure the NewRelic license key in the User Portal.

You can get your account NewRelic key by following the instructions here - <https://docs.newrelic.com/docs/accounts/install-new-relic/account-setup/license-key>

{% hint style="danger" %}
**Important!**

For the application name in NewRelic, use the namespace of your instance but without "readymage-" prefix. E.g., if your namespace is "readymage-mystore-yud-1631089038", use the "mystore-yud-1631089038" application name in NewRelic
{% endhint %}

Once you have your license key you have to go to the **User Portal → Project → Selected Instance → Service Management → NewRelic** tab and configure it there.&#x20;

To disconnect NewRelic, remove the key and press the *Connect* button.

<figure><img src="/files/VYGZCck8RoWVDeiRJqDK" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
Enable NewRelic Distributed Tracing to track requests across the microservices, more information can be found [here](https://docs.newrelic.com/docs/distributed-tracing/concepts/introduction-distributed-tracing/).
{% endhint %}

{% hint style="danger" %}
Enabling Distributed Tracing functionality generates a lot of traffic which may leads to extra billing costs.
{% endhint %}

## Single Page App Monitoring

ScandiPWA is a SPA (Single Page Application). To make the most of NewRelic and be able to have metrics about page load times you must enable Single Page App monitoring.

![](/files/-MN3x0P8aFGNoyjcWr0F)

Learn more on how to set up and use Single Page App monitoring in [official NewRelic documentation](https://docs.newrelic.com/docs/browser/single-page-app-monitoring/get-started/introduction-single-page-app-monitoring).


---

# 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://help.readymage.com/service-management/connect-newrelic.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.
