Skip to content

[k2] use metrics descriptor API - #1702

Open
Shamzik wants to merge 3 commits into
masterfrom
kshamazov/k2-metrics-descriptor-api
Open

Shamzik wants to merge 3 commits into
masterfrom
kshamazov/k2-metrics-descriptor-api

Conversation

@Shamzik

@Shamzik Shamzik commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@Shamzik Shamzik added runtime Feature related to runtime k2 Affects compiler or runtime in K2 mode labels Oct 7, 2026
@Shamzik Shamzik self-assigned this Oct 7, 2026
@Shamzik Shamzik added this to the next milestone Oct 7, 2026
The metric families and their bound series move from InstanceState to
ComponentState: the metrics are component-scoped, every instance writes
the same pre-bound series. Instances keep only the counters they flush
into those series, and registration no longer repeats on every instance
start. k2-header.h is synced with the component-scoped contract.
The metrics API is available from k2_create_component onwards; calls
from image-level entry points fail with EINVAL.

This branch has not been deployed

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

Labels

k2 Affects compiler or runtime in K2 mode runtime Feature related to runtime

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant