@echo off
setlocal

set "SCRIPT_DIR=%~dp0"
for %%I in ("%SCRIPT_DIR%..") do set "REPO_ROOT=%%~fI"

cd /d "%REPO_ROOT%" || exit /b 1

set "PI_LOGGER_OBSERVABILITY_CONFIG=%SCRIPT_DIR%observability_grpc.toml"

echo PI_LOGGER_OBSERVABILITY_CONFIG=%PI_LOGGER_OBSERVABILITY_CONFIG%
cargo +nightly-2025-03-20 run --example observability_demo %*

exit /b %ERRORLEVEL%
