Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix error when handle span data #511

Merged
merged 5 commits into from
May 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
## Unreleased
### New features
- Display scheduler run queue latency on Trace-Profiling chart. To learn more about the concept of 'Run Queue Latency', refer to [this blog post](https://www.brendangregg.com/blog/2016-10-08/linux-bcc-runqlat.html). You can also find a use case for this feature in [this blog post](http://kindling.harmonycloud.cn/blogs/use-cases/optimize-cpu/). ([#494](https://github.com/KindlingProject/kindling/pull/494))
### Bug fixes
- Fix span data deduplication issue.([#511](https://github.com/KindlingProject/kindling/pull/511))

## v0.7.2 - 2023-04-24
### Enhancements
Expand Down
2 changes: 1 addition & 1 deletion camera-front/src/containers/thread/camera/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ export const dataHandle = (data: any, timeRange, trace: any) => {
let cpuEvents = _.chain(list).map('cpuEvents').flatten().uniqBy('startTime').value();
let javaFutexEvents = _.chain(list).map('javaFutexEvents').flatten().uniqBy('startTime').value();
let transactionIdsList = _.chain(list).map('transactionIds').flatten().value();
let spanList = _.chain(list).map('spans').flatten().uniqBy('startTime').compact().value();
let spanList = _.chain(list).map('spans').flatten().uniqWith((a, b) => a.startTime === b.startTime && a.name === b.name && a.endTime === b.endTime).compact().value();
let innerCallsList = _.chain(list).map('innerCalls').flatten().uniqBy('startTime').compact().value();
threadObj.innerCalls = innerCallsList;

Expand Down