Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions opentelemetry-sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@
async fn export(&self, _batch: LogBatch<'_>) -> LogResult<()>
Custom exporters will need to internally synchronize any mutable state, if applicable.

- *Breaking* Removed the following deprecated methods:
- `Logger::provider()` : Previously deprecated in version 0.27.1
- `Logger::instrumentation_scope()` : Previously deprecated in version 0.27.1.
Migration Guidance:
- These methods were intended for log appenders. Keep the clone of the provider handle, instead of depending on above methods.

## 0.27.1

Released 2024-Nov-27
Expand Down
17 changes: 2 additions & 15 deletions opentelemetry-sdk/src/logs/log_emitter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,21 +257,8 @@ impl Logger {
Logger { scope, provider }
}

#[deprecated(
since = "0.27.1",
note = "This method was intended for appender developers, but has no defined use-case in typical workflows. It is deprecated and will be removed in the next major release."
)]
/// LoggerProvider associated with this logger.
pub fn provider(&self) -> &LoggerProvider {
&self.provider
}

#[deprecated(
since = "0.27.1",
note = "This method was intended for appender developers, but has no defined use-case in typical workflows. It is deprecated and will be removed in the next major release."
)]
/// Instrumentation scope of this logger.
pub fn instrumentation_scope(&self) -> &InstrumentationScope {
#[cfg(test)]
pub(crate) fn instrumentation_scope(&self) -> &InstrumentationScope {
&self.scope
}
}
Expand Down
Loading