Skip to main content

init

Function init 

Source
pub fn init() -> TelemetryConfig
Expand description

Create a new telemetry configuration builder.

This is the recommended entry point for setting up telemetry. It follows the same pattern as juncture_tracing::init().

§Examples

use juncture_telemetry::init;

// Minimal -- in-memory store, no export
let telemetry = init().await?;

// Full setup
let telemetry = init()
    .with_store("telemetry.db")
    .with_langfuse_from_env()
    .with_dashboard(8123)
    .await?;