telemetry: embed per-field descriptions in ETW metadata (TraceLoggingDescription equivalent) in our tracelogging wrappers
Description of the new feature / enhancement
Our mxc_telemetry crate wraps the pure-Rust tracelogging crate (v1.2.4). Native WIL/TraceLogging lets authors embed human-readable descriptions on events and fields (e.g. TraceLoggingDescription("...")) that travel in the event metadata and are visible to decoders — analogous to how the usage macros (TraceLoggingKeyword(MICROSOFT_KEYWORD_MEASURES), TelemetryPrivacyDataTag(PDT_...)) embed usage/privacy semantics.
The Rust tracelogging crate exposes only numeric tag() / format() per field/event and has no string-description equivalent. As a result, MXC's MXC.Execution / MXC.Error fields (mxc.backend, mxc.exit_code, mxc.outcome, mxc.duration_ms, mxc.failure_reason, mxc.error_type, and the new mxc.phase) currently carry no embedded, decoder-visible documentation.
Add a description-embedding capability to our TraceLogging wrappers so each event/field can carry an inline description, giving parity with WIL's TraceLoggingDescription.
Proposed technical implementation details
- Investigate embedding the description via the crate's
raw_meta/raw_fieldescape hatch, a custom metadata field, or by contributing an upstream feature to thetraceloggingcrate. - Provide a wrapper API (e.g. a
field_with_desc!-style helper or a central per-field description registry) somxc_telemetry::log_execution/log_errorannotate every field once, centrally. - Keep data-minimization: descriptions are static schema documentation, never runtime values or PII.
- Backfill descriptions for all existing fields plus
mxc.phase.
Deferred from the PR #493 telemetry follow-up work (see #562).
Triage
Labels applied: OS-Windows, Area-Build-Rust
- OS-Windows: ETW/TraceLogging is a Windows-specific technology; the feature is scoped to the Windows telemetry path.
- Area-Build-Rust: The work is entirely within the
mxc_telemetryRust crate — adding a description-embedding API, wrapper helpers, and backfilling existing fields.
Owner assigned: None — telemetry / build infrastructure doesn't map to a specific owner in the current assignment matrix. No Needs-Triage label was present to remove.
Generated by 🏷️ Issue Triage for #620 · 22.9 AIC · ⌖ 6.52 AIC · ⊞ 6K · ◷