From 3fe66129be6ccd32b4efd7b9b63734d179c6db4d Mon Sep 17 00:00:00 2001 From: "Aode (Lion)" Date: Mon, 18 Oct 2021 23:44:56 -0500 Subject: [PATCH] Update opentelemetry url info --- README.md | 7 +++++-- src/config.rs | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 13f6357..0b00261 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ _a simple image hosting service_ ## Usage ### Running ``` -pict-rs 0.3.0-alpha.29 +pict-rs 0.3.0-alpha.39 USAGE: pict-rs [FLAGS] [OPTIONS] --path @@ -38,7 +38,10 @@ OPTIONS: --max-image-width Specify the maximum width in pixels allowed on an image [env: PICTRS_MAX_IMAGE_WIDTH=] [default: 10000] - -p, --path The path to the data directory, e.g. data/ [env: PICTRS_PATH=] + -o, --opentelemetry-url + Enable OpenTelemetry Tracing exports to the given OpenTelemetry collector [env: PICTRS_OPENTELEMETRY_URL=] + + -p, --path The path to the data directory, e.g. data/ [env: PICTRS_PATH=] -w, --whitelist ... An optional list of filters to whitelist, supports 'identity', 'thumbnail', and 'blur' [env: PICTRS_FILTER_WHITELIST=] diff --git a/src/config.rs b/src/config.rs index 5c3412e..a6372e4 100644 --- a/src/config.rs +++ b/src/config.rs @@ -79,7 +79,7 @@ pub(crate) struct Config { short, long, env = "PICTRS_OPENTELEMETRY_URL", - help = "Enable json logging for the pict-rs server" + help = "Enable OpenTelemetry Tracing exports to the given OpenTelemetry collector" )] opentelemetry_url: Option, }