gofr-dev / gofr-dev/gofr

Add a common interface to all providers Metrics (and do the same with providers Logger)

Open
#840 1 comment 0 reactions 0 assignees View on GitHub
Observability
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.