Skip to content

telemetry: embed per-field descriptions in ETW metadata (TraceLoggingDescription equivalent) in our tracelogging wrappers #620

Closed

Description

@RamonArjona4

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_field escape hatch, a custom metadata field, or by contributing an upstream feature to the tracelogging crate.
  • Provide a wrapper API (e.g. a field_with_desc!-style helper or a central per-field description registry) so mxc_telemetry::log_execution / log_error annotate 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).

Activity

  1. added
    Issue-Feature
    Needs-Triage
    on Jul 7, 2026
  2. self-assigned this
    on Jul 7, 2026
  3. removed
    Needs-Triage
    on Jul 7, 2026
  4. added
    Area-Rust-SDK
    OS-Windows
    on Jul 7, 2026
  5. github-actions commented on Jul 7, 2026

    @github-actions

    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_telemetry Rust 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 · ◷

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

Metadata

Metadata

Assignees

Labels

Area-Rust-SDKIssue-FeatureOS-Windows

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions