Skip to content

Commit f135cae

Browse files
committed
chore: deprecate stackable_operator::logging::initialize_logging()
1 parent b8fe43f commit f135cae

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

crates/stackable-operator/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ 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.
10+
711
## [0.84.1] - 2025-01-22
812

913
### Fixed

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

Lines changed: 2 additions & 0 deletions
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)