Arkanis.Common.Observability
1.0.0-dev.1
dotnet add package Arkanis.Common.Observability --version 1.0.0-dev.1
NuGet\Install-Package Arkanis.Common.Observability -Version 1.0.0-dev.1
<PackageReference Include="Arkanis.Common.Observability" Version="1.0.0-dev.1" />
<PackageVersion Include="Arkanis.Common.Observability" Version="1.0.0-dev.1" />
<PackageReference Include="Arkanis.Common.Observability" />
paket add Arkanis.Common.Observability --version 1.0.0-dev.1
#r "nuget: Arkanis.Common.Observability, 1.0.0-dev.1"
#:package Arkanis.Common.Observability@1.0.0-dev.1
#addin nuget:?package=Arkanis.Common.Observability&version=1.0.0-dev.1&prerelease
#tool nuget:?package=Arkanis.Common.Observability&version=1.0.0-dev.1&prerelease
Arkanis.Common.Observability
Shared metrics, telemetry, and logging constructs for Arkanis services and libraries. This package provides typed names for telemetry sources, metric meters, low-cardinality metric tags, structured log properties, logging events, and shared OpenTelemetry configuration parsing without configuring any hosting or exporter pipeline.
Installation
dotnet add package Arkanis.Common.Observability
Usage
using Arkanis.Common.Observability;
var sources = new TelemetrySourceNameCollection
{
"Arkanis.Example.Workflows",
};
var meters = new MetricMeterNameCollection
{
"Arkanis.Example",
};
var metricTags = new MetricTagNameCollection
{
"operation",
"result",
};
var logProperties = new LoggingPropertyNameCollection
{
"OperationName",
"ResourceName",
};
EventId eventId = new LoggingEventId(1000, "ExampleStarted");
var protocol = OpenTelemetryProtocolParser.Parse("http/protobuf");
Metric tags should stay low-cardinality. Put operation IDs, correlation IDs, account IDs, user IDs, guild IDs, request IDs, and other high-cardinality values on activities, baggage, logging scopes, or structured log properties instead.
Scope
This package intentionally does not register OpenTelemetry, logging providers, exporters, or meters. The OTLP protocol parser is a shared configuration helper only. Applications and service-default packages own runtime configuration.
| 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. |
-
net10.0
- Microsoft.Extensions.Configuration (>= 10.0.9)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.9)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.9)
- Microsoft.Extensions.DependencyInjection (>= 10.0.9)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.9)
- Microsoft.Extensions.Logging (>= 10.0.9)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.9)
- Microsoft.Extensions.Options (>= 10.0.9)
- Microsoft.Extensions.Primitives (>= 10.0.9)
- OpenTelemetry.Api (>= 1.16.0)
- OpenTelemetry.Exporter.OpenTelemetryProtocol (>= 1.16.0)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Arkanis.Common.Observability:
| Package | Downloads |
|---|---|
|
Arkanis.Common.Aspire.ServiceDefaults
Reusable Aspire-style service defaults for OpenTelemetry, service discovery, HTTP resilience, and health endpoints. |
|
|
Arkanis.Common.Observability.Serilog
Shared Serilog bootstrap and host-registration defaults for Arkanis services and libraries. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0-dev.1 | 49 | 7/9/2026 |