You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: opentelemetry-sdk/CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,8 @@
2
2
3
3
## vNext
4
4
5
+
-**Feature**: Add support for `OTEL_SDK_DISABLED` environment variable ([#3088](https://github.com/open-telemetry/opentelemetry-rust/pull/3088))
otel_info!(name:"LoggerNameEmpty", message = "Logger name is empty; consider providing a meaningful name. Logger will function normally and the provided name will be used as-is.");
@@ -196,6 +197,10 @@ impl MeterProvider for SdkMeterProvider {
196
197
);
197
198
returnMeter::new(Arc::new(NoopMeter::new()));
198
199
}
200
+
ifself.inner.is_disabled{
201
+
otel_warn!(name:"MeterProvider.NoOpMeterReturned", message = "Returned NoOpMeter. SDK is disabled");
202
+
returnMeter::new(Arc::new(NoopMeter::new()));
203
+
}
199
204
200
205
if scope.name().is_empty(){
201
206
otel_info!(name:"MeterNameEmpty", message = "Meter name is empty; consider providing a meaningful name. Meter will function normally and the provided name will be used as-is.");
0 commit comments