Skip to content

[FEATURE] add trace heatmap chart plugin#724

Draft
shahrokni wants to merge 1 commit into
mainfrom
feat/tracheheatmapchart2
Draft

[FEATURE] add trace heatmap chart plugin#724
shahrokni wants to merge 1 commit into
mainfrom
feat/tracheheatmapchart2

Conversation

@shahrokni

@shahrokni shahrokni commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Relates to perses/perses#3942

This is the trace heat map chart
The x-axis and y-axis represent the time and duration buckets respectively. Both buckets are generated dynamically.
The following picture shows a base 2 bucketing of the duration which happened in less than an hour.
It also supports base 10.

Demo

image

Same queries and traces, different bases

image

Checklist

  • Pull request has a descriptive title and context useful to a reviewer.
  • Pull request title follows the [<catalog_entry>] <commit message> naming convention using one of the
    following catalog_entry values: FEATURE, ENHANCEMENT, BUGFIX, BREAKINGCHANGE, DOC,IGNORE.
  • All commits have DCO signoffs.

UI Changes

  • Changes that impact the UI include screenshots and/or screencasts of the relevant changes.
  • Code follows the UI guidelines.

@shahrokni
shahrokni force-pushed the feat/tracheheatmapchart2 branch 3 times, most recently from c40e966 to 139f2ea Compare July 16, 2026 12:35
@shahrokni
shahrokni force-pushed the feat/tracheheatmapchart2 branch 4 times, most recently from 34c1130 to b33097f Compare July 21, 2026 10:35
Signed-off-by: Mahmoud Shahrokni <seyedmahmoud.shahrokni@amadeus.com>

Signed-off-by: Mahmoud Shahrokni <seyedmahmoud.shahrokni@amadeus.com>

Signed-off-by: Mahmoud Shahrokni <seyedmahmoud.shahrokni@amadeus.com>

all bucket generators

Signed-off-by: Mahmoud Shahrokni <seyedmahmoud.shahrokni@amadeus.com>

Signed-off-by: Mahmoud Shahrokni <seyedmahmoud.shahrokni@amadeus.com>

Signed-off-by: Mahmoud Shahrokni <seyedmahmoud.shahrokni@amadeus.com>

Signed-off-by: Mahmoud Shahrokni <seyedmahmoud.shahrokni@amadeus.com>

Signed-off-by: Mahmoud Shahrokni <seyedmahmoud.shahrokni@amadeus.com>

Signed-off-by: Mahmoud Shahrokni <seyedmahmoud.shahrokni@amadeus.com>

Signed-off-by: Mahmoud Shahrokni <seyedmahmoud.shahrokni@amadeus.com>

Signed-off-by: Seyed Mahmoud Shahrokni <39291137+shahrokni@users.noreply.github.com>

Signed-off-by: Seyed Mahmoud Shahrokni <39291137+shahrokni@users.noreply.github.com>
@shahrokni
shahrokni force-pushed the feat/tracheheatmapchart2 branch from b33097f to cad2d04 Compare July 21, 2026 12:18
Comment on lines +2 to +20
"kind": "Traceheatmapchart",
"spec": {
"legend": {
"position": "bottom"
},
"thresholds": {
"steps": [
{
"value": 0.6,
"name": "Alert: Warning condition example"
},
{
"value": 0.8,
"name": "Alert: Critical condition example"
}
]
}
}
}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure what this might be or should be kept. It was added automatically by the percli

Comment on lines +21 to +22
traces: Array<{ id: string; durationMs: number }>;
}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did I use the id?

Comment on lines +51 to +52
* Therefore, months with less than 31 days simply fall under the weekly scaling and produce weekly buckets
*/

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Explain more

Comment on lines +82 to +83
}
return scale;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Less than one minute and up to 60 seconds is not covered

@shahrokni

Copy link
Copy Markdown
Contributor Author

⚠️ 🔍 SELF REVIEW IN PROGRESS...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant