PdfEx.Telemetry (pdf_ex v0.1.0)

Copy Markdown View Source

The telemetry events PdfEx emits, and the single source of truth for their names. Attach handlers with :telemetry.attach/4 (or attach_many/4).

Every event is emitted via :telemetry.span/3, so each name below actually fires :start, :stop, and (on failure) :exception suffixed events with the standard span measurements (:monotonic_time, :duration).

  • [:pdf_ex, :serialize] — wraps PdfEx.Serializer.serialize/2. Metadata: %{dirty: non_neg_integer(), mode: :incremental | :full}.
  • [:pdf_ex, :session, :apply] — wraps each applied session write (both PdfEx.Session.apply_op/2 and submit_op/2). Metadata: %{document_id: term()}.

Summary

Functions

Event prefix for session write application.

Functions

serialize()

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

Event prefix for PdfEx.Serializer.serialize/2.

session_apply()

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

Event prefix for session write application.