Skip to content

Commit

Permalink
feat: do not send tokio events to opentelemetry server (#953)
Browse files Browse the repository at this point in the history
  • Loading branch information
dinhani-cw authored May 30, 2024
1 parent 67ec903 commit 9351d86
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
7 changes: 0 additions & 7 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,6 @@ services:

jaeger:
image: jaegertracing/all-in-one:1.57
environment:
SPAN_STORAGE_TYPE: badger
BADGER_EPHEMERAL: false
BADGER_DIRECTORY_VALUE: /badger/data
BADGER_DIRECTORY_KEY: /badger/key
volumes:
- /tmp:/badger
ports:
- 4317:4317
- 16686:16686
Expand Down
11 changes: 7 additions & 4 deletions src/infra/tracing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ pub async fn init_tracing(url: Option<&String>, enable_console: bool) {
} else {
println!("tracing registry enabling text logs");
fmt::Layer::default()
.with_target(true)
.with_thread_ids(true)
.with_thread_names(true)
.with_target(false)
.with_thread_ids(false)
.with_thread_names(false)
.with_filter(EnvFilter::from_default_env())
.boxed()
};
Expand All @@ -56,7 +56,10 @@ pub async fn init_tracing(url: Option<&String>, enable_console: bool) {
.install_batch(runtime::Tokio)
.unwrap();

let layer = tracing_opentelemetry::layer().with_tracked_inactivity(false).with_tracer(tracer);
let layer = tracing_opentelemetry::layer()
.with_tracked_inactivity(false)
.with_tracer(tracer)
.with_filter(EnvFilter::from_default_env());
Some(layer)
}
None => {
Expand Down

0 comments on commit 9351d86

Please sign in to comment.