olai-uc-server 0.0.3

Unity Catalog REST server with pluggable storage backends.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Telemetry initialization for the Unity Catalog server.

use tracing_subscriber::{EnvFilter, fmt, prelude::*};

/// Initialize structured tracing for the server.
///
/// Reads the `RUST_LOG` environment variable for filter configuration.
/// Falls back to `info` level if unset.
///
/// Should be called once at process startup before any async tasks are spawned.
pub fn init_tracing() {
    tracing_subscriber::registry()
        .with(fmt::layer())
        .with(EnvFilter::from_default_env())
        .init();
}