DotEukali.MetricsClient.Core
6.0.0
See the version list below for details.
dotnet add package DotEukali.MetricsClient.Core --version 6.0.0
NuGet\Install-Package DotEukali.MetricsClient.Core -Version 6.0.0
<PackageReference Include="DotEukali.MetricsClient.Core" Version="6.0.0" />
paket add DotEukali.MetricsClient.Core --version 6.0.0
#r "nuget: DotEukali.MetricsClient.Core, 6.0.0"
// Install DotEukali.MetricsClient.Core as a Cake Addin #addin nuget:?package=DotEukali.MetricsClient.Core&version=6.0.0 // Install DotEukali.MetricsClient.Core as a Cake Tool #tool nuget:?package=DotEukali.MetricsClient.Core&version=6.0.0
DotEukali.MetricsClient.Core
Simple Http wrapper for New Relic Metrics API, using DotNet Core 5.
To use, simply add configuration eg:
{
"MetricsOptions": {
"ApiKey": "{{your New Relic metrics api key}}",
"ApiUrl": "{{this is optional, the current url is hard-coded}}",
"Attributes": {
"host.name": "my.host",
"app.name": "myapp",
"myotherAttribute": 10
}
}
}
If the attribute app.name
exists, it will be prefixed to the metric name, eg myapp_mymetricname
.
ApiUrl
is optional, in case the default url needs to be overriden.
Attributes are parsed as IDictionary<string, object>
and sent with every metric.
Polly has been removed as a dependency as of 0.2.3 and a new registration extension created to replace the old which returns IHttpClientBuilder, allowing Polly or other handling logic to be added explicitly.
Microsoft dependency injection is used and can be wired up like:
serviceCollection.AddMetricsClient(Configuration);
Then, simply inject IMetrics
where needed and use.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net6.0
- Microsoft.Extensions.Configuration (>= 6.0.0)
- Microsoft.Extensions.Configuration.Binder (>= 6.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 6.0.0)
- Microsoft.Extensions.Http (>= 6.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 6.0.0)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 6.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.