Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
4t145 committed Oct 18, 2024
1 parent 7577c47 commit 8bf72a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions tardis/src/basic/tracing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,7 @@ where
self.with_configurable_layer(
tracing_opentelemetry::layer().with_tracer(TardisTracing::<LogConfig>::create_otlp_tracer()).boxed(),
|conf: &LogConfig| {
let layer =
if let Some(tracing) = &conf.tracing {
let layer = if let Some(tracing) = &conf.tracing {
if std::env::var_os(OTEL_EXPORTER_OTLP_ENDPOINT).is_none() {
std::env::set_var(OTEL_EXPORTER_OTLP_ENDPOINT, tracing.endpoint.as_str());
}
Expand Down
2 changes: 1 addition & 1 deletion tardis/tests/test_web_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ bY588beOczzrXB0ldJAHZkoQFccSM1sP7pmUqgBOR0ZedmMzR37GuKjEpc/TvXHR

#[tokio::test(flavor = "multi_thread")]
async fn test_web_server() -> TardisResult<()> {
env::set_var("RUST_LOG", "trace,tardis=trace,poem_grpc=trace,poem=trace");
env::set_var("RUST_LOG", "info,tardis=trace,poem_grpc=trace,poem=trace");
TardisTracing::initializer().with_env_layer().with_fmt_layer().with_opentelemetry_layer().init();
let web_url = "https://localhost:8080";

Expand Down

0 comments on commit 8bf72a8

Please sign in to comment.