Skip to content

Conversation

@Schaeff
Copy link

@Schaeff Schaeff commented Oct 31, 2025

When two airs have the same type (this is the case in powdr for PowdrAir which can have many instances), their names are the same. In order to tell them apart in the metrics, use their id.

@Schaeff Schaeff changed the title [feature] Include air id in trace metrics [feat] Include air id in trace metrics Oct 31, 2025
.collect::<Vec<_>>();
let per_air: Vec<_> = zip_eq(&mpk.per_air, heights)
.map(|(pk, height)| {
let per_air: Vec<_> = zip_eq(mpk.air_ids.iter().copied(), zip_eq(&mpk.per_air, heights))
Copy link
Contributor

Choose a reason for hiding this comment

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

just use izip! since we don't really need to check equal lengths

@jonathanpwang jonathanpwang changed the title [feat] Include air id in trace metrics feat: Include air id in trace metrics Oct 31, 2025
@jonathanpwang jonathanpwang changed the title feat: Include air id in trace metrics feat(metrics): Include air id in trace metrics Oct 31, 2025
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.

3 participants