BlazorAmpowering.Observability.EntityFrameworkCore
1.0.0-beta.1
dotnet add package BlazorAmpowering.Observability.EntityFrameworkCore --version 1.0.0-beta.1
NuGet\Install-Package BlazorAmpowering.Observability.EntityFrameworkCore -Version 1.0.0-beta.1
<PackageReference Include="BlazorAmpowering.Observability.EntityFrameworkCore" Version="1.0.0-beta.1" />
<PackageVersion Include="BlazorAmpowering.Observability.EntityFrameworkCore" Version="1.0.0-beta.1" />
<PackageReference Include="BlazorAmpowering.Observability.EntityFrameworkCore" />
paket add BlazorAmpowering.Observability.EntityFrameworkCore --version 1.0.0-beta.1
#r "nuget: BlazorAmpowering.Observability.EntityFrameworkCore, 1.0.0-beta.1"
#:package BlazorAmpowering.Observability.EntityFrameworkCore@1.0.0-beta.1
#addin nuget:?package=BlazorAmpowering.Observability.EntityFrameworkCore&version=1.0.0-beta.1&prerelease
#tool nuget:?package=BlazorAmpowering.Observability.EntityFrameworkCore&version=1.0.0-beta.1&prerelease
BlazorAmpowering.Observability.EntityFrameworkCore
Entity Framework Core instrumentation for BlazorAmpowering.Observability.
Automatically traces every EF Core database query as an OpenTelemetry child span — no manual instrumentation required.
Pre-release status
This package is currently in beta (1.0.0-beta.1) because it depends on OpenTelemetry.Instrumentation.EntityFrameworkCore, which has not yet reached a stable release. It will be promoted to stable as soon as that dependency is stable.
Installation
dotnet add package BlazorAmpowering.Observability --version 1.0.0
dotnet add package BlazorAmpowering.Observability.EntityFrameworkCore --prerelease
Configuration
Program.cs
Call AddEntityFrameworkCoreInstrumentation() after AddBlazorTelemetry():
var builder = WebApplication.CreateBuilder(args);
// OpenTelemetry pipeline (traces + metrics)
builder.AddBlazorTelemetry();
// EF Core query tracing (optional — add only if your app uses EF Core)
builder.AddEntityFrameworkCoreInstrumentation();
// ...
Each SQL query executed by EF Core produces a child span:
GET /api/products
└─ ProductsController.GetAll
└─ SELECT * FROM "Products" ← EF Core span
├─ db.system: sqlite
├─ db.name: mydb
└─ db.statement: SELECT ...
Disable SQL statement capture
SQL statements are captured by default. Disable in production if queries contain sensitive data:
builder.AddEntityFrameworkCoreInstrumentation(setDbStatementForText: false);
License
Apache 2.0 — Copyright 2026 Gaetan Delpierre
| 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 was computed. 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. |
-
net8.0
- OpenTelemetry.Extensions.Hosting (>= 1.15.3)
- OpenTelemetry.Instrumentation.EntityFrameworkCore (>= 1.0.0-beta.9)
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.0-beta.1 | 34 | 5/15/2026 |