Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Update chroma-load to only output errors to stdout. #3338

Merged
merged 1 commit into from
Dec 19, 2024
Merged
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
27 changes: 1 addition & 26 deletions rust/load/src/opentelemetry_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,32 +132,7 @@ pub(crate) fn init_otel_tracing(service_name: &String, otel_endpoint: &String) {
.with_filter(tracing_subscriber::filter::LevelFilter::INFO);
// global filter layer. Don't filter anything at above trace at the global layer for chroma.
// And enable errors for every other library.
let global_layer = EnvFilter::new(std::env::var("RUST_LOG").unwrap_or_else(|_| {
"info,".to_string()
+ &vec![
"chroma",
"chroma-blockstore",
"chroma-config",
"chroma-cache",
"chroma-distance",
"chroma-error",
"chroma-index",
"chroma-load",
"chroma-storage",
"chroma-test",
"chroma-types",
"compaction_service",
"distance_metrics",
"full_text",
"metadata_filtering",
"query_service",
"worker",
]
.into_iter()
.map(|s| s.to_string() + "=trace")
.collect::<Vec<String>>()
.join(",")
}));
let global_layer = EnvFilter::new(std::env::var("RUST_LOG").unwrap_or("error".to_string()));

// Create subscriber.
let subscriber = tracing_subscriber::registry()
Expand Down
Loading