viva_telemetry

viva_telemetry - Professional Observability Suite for Gleam

Part of the VIVA ecosystem - for the Gleam community

Modules

Quick Start

import viva_telemetry/log

pub fn main() {
  log.info("Hello from VIVA!", [#("version", "0.1.0")])
}

Values

pub const alert: level.Level
pub const critical: level.Level
pub fn debug(msg: String, fields: List(#(String, String))) -> Nil
pub const debug_level: level.Level
pub const emergency: level.Level

Log levels

pub fn error(msg: String, fields: List(#(String, String))) -> Nil
pub const error_level: level.Level
pub fn info(msg: String, fields: List(#(String, String))) -> Nil

Quick logging functions (re-exports)

pub const info_level: level.Level
pub const notice: level.Level
pub fn trace(msg: String, fields: List(#(String, String))) -> Nil
pub const trace_level: level.Level
pub fn version() -> String

Get library version

pub fn warning(
  msg: String,
  fields: List(#(String, String)),
) -> Nil
pub const warning_level: level.Level
Search Document