MetaCredo. Check. Observability. MissingTelemetryInLiveviewMount
(MetaCredo v0.1.0)
View Source
Detects component lifecycle methods (e.g. LiveView mount/3, React
componentDidMount) without telemetry. Lifecycle events should be
tracked for performance monitoring.
Category: Observability / Priority: normal
Configuration
Accepts the following parameters via .metacredo.exs:
lifecycle_indicators- Function name fragments indicating lifecycle hooks (default:{:sigil_W, [delimiter: "[", line: 6, column: 29], [{:<<>>, [line: 6, column: 29], ["mount componentdidmount oninit oninitialize mounted created setup"]}, []]})telemetry_indicators- Function name fragments indicating telemetry calls (default:{:sigil_W, [delimiter: "[", line: 7, column: 29], [{:<<>>, [line: 7, column: 29], ["telemetry emit log trace metric record measure"]}, []]})