Re: [DISCUSS][2.0] FLIP-341: Remove MetricGroup methods accepting an int as a name

2023-07-19 Thread Leonard Xu
+1, there’re methods offer parameter with String which allows users to migrate. Best, Leonard > On Jul 18, 2023, at 9:26 PM, Jing Ge wrote: > > +1 > > On Tue, Jul 18, 2023 at 1:11 PM Chesnay Schepler wrote: > >> Good catch; i've fixed the list. >> >> On 18/07/2023 12:20, Xintong Song

Re: [DISCUSS][2.0] FLIP-341: Remove MetricGroup methods accepting an int as a name

2023-07-18 Thread Jing Ge
+1 On Tue, Jul 18, 2023 at 1:11 PM Chesnay Schepler wrote: > Good catch; i've fixed the list. > > On 18/07/2023 12:20, Xintong Song wrote: > > +1 in general. > > > > I think the list of affected public interfaces in the FLIP is not > accurate. > > > > - `#counter(int, Counter)` is missed >

Re: [DISCUSS][2.0] FLIP-341: Remove MetricGroup methods accepting an int as a name

2023-07-18 Thread Chesnay Schepler
Good catch; i've fixed the list. On 18/07/2023 12:20, Xintong Song wrote: +1 in general. I think the list of affected public interfaces in the FLIP is not accurate. - `#counter(int, Counter)` is missed - `#meter(int)` should be `#meter(int, Meter)` - `#group(int)` should be

Re: [DISCUSS][2.0] FLIP-341: Remove MetricGroup methods accepting an int as a name

2023-07-18 Thread Xintong Song
+1 in general. I think the list of affected public interfaces in the FLIP is not accurate. - `#counter(int, Counter)` is missed - `#meter(int)` should be `#meter(int, Meter)` - `#group(int)` should be `#addGroup(int)` Best, Xintong On Tue, Jul 18, 2023 at 4:39 PM Chesnay Schepler

[DISCUSS][2.0] FLIP-341: Remove MetricGroup methods accepting an int as a name

2023-07-18 Thread Chesnay Schepler
The MetricGroup interface contains methods to create groups and metrics using an int as a name. The original intention was to allow pattern like |group.addGroup("subtaskIndex").addGroup(0)| , but this didn't really work out, with |addGroup(String, String)|  serving this use case much better.