Skip to content

Commit

Permalink
chore(rust): logs adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianbenavides committed Dec 18, 2024
1 parent 720aed1 commit 449c560
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 8 deletions.
1 change: 0 additions & 1 deletion implementations/rust/ockam/ockam_api/src/logs/setup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ use opentelemetry::trace::TracerProvider;
use opentelemetry::{global, KeyValue};
use opentelemetry_appender_tracing::layer::OpenTelemetryTracingBridge;
use opentelemetry_otlp::WithExportConfig;
use opentelemetry_sdk as sdk;
use opentelemetry_sdk::export::logs::LogExporter;
use opentelemetry_sdk::export::trace::SpanExporter;
use opentelemetry_sdk::logs::{BatchLogProcessor, LoggerProvider};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,6 @@ impl NodeManager {

info!(
%alias, %address, ?authorized, ?relay_address,
forwarding_route = ?relay_info.forwarding_route(),
remote_address = ?relay_info.remote_address(),
"relay created"
);
Expand Down
5 changes: 0 additions & 5 deletions implementations/rust/ockam/ockam_api/tests/logging_tracing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ use ockam_api::logs::{

use opentelemetry::global;
use opentelemetry::trace::Tracer;

use opentelemetry_sdk as sdk;
use sdk::testing::logs::*;
use sdk::testing::trace::*;

use opentelemetry_sdk::testing::logs::InMemoryLogsExporter;
use opentelemetry_sdk::testing::trace::InMemorySpanExporter;
use std::fs;
Expand Down
2 changes: 1 addition & 1 deletion implementations/rust/ockam/ockam_command/src/node/show.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ pub async fn is_node_up(
.ask_with_timeout::<(), NodeStatus>(ctx, api::query_status(), Duration::from_secs(1))
.await
{
if status.status.is_running() {
if status.process_status.is_running() {
return Ok(true);
}
}
Expand Down

0 comments on commit 449c560

Please sign in to comment.