The following configuration options are available.
The following configuration settings are common and should be set for all applications/services.
Option | Required/Default | Description |
---|---|---|
ApiKey |
Required | An Insert API Key is required when sending telemetry data to New Relic. For more information about API Keys, refer to this doc |
ServiceName |
Recommended | This name identifies the service/application generating the telemetry information that is sent to New Relic. |
The following configuration options are used in special circumstances, generally when instructed to do so by New Relic.
Option | Required/Default | Description |
---|---|---|
TraceUrlOverride |
Optional | Allows overriding the the default endpoint to which Span information is sent. This setting should not be used unless instructured to do so by New Relic. |
SendTimeout seconds |
Optional default 5-sec |
The amount of time the SDK will wait for a response from a New Relic endpoint before determining a request to have failed. |
appsettings.json
{
"NewRelic": {
"ApiKey" : "/* YOUR API KEY GOES HERE */",
"ServiceName": "/* YOUR APPLICATION/SERVICE NAME GOES HERE */"
},
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"AllowedHosts": "*",
}