Skip to content

Commit 73fdde7

Browse files
authored
Reduce log spam (#93)
* Only show warning message from OTEL SDK * Disable global meter to avoid printing message
1 parent 82694a3 commit 73fdde7

2 files changed

Lines changed: 1 addition & 5 deletions

File tree

lustrefs-exporter/lustrefs_exporter.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Description=Prometheus exporter for Lustre filesystem
33
Documentation=https://github.com/whamcloud/lustrefs-exporter
44

55
[Service]
6-
Environment=RUST_LOG=info
6+
Environment=RUST_LOG=info,opentelemetry_sdk=warn
77
Restart=on-failure
88
ExecStart=/usr/bin/lustrefs_exporter
99
MemoryHigh=1750M

lustrefs-exporter/src/lib.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,5 @@ pub fn init_opentelemetry() -> Result<
8383
)
8484
.build();
8585

86-
// Set the global MeterProvider to the one created above.
87-
// This will make all meters created with `global::meter()` use the above MeterProvider.
88-
opentelemetry::global::set_meter_provider(provider.clone());
89-
9086
Ok((provider, registry))
9187
}

0 commit comments

Comments
 (0)