Skip to main content

Module telemetry

Module telemetry 

Source

Structs§

PatchTelemetryContext
Telemetry context describing the execution environment.
PatchTelemetryError
Error details for telemetry events.
PatchTelemetryEvent
Telemetry event structure for patch operations.
TrackPatchEventOptions
Options for tracking a patch event.

Enums§

PatchTelemetryEventType
Telemetry event types for the patch lifecycle.

Functions§

is_telemetry_disabled
Check if telemetry is disabled via environment variables.
sanitize_error_message
Sanitize an error message for telemetry.
track_patch_applied
Track a successful patch application.
track_patch_apply_failed
Track a failed patch application.
track_patch_event
Track a patch lifecycle event.
track_patch_fetch_failed
Track a failed get. uuid may be empty when the failure occurred before the patch was resolved (e.g. lookup miss).
track_patch_fetched
Track a successful get. Reports patch identity + delivery mode and whether the call was downgraded to the public proxy after an auth-endpoint 401/403.
track_patch_listed
Track a successful list. Reports the number of patches surfaced.
track_patch_remove_failed
Track a failed patch removal.
track_patch_removed
Track a successful patch removal.
track_patch_repair_failed
Track a failed repair.
track_patch_repaired
Track a successful repair. Reports blob deltas and bytes freed.
track_patch_rollback_failed
Track a failed patch rollback.
track_patch_rolled_back
Track a successful patch rollback.
track_patch_scan_failed
Track a failed scan.
track_patch_scanned
Track a successful scan. Reports per-tier patch counts and whether the call was downgraded to the public proxy after an auth-endpoint 401/403 (fallback_to_proxy).
track_patch_setup
Track a successful setup. Reports the detected package manager so we can tell which install hooks are exercised in the wild.
track_patch_unlock_failed
Track a failed unlock.
track_patch_unlocked
Track a successful unlock. was_held indicates whether another process was holding the lock at probe time; released is true when --release actually removed the lock file (vs. the inspect-only case).
track_vex_failed
Track a failed vex generation.
track_vex_generated
Track a successful vex generation. format is e.g. "openvex-0.2.0"; output_kind describes where the document went ("stdout", "file").