> Markdown version of [New Relic](https://vaadin.com/docs/next/tools/observability/integrations/newrelic). Section index: [llms.txt](https://vaadin.com/docs/next/tools/llms.txt)

# New Relic Integration

New Relic is an observability SaaS platform with support for metrics, traces, and logs. It accepts OpenTelemetry Protocol (OTLP) natively, so the kit’s telemetry can be sent directly to New Relic’s OTLP endpoint with no collector in between.

## <a id="new-relic-account"></a>New Relic Account

Sign up for an account at [newrelic.com/signup](https://newrelic.com/signup). You can export up to 100 GB of data per month at no charge.

You need an ingest license key. Find it in your account settings under **API Keys**; use a key of type `INGEST - LICENSE`.

## <a id="configure-the-application"></a>Configure the Application

Add Actuator and the OpenTelemetry starter, which brings in the OTLP metrics registry and the tracing bridge with the OTLP exporter:

`pom.xml`

```xml
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-opentelemetry</artifactId>
</dependency>
```

Point both pipelines at the New Relic OTLP endpoint and authenticate with the license key:

`application.properties`

```properties
spring.application.name=vaadin

# Metrics over OTLP to New Relic
management.otlp.metrics.export.url=https://otlp.nr-data.net/v1/metrics
management.otlp.metrics.export.headers.api-key=LICENSE_KEY

# Traces over OTLP to New Relic
management.opentelemetry.tracing.export.otlp.endpoint=https://otlp.nr-data.net/v1/traces
management.opentelemetry.tracing.export.otlp.headers.api-key=LICENSE_KEY
management.tracing.sampling.probability=1.0
```

Replace `LICENSE_KEY` with your ingest license key. Use the EU endpoint (`https://otlp.eu01.nr-data.net`) instead if your account is in the EU region. Setting `spring.application.name` determines the service name your data appears under in New Relic.

## <a id="viewing-data"></a>Viewing Data

After exercising the application for a while — traces show up with a short delay — log in to New Relic. From the **All entities** view, select your service name under **Services - OpenTelemetry**.

### <a id="viewing-traces"></a>Viewing Traces

Open the **Monitor - Distributed tracing** view, which shows application traces with their count, duration, and errors.

See the New Relic [Distributed tracing](https://docs.newrelic.com/docs/more-integrations/open-source-telemetry-integrations/opentelemetry/view-your-data/opentelemetry-distributed-tracing-page) documentation for more.

### <a id="viewing-metrics"></a>Viewing Metrics

Open the **Data - Metrics explorer** view, where you can explore all reported metrics.

See the New Relic [Metrics explorer](https://docs.newrelic.com/docs/more-integrations/open-source-telemetry-integrations/opentelemetry/view-your-data/opentelemetry-metrics-explorer-page) documentation for more.

### <a id="viewing-logs"></a>Viewing Logs

Open the **Monitor - Logs** view, which shows application logs linked to traces through `trace.id`.

See the New Relic [Logs](https://docs.newrelic.com/docs/more-integrations/open-source-telemetry-integrations/opentelemetry/view-your-data/opentelemetry-logs-page) documentation for more.
