Skip to content

Commit cbb7cc5

Browse files
xeniapeTechassi
andauthored
chore(stackable-operator): Deprecate initialize_logging function (#950)
* chore: deprecate stackable_operator::logging::initialize_logging() * adjust changelog --------- Co-authored-by: Techassi <[email protected]>
1 parent a6d8db5 commit cbb7cc5

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

crates/stackable-operator/CHANGELOG.md

+12
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,20 @@ All notable changes to this project will be documented in this file.
44

55
## [Unreleased]
66

7+
### Changed
8+
9+
- Deprecate `stackable_operator::logging::initialize_logging()`. It's recommended to use `stackable-telemetry` instead ([#950]).
10+
11+
[#950]: https://github.com/stackabletech/operator-rs/pull/950
12+
713
## [0.87.4] - 2025-03-17
814

15+
### Changed
16+
17+
- Bump `kube` to 0.99.0 and `json-patch` to 4.0.0 ([#982]).
18+
19+
[#982]: https://github.com/stackabletech/operator-rs/pull/982
20+
921
## [0.87.3] - 2025-03-14
1022

1123
### Added

crates/stackable-operator/src/logging/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ impl Default for TracingTarget {
2828
///
2929
/// Log output can be copied to a file by setting `{env}_DIRECTORY` (e.g. `FOOBAR_OPERATOR_DIRECTORY`)
3030
/// to a directory path. This file will be rotated regularly.
31+
#[deprecated(note = "Use stackable-telemetry instead, use OTLP instead of Jaeger protocol")]
3132
pub fn initialize_logging(env: &str, app_name: &str, tracing_target: TracingTarget) {
3233
let filter = match EnvFilter::try_from_env(env) {
3334
Ok(env_filter) => env_filter,
@@ -94,6 +95,7 @@ mod tests {
9495
// NOT_SET=debug cargo test default_tracing -- --nocapture
9596
// to see them all.
9697
#[test]
98+
#[allow(deprecated)]
9799
fn default_tracing_level_is_set_to_info() {
98100
super::initialize_logging("NOT_SET", "test", TracingTarget::None);
99101

0 commit comments

Comments
 (0)