glisten/internal/telemetry

Types

pub type Data {
  Data(latency: Int, metadata: Dict(String, Dynamic))
}

Constructors

  • Data(latency: Int, metadata: Dict(String, Dynamic))
pub type Event {
  Start
  Stop
  Glisten
  Handshake
  HandlerLoop
  Listener
  Acceptor
  HandlerStart
  HandlerInit
}

Constructors

  • Start
  • Stop
  • Glisten
  • Handshake
  • HandlerLoop
  • Listener
  • Acceptor
  • HandlerStart
  • HandlerInit

Constants

pub const events: List(List(Event))

Functions

pub fn attach(
  id: String,
  event: List(Event),
  handler: fn(
    List(Event),
    Dict(Atom, Dynamic),
    Dict(String, Dynamic),
    List(a),
  ) -> Nil,
  config: Nil,
) -> Nil
pub fn attach_many(
  id: String,
  path: List(List(Event)),
  handler: fn(
    List(Event),
    Dict(Atom, Dynamic),
    Dict(String, Dynamic),
    List(a),
  ) -> Nil,
) -> Nil
pub fn configure_logger() -> Nil
pub fn log(
  path: List(Event),
  measurements: Dict(Atom, Dynamic),
  metadata: Dict(String, Dynamic),
  config: List(a),
) -> Nil
pub fn span(
  path: List(Event),
  metadata: Dict(String, Dynamic),
  wrapping: fn() -> a,
) -> a
Search Document