PostQuantum.DataProtection.OpenTelemetry
1.0.0
See the version list below for details.
dotnet add package PostQuantum.DataProtection.OpenTelemetry --version 1.0.0
NuGet\Install-Package PostQuantum.DataProtection.OpenTelemetry -Version 1.0.0
<PackageReference Include="PostQuantum.DataProtection.OpenTelemetry" Version="1.0.0" />
<PackageVersion Include="PostQuantum.DataProtection.OpenTelemetry" Version="1.0.0" />
<PackageReference Include="PostQuantum.DataProtection.OpenTelemetry" />
paket add PostQuantum.DataProtection.OpenTelemetry --version 1.0.0
#r "nuget: PostQuantum.DataProtection.OpenTelemetry, 1.0.0"
#:package PostQuantum.DataProtection.OpenTelemetry@1.0.0
#addin nuget:?package=PostQuantum.DataProtection.OpenTelemetry&version=1.0.0
#tool nuget:?package=PostQuantum.DataProtection.OpenTelemetry&version=1.0.0
PostQuantum.DataProtection.OpenTelemetry
One-line OpenTelemetry wiring for
PostQuantum.DataProtection's built-in
Meter and ActivitySource.
⚠️ Preview (
0.1.0-preview.4). Tracks the core preview cadence.
Install
dotnet add package PostQuantum.DataProtection.OpenTelemetry --prerelease
Use it
using PostQuantum.DataProtection.OpenTelemetry;
builder.Services.AddOpenTelemetry()
.WithMetrics(m => m
.AddPostQuantumDataProtectionInstrumentation() // <-- one line
.AddPrometheusExporter())
.WithTracing(t => t
.AddPostQuantumDataProtectionInstrumentation() // <-- one line
.AddOtlpExporter());
That's it. Your existing exporter sees:
Metrics
pq_dataprotection.encryptions(counter, taggedmode)pq_dataprotection.decryptions(counter, taggedmode)pq_dataprotection.decrypt_failures(counter, taggedreason)pq_dataprotection.rotations(counter)pq_dataprotection.encrypt.duration(histogram, ms)pq_dataprotection.decrypt.duration(histogram, ms)
Traces
PostQuantum.DataProtection.EncryptandPostQuantum.DataProtection.Decryptactivities, tagged withpq.modeandpq.publicKeyId.
The core package emits these on its own — this shim only opts in to the OpenTelemetry SDK so the core stays SDK-free.
To God be the glory — 1 Corinthians 10:31.
| 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 is compatible. 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
- OpenTelemetry.Api (>= 1.15.3)
- PostQuantum.DataProtection (>= 1.0.0)
-
net8.0
- OpenTelemetry.Api (>= 1.15.3)
- PostQuantum.DataProtection (>= 1.0.0)
-
net9.0
- OpenTelemetry.Api (>= 1.15.3)
- PostQuantum.DataProtection (>= 1.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.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.1 | 0 | 6/30/2026 |
| 1.0.0 | 0 | 6/30/2026 |
| 0.1.0-preview.7 | 54 | 6/4/2026 |
| 0.1.0-preview.6 | 50 | 6/4/2026 |
| 0.1.0-preview.5 | 52 | 6/4/2026 |
| 0.1.0-preview.4 | 52 | 6/4/2026 |
0.1.0-preview.4: First public preview. OpenTelemetry helper for PostQuantum.DataProtection — one-line wiring of the Meter and ActivitySource into both MeterProviderBuilder and TracerProviderBuilder. No SDK dependency leaked into the core package; this shim is opt-in.