Skip to content

perf: Memory footprint for capturing active requests metrics reduced#2984

Merged
dadrus merged 2 commits intoreleasefrom
perf/active_requests
Jan 14, 2026
Merged

perf: Memory footprint for capturing active requests metrics reduced#2984
dadrus merged 2 commits intoreleasefrom
perf/active_requests

Conversation

@dadrus
Copy link
Copy Markdown
Owner

@dadrus dadrus commented Jan 14, 2026

Related issue(s)

none

Checklist

Description

This PR introduces sync.Pool for capturing attributes related to active requests metric and reduces the used memory by ~2.5% and as such GC pressure on higher RPS.

@codecov
Copy link
Copy Markdown

codecov bot commented Jan 14, 2026

Codecov Report

❌ Patch coverage is 94.36620% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 91.21%. Comparing base (f659968) to head (ca9b201).
⚠️ Report is 4 commits behind head on release.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
...handler/middleware/grpc/otelmetrics/interceptor.go 92.72% 3 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           release    #2984      +/-   ##
===========================================
+ Coverage    91.16%   91.21%   +0.05%     
===========================================
  Files          283      283              
  Lines        10747    10759      +12     
===========================================
+ Hits          9797     9814      +17     
+ Misses         690      687       -3     
+ Partials       260      258       -2     

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

@dadrus dadrus merged commit b5c6f19 into release Jan 14, 2026
19 checks passed
@dadrus dadrus deleted the perf/active_requests branch January 14, 2026 09:36
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