Skip to content

Add pprof profiling support to Go template #88

@mirfmaster

Description

@mirfmaster

tl;dr: Install github.com/labstack/echo-contrib/pprof and guard it behind an env flag so we don’t accidentally expose it in prod.

Description:
Right now we only have tracing, logs, and metrics wired up. Profiling is the missing piece for spotting performance issues before they hit production.

By integrating profiling tools, we can reduce debugging time for performance issue.

Proposed Solutions:

  • Added package for github.com/labstack/echo-contrib/pprof, its already cover the cpu, memory, block profiler.
  • Rename file from config/instrumentation.go to config/observability.go
  • Rename function from ApplyInstrumentation to ApplyObservability
  • Add function for ApplyProfiling
  • Enable only when ENABLE_PROFILING=true and APP_ENV != production

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions