pepe-telemetry

Crates.iopepe-telemetry
lib.rspepe-telemetry
version0.2.4
created_at2022-11-17 13:14:27.733467+00
updated_at2025-06-06 11:52:20.373352+00
descriptionTracing tools for PepeTeam template application
homepagehttps://pepe.team
repositoryhttps://github.com/crypto-pepe/pepe-rs
max_upload_size
id717218
size25,578
saehrimnir (stupid-boar)

documentation

README

Usage

Pepe Telemetry can be initialized using envorment variables only or using RUST_LOG environment variable with provided config.

RUST_LOG is common environment variable to set log level. See docs here

Initialization from environment variables

Variable name Required Note
RUST_LOG_FORMAT No Log format. Options: plain, json. Default: plain
pepe_telemetry::init_subscriber_from_env();

tracing::info!("hello, pepe!");

Initialization from config

let config = Config {
  svc_name: "pepe_telemetry_example".to_string(),
  format: Format::Plain,
};

let subscriber = pepe_telemetry::get_subscriber(&config);
pepe_telemetry::init_subscriber(subscriber);

tracing::info!("hello, pepe!");

Tests

Should be run in 1 thread due to environment variables usage.

cargo test -- --test-threads 1
Commit count: 0

cargo fmt