StateReporting provides metadata reporting for instruments, letting you describe the state of your code in a form that diagnostic tools can consume. You annotate a type to synthesize ReportableMetadata conformance from its stored properties using the framework's macros, and you report that metadata through a StateReporter. Each property is captured as a ReportableMetadataValue, so the values you expose are carried in a structured, typed representation.
Reporting State 1
Report your code's state to diagnostic tools through a metadata reporter.
- ClStateReporteriOS 27.0+An object unique per domain that records state transitions and volatile metadata updates.
Describing Reportable Metadata 2
Conform your types so their stored properties are captured as typed metadata.
- PrReportableMetadataiOS 27.0+A protocol for types that can supply their metadata as a dictionary of reportable values.
- EnReportableMetadataValueiOS 27.0+A value in a reportable-metadata dictionary.
Extends 1
Never