Skip to content

perf: Access logger and regular logger handler implementations merged to reduce copying of data#3018

Merged
dadrus merged 2 commits intoreleasefrom
refactor/accesslog_log_middleware
Jan 31, 2026
Merged

perf: Access logger and regular logger handler implementations merged to reduce copying of data#3018
dadrus merged 2 commits intoreleasefrom
refactor/accesslog_log_middleware

Conversation

@dadrus
Copy link
Copy Markdown
Owner

@dadrus dadrus commented Jan 31, 2026

Related issue(s)

none

Checklist

Description

As this title implies, this PR refactors the implementations of logger and access logger middlewares - actually merges both together - to reduce the amount of temporary objects. This reduces the load on GC, which again has a positive effect on performance.

@codecov
Copy link
Copy Markdown

codecov bot commented Jan 31, 2026

Codecov Report

❌ Patch coverage is 94.77124% with 8 lines in your changes missing coverage. Please review.
✅ Project coverage is 91.19%. Comparing base (08d3038) to head (072301e).
⚠️ Report is 11 commits behind head on release.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
...rnal/handler/middleware/grpc/logger/interceptor.go 90.90% 4 Missing and 4 partials ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           release    #3018      +/-   ##
===========================================
+ Coverage    91.16%   91.19%   +0.03%     
===========================================
  Files          283      282       -1     
  Lines        10759    10734      -25     
===========================================
- Hits          9808     9789      -19     
+ Misses         690      687       -3     
+ Partials       261      258       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dadrus dadrus merged commit 852c02c into release Jan 31, 2026
29 of 30 checks passed
@dadrus dadrus deleted the refactor/accesslog_log_middleware branch January 31, 2026 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant