Skip to content

Add EF query timing interceptor and update DbContext resolver#452

Merged
StuartFerguson merged 2 commits intomainfrom
task/#408_performance_tracing
Feb 25, 2026
Merged

Add EF query timing interceptor and update DbContext resolver#452
StuartFerguson merged 2 commits intomainfrom
task/#408_performance_tracing

Conversation

@StuartFerguson
Copy link
Copy Markdown
Member

@StuartFerguson StuartFerguson commented Feb 25, 2026

Introduced QueryTimingInterceptor to log slow EF queries based on a configurable threshold. Replaced DbContextResolver with DbContextResolverX to ensure the interceptor is attached to all DbContext instances, including those with dynamic database names. Updated DI registration to use AddDbContextFactory and singleton interceptor.

closes #408

Introduced QueryTimingInterceptor to log slow EF queries based on a configurable threshold. Replaced DbContextResolver with DbContextResolverX to ensure the interceptor is attached to all DbContext instances, including those with dynamic database names. Updated DI registration to use AddDbContextFactory and singleton interceptor.
@StuartFerguson StuartFerguson merged commit 4bc2e3a into main Feb 25, 2026
10 of 11 checks passed
@github-actions github-actions Bot deleted the task/#408_performance_tracing branch April 27, 2026 03:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Performance Tracing

1 participant