apache / apache/dubbo

TimeCounterEvent optimization

Open
#13,097 0 comments 0 reactions 0 assignees View on GitHub
component/sdk help wanted type/proposal
Dominant language
Java
Stars
41.6k
Forks
26.4k
Avg merge
15h 13m
Merged PRs (30d)
4

Description

TimeCounterEvent in the Metrics module is now an abstract class, and events inherit from it to have the ability to calculate rt. Inheritance mechanism brings inflexibility and sometimes we have to inherit it in event generics. We can use composition pattern instead of inheritance

Contributor guide

Open the contributing guide

Research direction

Start by locating TimeCounterEvent in the Metrics module and listing the event classes that inherit from it. Trace how those events calculate rt, then define completion as replacing the inheritance dependency with composition without losing that behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
distributed-systems
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.