View Source Guesswork.Telemetry.EventHandler (Guesswork v0.4.4)

Holds event handlers for telemetry events.

Summary

Functions

Returns the event name used for reporting when simple assignments happen.

Returns the event name used for reporting when a compuations (test or assignment) completes successfully.

Returns the event name use for reporting when fact matches are calculated.

Returns all telemetry events that handle_event/4 is set up to handle.

Returns the event prefix used for query spans.

Returns the event prefix used for union spans (Guesswork.Ast.And.Statement.resolve/3).

Functions

@spec assignment_event_name() :: [atom()]

Returns the event name used for reporting when simple assignments happen.

Link to this macro

build_span_handlers(span_prefix, span_type)

View Source (macro)
Link to this function

computation_event_name()

View Source
@spec computation_event_name() :: [atom()]

Returns the event name used for reporting when a compuations (test or assignment) completes successfully.

@spec fact_match_event_name() :: [atom()]

Returns the event name use for reporting when fact matches are calculated.

Link to this function

handle_event(event, measurements, metadata, arg4)

View Source
@spec handled_events() :: [[atom()]]

Returns all telemetry events that handle_event/4 is set up to handle.

@spec resolve_span_prefix() :: [atom()]

Returns the event prefix used for query spans.

@spec union_span_prefix() :: [atom()]

Returns the event prefix used for union spans (Guesswork.Ast.And.Statement.resolve/3).