The New Relic Trace Exporter for OpenTelemetry .NET supports .NET Framework (4.5.2+) and .NET Core applications.
dotnet add package NewRelic.OpenTelemetry
You can configure the exporter with the following options:
ApiKey
: Your Insights Insert API key (required).Endpoint
: New Relic endpoint address.ExportProcessorType
: Whether the exporter should use Batch or Simple exporting processor. Defaults to the batch exporting processor which is recommended for most use cases.BatchExportProcessorOptions
: Configuration options for the batch exporter. Only used if ExportProcessorType is set to Batch.
- Review these Sample Applications for guidance on configuration and usage.
The OpenTelemetry SDK uses EventSource
for its internal logging, and this package also uses EventSource
for its internal logging so that all of the relevant logs for troubleshooting your OpenTelemetry setup can be found in one place. For more information on how to enable and use this diagnostic logging you can follow the information provided in the OpenTelemetry Troubleshooting documentation.