Skip to content

Latest commit

 

History

History

getting-started-guides

Getting Started with New Relic using OpenTelemetry

The examples within this directory demonstrate how to send data to New Relic using OpenTelemetry.

Each language directory illustrates how to add OpenTelemetry instrumentation to a simple web application (see demo app spec for details) and configure OpenTelemetry for an optimal New Relic experience. This includes exporting over OTLP, limiting attributes according to New Relic ingest limits, and more.

To get started quickly, you can use Docker Compose to spin up all the example applications.

  1. First, open the .env file and configure your New Relic API key. If necessary, also change the New Relic OTLP endpoint to match your region and needs.

  2. Then, run Docker Compose

    docker compose up --build
  3. Lastly, go view your data in New Relic. Running using Docker Compose also starts a simple load generator, so data should be flowing.