This repo holds the source code for the demo applications used in the Getting Started Guides.
Each language directory illustrates how to add OpenTelemetry instrumentation to a simple web application, and configure OpenTelemetry for an optimal New Relic experience. This includes exporting over OTLP, limiting attributes according to New Relic ingest limits, and more.
In order to provide some degree of uniformity, each sample app is written to comply with the demo app specification. Each language contains the following sub-directories:
- Uninstrumented: Contains the uninstrumented version of the app.
- Instrumented: Contains the instrumented versions of the app. The uninstrumented app is enhanced with OpenTelemetry based instrumentation to generate metrics, logs, and traces, and SDK configuration aligned with New Relic best practices to export telemetry to New Relic.
To run, please see the Getting Started Guides documentation and follow the instructions in the README of the root of each respective sample app.