feat: implement modular profiling system with automated instrumentati… - #325
Merged
dDevAhmed merged 2 commits intoJul 29, 2026
Conversation
…on and performance monitoring documentation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#closes #303
Pull Request: BE-036 Implement Backend Performance Profiling Service
📚 Overview
This PR implements the Backend Performance Profiling Service (BE-036) for the TruthBounty backend. It continuously measures application latency, profiles database queries, Redis operations, blockchain RPC calls, queue processing, notification delivery, collects process resource utilization metrics (CPU/Memory), builds execution timelines and flame graphs, supports production-safe adaptive sampling, and automates performance regression detection across historical baseline snapshots.
🎯 Objectives & Acceptance Criteria Met
fixed-rate,adaptive(load-based scaling),route-based, andheader-based(x-profile-request) overrides./profiler/*.🧩 Technical Changes Included
src/profiler):profiler.service.ts,profiler.interceptor.ts,interfaces/profiler.interface.ts.src/profiler/sub-profilers/):database-profiler.ts,redis-profiler.ts,blockchain-profiler.ts,job-profiler.ts,notification-profiler.ts./profiler/*(summary,metrics,traces,flamegraph,bottlenecks,snapshots,compare,regressions,sampling,dashboard).ProfilerModuleand globalProfilerInterceptorregistered insrc/app.module.ts.docs/):PERFORMANCE_GUIDE.md,OPERATIONS_MANUAL.md,BACKEND_DOCUMENTATION.md,MONITORING_GUIDE.md.