OutWit.Shared.Logging.Provider.NewRelic
1.1.0
See the version list below for details.
dotnet add package OutWit.Shared.Logging.Provider.NewRelic --version 1.1.0
NuGet\Install-Package OutWit.Shared.Logging.Provider.NewRelic -Version 1.1.0
<PackageReference Include="OutWit.Shared.Logging.Provider.NewRelic" Version="1.1.0" />
<PackageVersion Include="OutWit.Shared.Logging.Provider.NewRelic" Version="1.1.0" />
<PackageReference Include="OutWit.Shared.Logging.Provider.NewRelic" />
paket add OutWit.Shared.Logging.Provider.NewRelic --version 1.1.0
#r "nuget: OutWit.Shared.Logging.Provider.NewRelic, 1.1.0"
#:package OutWit.Shared.Logging.Provider.NewRelic@1.1.0
#addin nuget:?package=OutWit.Shared.Logging.Provider.NewRelic&version=1.1.0
#tool nuget:?package=OutWit.Shared.Logging.Provider.NewRelic&version=1.1.0
OutWit.Shared.Logging.Provider.NewRelic
NewRelic NerdGraph log provider plugin for OutWit hosts. Thin wrapper over
OutWit.Common.Logging.NewRelic
that registers an ILogQueryProvider
which translates neutral LogQuery requests into NRQL and dispatches them
through NerdGraph.
The plugin additionally registers the NR-specific
INewRelicProvider superset for consumers that want the billing-style
GetDataConsumptionAsync — they can resolve either interface from DI
(both point at the same singleton).
Configuration
Plugin reads its own appsettings.json from inside the deployed module folder:
{
"NewRelic": {
"ApiKey": "",
"AccountId": 0,
"Endpoint": "https://api.newrelic.com/graphql",
"DefaultPageSize": 100,
"MaxPageSize": 1000
}
}
| Setting | Default | Description |
|---|---|---|
ApiKey |
(required) | User API key for NerdGraph. Should be supplied via env var NewRelic__ApiKey — keep the JSON value blank. |
AccountId |
(required) | NewRelic account id (integer). Supply via NewRelic__AccountId. |
Endpoint |
https://api.newrelic.com/graphql |
GraphQL endpoint. Override for EU region (https://api.eu.newrelic.com/graphql). |
DefaultPageSize |
100 |
Page size when the caller does not specify one. |
MaxPageSize |
1000 |
Upper bound enforced server-side; queries with larger page sizes are clamped. |
Env-var override convention
NewRelic__ApiKey=NRAK-xxxxxxxxxxxxxxxxxx # never put this in JSON
NewRelic__AccountId=1234567
Installation
dotnet add package OutWit.Shared.Logging.Provider.NewRelic
The plugin's build/.targets auto-copies the module to your output
@Logging/newrelic.module/ at build time. The host's
WitPluginLoader<ILogProviderPlugin> discovers it.
License
Apache 2.0 — see LICENSE.txt.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.