Skip to main content

Module tracing_layer

Module tracing_layer 

Source
Expand description

A lightweight tracing layer that routes log output to the Workers console.log / console.error / console.warn APIs.

This avoids pulling in tracing-subscriber (which depends on std::time and other things unavailable on wasm32). Instead we implement a minimal tracing::Subscriber that formats events and forwards them through worker::console_log! / console_error! / console_warn!.

Structsยง

WorkerSubscriber
A minimal tracing subscriber that logs to the Workers console.