This is the solution (completely instrumented with OpenTelemetry) for the .NET demo application used in the Getting Started Guide - .NET tutorial.
Requires:
- .NET 6
- A New Relic account
To run this demo app via the CLI:
- Switch to the
dotnet\Instrumented
directory - Export the following environment variables (replace
<your_license_key>
with your New Relic ingest license key):
- export OTEL_EXPORTER_OTLP_ENDPOINT=https://otlp.nr-data.net:4317
- export OTEL_EXPORTER_OTLP_HEADERS=api-key=<your_license_key>
- Run the following command
dotnet run
- To generate traffic, in a new terminal tab run the following command
./load-generator.sh
- To shut down the program, run the following in both shells or terminal tabs:
ctrl + c
.