Skip to content

feat: add resolver_version field to TelemetryData#346

Merged
fabriziodemaria merged 4 commits intomainfrom
fdema/add-resolver-version-to-telemetry
Mar 20, 2026
Merged

feat: add resolver_version field to TelemetryData#346
fabriziodemaria merged 4 commits intomainfrom
fdema/add-resolver-version-to-telemetry

Conversation

@fabriziodemaria
Copy link
Copy Markdown
Member

Summary

  • Adds a string resolver_version = 8 field to TelemetryData in the internal proto, populated from the crate version (CARGO_PKG_VERSION) at build time.
  • This gives the backend (epx-flags-resolver) a reliable signal to detect whether the embedded resolver supports TelemetryData.resolve_rate, replacing the fragile memory_bytes > 0 heuristic.
  • Also updates the JS test-only proto to keep it in sync.

Context

The WASM resolver sends resolve-rate data via two paths: the newer TelemetryData.resolve_rate and the legacy FlagResolveInfo. The backend needs to skip the legacy metric when the new path is active to avoid double-counting. An explicit version field is a much more reliable capability signal than checking memory_bytes > 0.

Test plan

Made with Cursor

The new field carries the confidence-resolver crate version (e.g.
"0.14.0") so the backend can reliably detect whether the WASM
supports TelemetryData.resolve_rate and skip the legacy
resolve-count metric path.

Made-with: Cursor
@fabriziodemaria fabriziodemaria changed the title Add resolver_version field to TelemetryData feat: add resolver_version field to TelemetryData Mar 19, 2026
Comment thread confidence-resolver/src/telemetry.rs Outdated
Replace `env!("CARGO_PKG_VERSION")` with a hardcoded constant in
`version.rs` managed by release-please, so the resolver version
is stored in the binary without relying on the host build environment.

Made-with: Cursor
Copy link
Copy Markdown
Member

@nicklasl nicklasl left a comment

Choose a reason for hiding this comment

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

LGTM

@fabriziodemaria fabriziodemaria merged commit 10ab1c6 into main Mar 20, 2026
10 checks passed
@github-actions github-actions Bot mentioned this pull request Mar 20, 2026
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.

2 participants