View Source Telemetria.Handler behaviour (telemetria v0.12.1)
The behaviour to be implemented by consumers.
Telemetría
provides the default handler, that simply delegates to Logger.info/1
.
Link to this section Summary
Callbacks
The callback that will be invoked by :telemetry
Functions
Collects and formats the current process info to insert to metadata
Link to this section Types
Specs
process_info() :: [ status: atom(), message_queue_len: any(), priority: any(), total_heap_size: any(), heap_size: any(), stack_size: any(), reductions: any(), garbage_collection: [ fullsweep_after: non_neg_integer(), max_heap_size: %{ error_logger: boolean(), kill: boolean(), size: non_neg_integer() }, min_bin_vheap_size: non_neg_integer(), min_heap_size: non_neg_integer(), minor_gcs: non_neg_integer() ], schedulers: non_neg_integer() ]
Link to this section Callbacks
Link to this callback
handle_event( event_name, event_measurements, event_metadata, handler_config )
View SourceSpecs
handle_event( :telemetry.event_name(), :telemetry.event_measurements(), :telemetry.event_metadata(), :telemetry.handler_config() ) :: :ok
The callback that will be invoked by :telemetry
Link to this section Functions
Specs
process_info(pid :: nil | pid()) :: process_info()
Collects and formats the current process info to insert to metadata