Skip to content

Commit

Permalink
Fix that sortMetrics should only return long not double (#7698)
Browse files Browse the repository at this point in the history
  • Loading branch information
kezhenxu94 authored Sep 12, 2021
1 parent d06cb76 commit b20f121
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/en/setup/backend/log-analyzer.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Log framework config examples:
module](https://docs.python.org/3/library/logging.html) with functionalities aligning with the Java toolkits.

To explore how to enable the reporting features for your use cases, please refer to the
[Log Reporter Doc](https://github.com/apache/skywalking-python/blob/master/docs/LogReporter.md) for a detailed guide.
[Log Reporter Doc](https://github.com/apache/skywalking-python/blob/master/docs/en/setup/advanced/LogReporter.md) for a detailed guide.

## Log Analyzer

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public List<SelectedRecord> sortMetrics(final TopNCondition condition,
SelectedRecord record = new SelectedRecord();
record.setId((String) termsBucket.get("key"));
Map<String, Object> value = (Map<String, Object>) termsBucket.get(valueColumnName);
record.setValue(String.valueOf(value.get("value")));
record.setValue(String.valueOf(((Number) value.get("value")).longValue()));
topNList.add(record);
}

Expand Down

0 comments on commit b20f121

Please sign in to comment.