Itn.Etcd.Configuration
0.1.0
dotnet add package Itn.Etcd.Configuration --version 0.1.0
NuGet\Install-Package Itn.Etcd.Configuration -Version 0.1.0
<PackageReference Include="Itn.Etcd.Configuration" Version="0.1.0" />
<PackageVersion Include="Itn.Etcd.Configuration" Version="0.1.0" />
<PackageReference Include="Itn.Etcd.Configuration" />
paket add Itn.Etcd.Configuration --version 0.1.0
#r "nuget: Itn.Etcd.Configuration, 0.1.0"
#:package Itn.Etcd.Configuration@0.1.0
#addin nuget:?package=Itn.Etcd.Configuration&version=0.1.0
#tool nuget:?package=Itn.Etcd.Configuration&version=0.1.0
Itn.Etcd.Configuration
This package provides Microsoft.Extensions.Configuration's provider using etcd.
Prerequisits
- net8.0 or higher
- etcd service in runtime environment
Basic Usage
- create C# project
- add nuget package "Itn.Etcd.Configuration" to project
- add configuration provider by
Itn.Etcd.Configuration.EtcdConfigurationExtensions.AddEtcd(this IConfigurationBuilder builder, string rootKey, ...)- see also dotnet-etcd for options
Diagnostics
Activity
This package provides some Activity, source name is Itn.Etcd.Configuration.EtcdConfigurationProvider.
Activity names are following
- Load, LoadAsync
- activity of loading keyvalue from etcd
- WatchDetected
- change detected in etcd service
- RenewClient
- re-connecting if connection is invalid
- CheckWatch
- periodic check for connection
- CancelWatch
- cancelling watch when shutdown
OpenTelemetry
If you want to trace activity with opentelemetry,add instrumentation like following.
// builder is WebApplicationBuilder or ApplicationBuilder
// you need to add OpenTelemetry.Extensions.Hosting for AddOpenTelemetry,
// and OpenTelemetry.Exporter.OpenTelemetryProtocol for UseOtlpExporter
builder.Services.AddOpenTelemetry()
.UseOtlpExporter()
.WithTracing(tracer =>
{
tracer.AddSource("Itn.Etcd.Configuration.EtcdConfigurationProvider");
})
;
DiagnosticSource
If you want to get logs, subscribe DiagnosticSource named Itn.Etcd.Configuration.EtcdConfigurationProvider.
IDisposable SubscribeEtcdLog(this IServiceProvider provider) will help you if you want to log all diagnostic events with ILogger.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. 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. |
-
net10.0
- dotnet-etcd (>= 8.1.0)
- Microsoft.Extensions.Configuration (>= 10.0.3)
- R3 (>= 1.3.0)
-
net8.0
- dotnet-etcd (>= 8.1.0)
- Microsoft.Extensions.Configuration (>= 10.0.3)
- R3 (>= 1.3.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0 | 133 | 4/2/2026 |