Skip to content

feat(log): support new aggregation type in MI logs - #604

Merged
okt-limonikas merged 2 commits into
ts-factory:mainfrom
okt-limonikas:fixed_series_aggr
Jul 24, 2026
Merged

feat(log): support new aggregation type in MI logs#604
okt-limonikas merged 2 commits into
ts-factory:mainfrom
okt-limonikas:fixed_series_aggr

Conversation

@okt-limonikas

Copy link
Copy Markdown
Collaborator

This PR supersedes #537 and fixes issues with it and regenerates json log schema

okt-viacheslav and others added 2 commits July 24, 2026 16:11
TE has introduced a new aggregation type in MI logs, which allows to
store multiple values in one log message. These values are stored in a
separate field called "values", and one message may provide either the
old "value" field or the new "values" field.

Update the JSON schema accordingly.

Signed-off-by: Viacheslav Galaktionov <viacheslav.galaktionov@oktet.tech>
The auto-seqno X-axis derived its length from `result.entries.length`,
which held for the old aggregation (one `single` entry per point) but
not for the new `series` aggregation, where all points live inside a
single entry's `values[]`. The axis then collapsed to a `[0, 0]` range
and ECharts clipped the whole series, so `series`-format charts rendered
blank and raised a spurious X/Y length-mismatch error.

Compute the axis length from the number of plotted `single`/`series`
values (expanding `values[]`) so it matches what `createSeries` emits.
Filtering out statistic entries (mean/min/max) also fixes the same
mismatch for the old format. Apply the same filter to the non-auto-seqno
X-axis data so statistic values no longer leak onto the axis.

Signed-off-by: Danil Kostromin <danil.kostromin@icloud.com>
@okt-limonikas
okt-limonikas merged commit 9152b0a into ts-factory:main Jul 24, 2026
5 checks passed
@okt-limonikas
okt-limonikas deleted the fixed_series_aggr branch July 24, 2026 16:59
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