Skip to content

Commit abb7d5a

Browse files
committed
fix issues
1 parent a1ef356 commit abb7d5a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/en/changes/changes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
source tar from the website and publish them to your private maven repository.
1414
* [Breaking Change] Remove H2 as storage option permanently. BanyanDB 0.8(OAP 10.2 required) is easy, stable and
1515
production-ready. Don't need H2 as default storage anymore.
16-
* Support `labelCount` function in the OAL engine.
16+
* Support `labelAvg` function in the OAL engine.
1717
* Added `maxLabelCount` parameter in the `labelCount` function of OAL to limit the number of labels can be counted.
1818

1919
#### OAP Server

oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/analysis/metrics/LabelAvgMetrics.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public LabelAvgMetrics() {
6868
}
6969

7070
@Entrance
71-
public final void combine(@Arg String label, @Arg long count, @DefaultValue("1024") int maxLabelCount) {
71+
public final void combine(@Arg String label, @Arg long count, @DefaultValue("50") int maxLabelCount) {
7272
this.isCalculated = false;
7373
this.maxLabelCount = maxLabelCount;
7474
this.summation.valueAccumulation(label, count, maxLabelCount);

oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/analysis/metrics/LabelCountMetrics.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public LabelCountMetrics() {
5858
}
5959

6060
@Entrance
61-
public final void combine(@Arg String label, @ConstOne long count, @DefaultValue("1024") int maxLabelCount) {
61+
public final void combine(@Arg String label, @ConstOne long count, @DefaultValue("50") int maxLabelCount) {
6262
this.isCalculated = false;
6363
this.maxLabelCount = maxLabelCount;
6464
this.dataset.valueAccumulation(label, count, maxLabelCount);

0 commit comments

Comments
 (0)