Add a common interface to all providers Metrics (and do the same with providers Logger)
- Dominant language
- Go
- Stars
- 20.9k
- Forks
- 1.8k
- Avg merge
- 5d 18h
- Merged PRs (30d)
- 39
Description
you could define an interface with one method that will be implemented by each Logger (and do the same for Metrics)
There is usually one thing that can be shared.
This way the code is clearer. IDE are able to autocomplete.
_Originally posted by @ccoVeille in https://github.com/gofr-dev/gofr/pull/835#discussion_r1675520933_
Contributor guide
Research direction
No files, tests, or provider entry points are named. First locate every Logger and Metrics provider implementation, compare the methods they expose, and check whether a shared contract is appropriate for both groups. Done means the scope and interface shape are agreed and all providers consistently satisfy the resulting contracts.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- observability
- Issue type
- Refactor
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100