LogBrew.EntityFrameworkCore
0.1.0
dotnet add package LogBrew.EntityFrameworkCore --version 0.1.0
NuGet\Install-Package LogBrew.EntityFrameworkCore -Version 0.1.0
<PackageReference Include="LogBrew.EntityFrameworkCore" Version="0.1.0" />
<PackageVersion Include="LogBrew.EntityFrameworkCore" Version="0.1.0" />
<PackageReference Include="LogBrew.EntityFrameworkCore" />
paket add LogBrew.EntityFrameworkCore --version 0.1.0
#r "nuget: LogBrew.EntityFrameworkCore, 0.1.0"
#:package LogBrew.EntityFrameworkCore@0.1.0
#addin nuget:?package=LogBrew.EntityFrameworkCore&version=0.1.0
#tool nuget:?package=LogBrew.EntityFrameworkCore&version=0.1.0
LogBrew Entity Framework Core
Opt-in Entity Framework Core command tracing for LogBrew .NET apps.
dotnet add package LogBrew.EntityFrameworkCore
using LogBrew;
using LogBrew.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
var client = LogBrewClient.Create("LOGBREW_API_KEY", "checkout-service", "1.0.0");
optionsBuilder
.UseSqlServer(connectionString)
.AddLogBrewCommandTelemetry(
client,
options => options
.WithSystem("sqlserver")
.WithDatabaseName("checkout")
.WithOperationNamePrefix("orders"));
AddLogBrewCommandTelemetry(...) installs LogBrewEntityFrameworkCoreCommandInterceptor. The interceptor captures one sanitized span per EF Core command and keeps the active LogBrew trace correlated while the command executes. It records command method, EF command source, command type, duration, row count for non-query commands, provider failure or cancellation type, release/environment correlation from the parent client payload, and primitive caller metadata.
It does not capture raw database statements, bind values, connection details, network names, raw trace headers, payloads, baggage, tracestate, or exception call stacks. Use WithCommandFilter(...) for noisy commands and WithMetadataProvider(...) for low-cardinality primitive context.
The package includes examples/EntityFrameworkCoreCommandTelemetry.cs as a copyable setup snippet.
| 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
- LogBrew (>= 0.1.3)
- Microsoft.EntityFrameworkCore.Relational (>= 10.0.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 |
|---|---|---|
| 0.1.0 | 134 | 6/30/2026 |