Skip to content

debuginfo: complete prometheus metrics wrapper for store operations#6321

Open
kram-ghub wants to merge 3 commits intoparca-dev:mainfrom
kram-ghub:main
Open

debuginfo: complete prometheus metrics wrapper for store operations#6321
kram-ghub wants to merge 3 commits intoparca-dev:mainfrom
kram-ghub:main

Conversation

@kram-ghub
Copy link
Copy Markdown

Fixes #1275

Changes

  • Added DebuginfoStore interface for proper decoupling of metrics wrapper
  • Fixed NewStore return signature to match expected (*Store, error)
  • Restored package-level helper functions for objectPath, debuginfodSourcePath
  • Wired all prometheus metrics into store methods using defer pattern for accurate duration tracking

Testing

  • All existing tests pass go test ./pkg/debuginfo/...

kram-ghub and others added 2 commits April 9, 2026 22:28
Co-authored-by: aider (ollama/qwen2.5-coder:32b) <aider@aider.chat>
- Add DebuginfoStore interface for proper decoupling
- Fix NewStore to return (*Store, error) matching expected signature
- Add package-level objectPath, debuginfodSourcePath, validateInput functions
- Wire metrics into ShouldInitiateUpload, InitiateUpload, MarkUploadFinished and Upload
- Use defer pattern for accurate duration tracking on all code paths
Fixes 1275
@kram-ghub kram-ghub requested a review from a team as a code owner April 10, 2026 04:40
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Apr 10, 2026

CLA assistant check
All committers have signed the CLA.

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.

debuginfo: Add metrics for debuginfo package

2 participants