From fb3bf2df713bb79c61fb0ebc67888ec803a86652 Mon Sep 17 00:00:00 2001 From: asonix Date: Wed, 28 Jun 2023 19:07:46 -0500 Subject: [PATCH] Add note about RUST_LOG in 0.4 --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index 69435bb..16c64f9 100644 --- a/README.md +++ b/README.md @@ -488,6 +488,22 @@ path = "/previous/path/sled-repo" path = "/previous/path/files" ``` +If your previous `RUST_LOG` variable was set, it has been split into two different configuration +options: +- `PICTRS__TRACING__LOGGING__TARGETS`: This dictates what logs should be printed in the console while + pict-rs is running. +- `PICTRS__TRACING__OPENTELEMETRY__TARGETS`: This dictates what spans and events should be exported + as opentelemetry data, if enabled. + +You can also configure these options via the configuration file: +```toml +[tracing.logging] +targets = "debug" + +[tracing.opentelemetry] +targets = "debug" +``` + If the migration doesn't work due to a configuration error, the new sled-repo directory can be deleted and a new migration will be automatically triggered on the next launch.