Drone.Telemetry (ex_drone v0.1.0)

View Source

Telemetry event helpers for ex_drone.

This module provides convenience functions for emitting :telemetry events throughout the drone command pipeline. All events follow the naming convention [:drone, namespace, action].

Summary

Functions

emit_command_error(adapter, name, command_type, reason, duration)

@spec emit_command_error(atom(), atom(), atom(), atom(), non_neg_integer()) :: :ok

emit_command_start(adapter, name, command)

@spec emit_command_start(atom(), atom(), Drone.Command.t()) :: :ok

emit_command_stop(adapter, name, command_type, result, duration)

@spec emit_command_stop(atom(), atom(), atom(), atom(), non_neg_integer()) :: :ok

emit_connect_error(adapter, name, reason)

@spec emit_connect_error(atom(), atom(), term()) :: :ok

emit_connect_start(adapter, name)

@spec emit_connect_start(atom(), atom()) :: :ok

emit_connect_stop(adapter, name, duration)

@spec emit_connect_stop(atom(), atom(), non_neg_integer()) :: :ok

emit_disconnect(adapter, name)

@spec emit_disconnect(atom(), atom()) :: :ok

emit_emergency(adapter, name)

@spec emit_emergency(atom(), atom()) :: :ok

emit_safety_reject(adapter, name, command_type, reason)

@spec emit_safety_reject(atom(), atom(), atom(), atom()) :: :ok

emit_safety_warning(adapter, name, command_type, warning)

@spec emit_safety_warning(atom(), atom(), atom(), atom()) :: :ok

emit_telemetry_update(adapter, name, telemetry)

@spec emit_telemetry_update(atom(), atom(), map()) :: :ok